Edit C:\galaxie\Back\galaxie\netbusiness\inboundlog\list_criteria.jsp
<%@ page language="java"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="java.util.Hashtable" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="java.util.Map" %> <%@ page import="com.edeal.frontline.navigation.WebUtils" %> <%@ page import="com.edeal.frontline.ActorBean" %> <%@ page import="com.edeal.frontline.AccessDeniedException" %> <%@ page import="com.edeal.frontline.InteractionBean" %> <%@ page import="java.util.Vector" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl"%> <%@page import="com.edeal.frontline.navigation.EdealBigTabsNavigation"%> <%@page import="com.edeal.frontline.navigation.EdealBigTabsNavigation.BigTabsParams"%> <%@ page import="com.edeal.frontline.ListBean" %> <%@ page import="com.edeal.frontline.ListBean.SearchZone" %> <%@ page import="com.edeal.frontline.helper.custom.ListHelper" %> <%@page import="org.apache.commons.lang.StringUtils"%> <jsp:useBean id="List" class="com.edeal.frontline.ListBean" scope="request"/> <% final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass()); FlRequest flRequest = new FlRequest(request); FlContext context = flRequest.getContext(); DataDictionary dico = context.getDataDictionary(); // List code String lc = flRequest.getRequestParameterOrAttribute("lc"); if (lc == null) { lc = flRequest.getRequestParameterOrAttribute("code"); } if (lc == null) { lc = "INBOUNDLOG"; } request.setAttribute("lc", lc); // search criteria String sc = flRequest.getRequestParameterOrAttribute("sc"); // object uri String ou = flRequest.getRequestParameterOrAttribute("ou"); // id Map searchCriteria = new Hashtable(); if (sc != null) { searchCriteria = WebUtils.parseQueryString(sc); } request.setAttribute("selectedTab", "0"); String nb = flRequest.getSearchCriteria("$$nb"); String nbWeek = flRequest.getSearchCriteria("nbWeek"); String SfwID = flRequest.getRequestParameterOrAttribute("SfwID"); String au = flRequest.getRequestParameterOrAttribute("au"); //from common/list_criteria.jsp EdealBigTabsNavigation ebtn = new EdealBigTabsNavigation(request); Vector pagination = (Vector)flRequest.getAttribute("Pagination"); boolean hasPagination = pagination != null ? pagination.size() > 1 : false; ListBean.SearchZone searchZone = null; ListBean.ResultZone resultZone=null; try { searchZone = List.getSearchZone(); resultZone = List.getResultZone(); } catch (Exception e) { } String includedListScript=null; if (resultZone!=null) { includedListScript=ListHelper.processXmlListScriptExtension(context, session, resultZone.getScript()); } // Is this our first time in here? (ie, we're not navigating back from an object) boolean isFirstTimeIn = !ebtn.isDoList(); //Map searchCriteria = new Hashtable(); //if (sc != null) { // searchCriteria = WebUtils.parseQueryString(sc); //} String gridName=Utils.formatToWeb(lc, true); EdealBigTabsNavigation bTabNav = new EdealBigTabsNavigation(request); bTabNav.setBigTabsParameterValue(BigTabsParams.NameSearchGridJs, "_grid__" + gridName + "_js_"); String pageIndex=flRequest.getSearchCriteria("$$idx",gridName,false); pageIndex=StringUtils.isEmpty(pageIndex)?"0":pageIndex; String pagePagination=flRequest.getSearchCriteria("$$nb",gridName,false); pagePagination=StringUtils.isEmpty(pagePagination)?(String)pagination.firstElement():pagePagination; //End common/list_criteria.jsp %> <%-- Le Javascript ci-dessous doit etre inclus en page, car le JSP a besoin du request --%> <script language="javascript"> <%= (includedListScript==null)?"":includedListScript %> <%@include file="/common/list/list_criteria_js.jsp"%> var mandatoryGroups = <%=searchZone.getMandatoryGroupsAsJson()%>; </script> <script language="javascript"> function doSubmit() { strURL = _grid__INBOUNDLOG_js_.getAjaxUrl(); params={}; params["SfwID"]="<%=SfwID%>"; var f = document.forms[0]; var nbWeek = f.nbWeek.value; params["$$nb"] =f.$$nb.options[f.$$nb.selectedIndex].value; if (nbWeek != '<fl:getMessage code="L0015" alt="<Visites sur>" js="true"/>') { params["&nbWeek"]=nbWeek ; } _grid__INBOUNDLOG_js_.callAjaxForHtml(strURL,params,false); } </script> <div class="BigTab"> <%@include file="/common/tabs.jsp" %> <div class="BTBody BTBodyL"> <div class="BTBody BTBodyR"> <div id="criteriaTableRow"<%= (isFirstTimeIn ? "" : "") %>> <form method="get" onsubmit="doSubmit();return false;"> <input type="hidden" name="cu" value="/list_criteria_inboundlog.fl"> <input type="hidden" name="lc" value="<%= Utils.formatToWeb(lc, true) %>"> <input type="hidden" name="lu" value="/list_inboundlog.fl"> <input type="hidden" name="ou" value="<%= Utils.formatToWeb(ou, true) %>"> <input type="hidden" name="obj.title" value="<fl:getMessage code="L6260" alt="Créer population"/>"> <input type="hidden" name="list.title" value="<fl:getMessage code="L000A" alt="Liste des logs web"/>"> <input type="hidden" name="criteria.title" value="<fl:getMessage code="L64A2" alt="Recherche log web"/>"> <table class="container" cellpadding="0"> <tr> <td> <div class="criteriaTableDiv"> <input name="nbWeek" size="6" class="criteriaField" type="text" value="<%= (nbWeek != null)? nbWeek : "1" %>" onfocus="this.select();" onblur="ctrlNumField(this, 'integer', '<fl:getMessage code="M302F" alt="Format de nombre incorrect. Veuillez corriger." js="true"/>'); if(this.value == '') this.value = '1';" tabindex="1"> <fl:getMessage code="L0017" alt="semaines"/> </div> </td> <td class="separation"><div class="separation"></div></td> <td valign="top" style="width: 15%;"> <table class="container" cellpadding="0"> <tr class="ligne_separation"><td></td></tr> <tr> <td colspan="2" style="text-align: left;"> <select name="$$nb" class="criteriaField pagination auto"> <option value="20" <%= nb == null || "20".equals(nb) ? "selected" : "" %> >20 / <fl:getMessage code="M60CC" alt="page" /></option> <option value="10" <%= "10".equals(nb) ? "selected" : "" %> >10 / <fl:getMessage code="M60CC" alt="page" /></option> <option value="50" <%= "50".equals(nb) ? "selected" : "" %> >50 / <fl:getMessage code="M60CC" alt="page" /></option> <option value="All" <%= "All".equals(nb) ? "selected" : "" %> ><fl:getMessage code="L302C" alt="Toutes"/></option> </select> </td> </tr> <tr class="ligne_separation"><td></td></tr> <tr> <td> <a href="javascript:doSubmit();"><img src="<fl:webapp/>/icons/ico/valid_green2_long.gif"></a> </td> </tr> </table> </td> </tr> </table> </form> </div> <div id="searchResult"> <h2 <%= (isFirstTimeIn ? "" : "style=\"margin-top: 0px;\"") %>> <span><fl:getMessage code="L200C" alt="Résultat"/> <a id="bShowHideCriteria" href="#" onclick="gGridCriteria.show(this)" class="bHideCriteria"> </a></span> </h2> <fl:grid displayFirst="true" name="INBOUNDLOG" ajaxUrl="/list_inboundlog_ajax.fl"> <fl:gridColumn pos="0" width="50%"></fl:gridColumn> <fl:gridColumn pos="1" style="text-align : right"></fl:gridColumn> </fl:grid> </div> </div></div> <div id="BTFoot" class="BTFoot"> <div class="BTFootL"></div> <div class="BTFootMiddle"> </div> <div class="BTFootR"></div> </div> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de