Edit C:\galaxie\deploy\Tomcat6\webapps\galaxie\js\frontoffice\jquery.filetree\kb_jqueryFileTree.jsp
<%@ page session="true" import="java.io.File,java.io.FilenameFilter" contentType="text/html; charset=UTF-8"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.ObjectsBean" %> <%@ page import="java.util.Vector" %> <%@ page import="java.util.Hashtable" %> <%@ page import="java.net.URLEncoder" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <% FlRequest flRequest = new FlRequest(request); FlContext context = flRequest.getContext(); String webapp = context.getContextName(); Vector<Vector> categories = (Vector) flRequest.getAttribute("categories"); Hashtable<String, Integer> nbResults = (Hashtable<String, Integer>) flRequest.getAttribute("nb_results"); String queryPart = flRequest.getRequestParameterOrAttribute("queryPart"); int level = (Integer)flRequest.getAttribute("level"); Vector<Hashtable> faqs = (Vector) flRequest.getAttribute("faqs"); boolean pagination = (Boolean)flRequest.getAttribute("pagination"); int nbPages = (Integer)flRequest.getAttribute("nb_pages"); out.append("<ul style=\"display: none;\" class=\"jqueryFileTree\">"); if(categories != null){ for(Vector categorie : categories){ String rel = ""; if(level == 0){ rel = URLEncoder.encode(level + "|" + (String)categorie.get(0) + "|FahCatID = " + Utils.formatToSQL(context, (String)categorie.get(0)) + ",FahCatLev1 = null", "UTF-8"); }else if(level == 1){ rel = URLEncoder.encode(level + "|" + (String)categorie.get(0) + "|" + queryPart + ",FahCatLev1 = " + Utils.formatToSQL(context, (String)categorie.get(0)), "UTF-8"); } int nbResult = nbResults.get((String)categorie.get(0)); out.append("<li class=\"directory collapsed\"><a href=\"#\" id=\"" + (String)categorie.get(0) + "\" rel=\"" + rel + "\" pagination=\""+pagination+"\">" + categorie.get(1) + "</a>"+((nbResult>0)? "("+nbResult+")" : "") +"</li>"); } } if(faqs != null){ if(pagination){ String pager = "<span class=\"grid-action\">"+ "<a class=\"page_first\" href=\"#\" onclick=\"load_data(this, 'first', "+nbPages+", "+level+");return false;\" style=\"display:none;\">"+ "<img src=\""+webapp+"/icons/ico/flecheGdouble.gif\">"+ "</a>"+ "<a class=\"page_prev\" href=\"#\" onclick=\"load_data(this, 'prev', "+nbPages+", "+level+");return false;\" style=\"display:none;\">"+ "<img src=\""+webapp+"/icons/ico/flecheG.gif\">"+ "</a>"+ "Page <span>1</span>/<span>"+nbPages+"</span>"+ "<a class=\"page_next\" href=\"#\" onclick=\"load_data(this, 'next', "+nbPages+", "+level+");return false;\">"+ "<img src=\""+webapp+"/icons/ico/flecheD.gif\">"+ "</a>"+ "</span>"; out.append(pager); out.append("<span>"); } for(Hashtable faq : faqs){ String faqScore = (String)faq.get("FaqScore"); if(!Utils.isEmpty((String)faq.get("FaqScore"))){ faqScore += " avis"; } String faqTags = ""; if(!Utils.isEmpty((String)faq.get("FaqTags"))){ faqTags += "Mot(s) clé(s): " + faq.get("FaqTags"); } String faqData = //"<li class=\"\">"+ "<table cellpadding=\"0\" class=\"container\" width=\"100%\">"+ "<tbody>"+ "<tr>"+ "<td>"+ "<a onclick=\"javascript:showFaq('" + faq.get("FaqID") + "')\" href=\"#\">" + faq.get("FaqTitle") + "</a> " +faq.get("FaqHasAttachment")+faq.get("FaqStatus")+ " <a href=\"#\" onclick=addFaq('" + faq.get("FaqID") + "')><img border=\"0\" src=\"" + webapp + "/icons/frontoffice/cart-add-icon.png\" style=\"vertical-align: middle;\"></a>"+ "<br/>"+faq.get("FaqPreview")+ "</td>"+ "</tr>"+ "<tr valign=\"top\">"+ "<td>"+ "<div>"+ "<span class=\"score_" + faq.get("FaqID") + "\" style=\"color: #777;font-size: 11px;\">"+ faqScore+ "</span>"+ " <span class=\"dataLabel\">" + faq.get("FaqHasComment") + "</span>"+ "</div>"+ "<div style=\"color: #777;font-size: 11px;\">" + faqTags + "</div></td>"+ "</tr>"+ "</tbody>"+ "</table>"+ "<br/>"; //"</li>"; out.append(faqData); } if(pagination){ out.append("</span>"); } } out.append("</ul>"); out.println(); %>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de