Edit C:\galaxie\deploy\Tomcat6\webapps\galaxie\admin\fltask\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.AccessDeniedException" %> <%@ page import="com.edeal.frontline.FlTaskBean" %> <%@ 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(); String SfwID = flRequest.getRequestParameterOrAttribute("SfwID"); // List code String lc = flRequest.getRequestParameterOrAttribute("lc"); if (lc == null) { lc = flRequest.getRequestParameterOrAttribute("code"); } if (lc == null) { lc = "FlTask"; } request.setAttribute("lc", lc); // search criteria String sc = flRequest.getRequestParameterOrAttribute("sc"); // object uri String ou = flRequest.getRequestParameterOrAttribute("ou"); // id String objTitle = flRequest.getRequestParameterOrAttribute("obj.title"); Map searchCriteria = new Hashtable(); if (sc != null) { searchCriteria = WebUtils.parseQueryString(sc); } Vector vectName = (Vector) searchCriteria.get("TskName"); String tskName = null; if (vectName != null ) tskName = (String) vectName.firstElement(); request.setAttribute("selectedTab", "0"); request.setAttribute("SfwID", SfwID); String preview = flRequest.getSearchCriteria("$$preview"); String nb = flRequest.getSearchCriteria("$$nb"); //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.processXmlListScript(context,resultZone.getScript()); } //Is this our first time in here? (ie, we're not navigating back from an object) boolean isFirstTimeIn = !ebtn.isDoList(); 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 %> <%--- <script language="javascript"> <%= (includedListScript==null)?"":includedListScript %> <%@include file="/common/list/list_criteria_js.jsp"%> var mandatoryGroups = <%=searchZone.getMandatoryGroupsAsJson()%>; </script>--%> <script language="javascript"> function doSubmit() { var f = document.forms[0]; //var prev = f.$$preview.cheked; var queryString = ""; var intNb = 10; if (f.$$nb) { intNb=f.$$nb.options[f.$$nb.selectedIndex].value; } queryString+="$$nb="+intNb; var name = ""; if (f.TskName) { name=f.TskName.value; } if (name != '' && name != '<fl:getMessage code="L2040" alt="<Nom>"/>') { queryString+= ('&TskName='+name) ; } f.sc.value = queryString; _grid__FlTask_js_.callAjaxForHtml(myAjaxURL_FlTask+"&"+queryString, null, null,0); //f.submit(); } </script> <div class="BigTab"> <%@include file="/common/tabs.jsp" %> <div class="BTBody BTBodyL"> <div class="BTBody BTBodyR"> <div id="criteriaTableRow"<%= (isFirstTimeIn ? "" : "") %>> <form action="<fl:link url="/list_fltask.fl"/>" method="post"> <input type="hidden" name="lc" value="<%= Utils.formatToWeb(lc, true) %>"> <input type="hidden" name="sc" value=""> <input type="hidden" name="ou" value="<%= Utils.formatToWeb(ou, true) %>"> <input type="hidden" name="cu" value="/list_criteria_fltask.fl"> <input type="hidden" name="lu" value="/list_fltask.fl"> <input type="hidden" name="obj.title" value="<fl:getMessage code="L645B" alt="Tâche plannifiée"/>"> <input type="hidden" name="criteria.title" value="<fl:getMessage code="F6129" alt="Recherche tâche plannifiée"/>"> <table class="container" cellpadding="0"> <tr> <td> <div class="criteriaTableDiv"> <input type="text" name="TskName" class="criteriaField leftMargin10" size="40" value="<%= (tskName != null)? Utils.formatToWeb(tskName,false) : Utils.getMessage(session,"L2040","<Nom>")%>" onfocus="this.select()" onblur="if (this.value == '') this.value = '<fl:getMessage code="L2040" alt="<Nom>"/>';"> </div> </td> <td class="separation"><div class="separation"></div></td> <td style="width: 15%;"> <table class="container" cellpadding="0"> <%-- <tr> <td style="white-space: nowrap; width: 10%; text-align: left;"> <input name="$$preview" type="checkbox" value="1" <%= preview != null ? "checked" : "" %>> <span class="dataLabel" style="width: auto; vertical-align:bottom"><label for="$$preview"><fl:getMessage code="L6319" alt="aperçu"/></label></span> </td> </tr> --%> <tr class="ligne_separation"><td></td></tr> <tr> <td style="text-align: left;"> <select name="$$nb" class="criteriaField pagination auto"> <option value="10" <%= nb == null || "10".equals(nb) ? "selected" : "" %> >10 / <fl:getMessage code="M60CC" alt="page" /></option> <option value="20" <%= "20".equals(nb) ? "selected" : "" %> >20 / <fl:getMessage code="M60CC" alt="page" /></option> <option value="30">30 / <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 name="FlTask" height="400" ajaxUrl="/list_fltask_ajax.fl"></fl:grid> </div> </div></div> <div id="BTFoot" class="BTFoot"> <div class="BTFootL"></div> <div class="BTFootMiddle"> </div> <div class="BTFootR"></div> </div> </div> <% /****************************************************************************** * * * m.ichahane@e-deal.ma : 2006/08/18 12:15:23 : Mustapha * * *****************************************************************************/ %>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de