Edit C:\galaxie\deploy\Tomcat6\webapps\galaxie\admin\operationgroup\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 = "OperationGroup"; } 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 vectbeginDate = (Vector) searchCriteria.get("beginDate"); Vector vectendDate = (Vector) searchCriteria.get("endDate"); String beginDate = null; String endDate = null; String SfwID = flRequest.getRequestParameterOrAttribute("SfwID"); if (vectbeginDate != null ) beginDate = (String) vectbeginDate.firstElement(); if (vectendDate != null ) endDate = (String) vectendDate.firstElement(); request.setAttribute("selectedTab", "0"); //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 beginDate = f.beginDate.value; var endDate = f.endDate.value; params={}; strURL = _grid__OperationGroup_js_.getAjaxUrl(); params["$$nb"] =f.$$nb.options[f.$$nb.selectedIndex].value; params["Type"] = "Opg"; if (beginDate != '') { params["beginDate"]= beginDate ; } if (endDate != '') { params["endDate"]= endDate ; } _grid__OperationGroup_js_.callAjaxForHtml(strURL,params,false); } function delOpg(id){ if (confirm('<fl:getMessage code="M2004" alt="Etes-vous sûr de vouloir supprimer?" js="true"/>')) { doAjax('<fl:link url="/delete.fl?type=OperationGroup&id=' + id + '"/>&successPage=' + encodeURIComponent('/list_criteria_operationgroup.fl')); } } function doSeeDetails(id) { if(window.confirm('<fl:getMessage code="M6066" alt="Etes-vous sûr de vouloir voir le détail de ce groupe? L\'affichage pourrait prendre très longtemps." js="true"/>')) { window.open('<fl:webapp/>/list_detail_operationgroup.fl?id=' + id ,'EMAIL', 'menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes,width=800,height=400'); } } </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_operationgroup.fl"/>" method="get" onsubmit="doSubmit()"> <input type="hidden" name="lc" value="<%= Utils.formatToWeb(lc, true) %>"> <input type="hidden" name="ou" value="<%= Utils.formatToWeb(ou, true) %>"> <input type="hidden" name="cu" value="/list_criteria_operationgroup.fl"> <input type="hidden" name="lu" value="/list_operationgroup.fl"> <input type="hidden" name="list.title" value="<fl:getMessage code="L61E0" alt="Liste des opérations"/>"> <input type="hidden" name="criteria.title" value="<fl:getMessage code="F612A" alt="Recherche Opérations"/>"> <table class="container" cellpadding="0"> <tr> <td> <table class="container" cellpadding="0" style="width: 50%;"> <tr class="fieldline"> <td class="dataLabel"> <span class="criteriaLabel"><fl:getMessage code="F601B" alt="Date d\'activation"/></span> </td> <td class="dataLabel"> <span class="criteriaLabel"><fl:getMessage code="L3128" alt="Du"/> </span> </td> <td class="dataValue"> <input type="text" size="10" value="<%= (beginDate != null)? Utils.formatToWeb(beginDate,false) : "" %>" name="beginDate" size="10" onFocus="this.select()" onBlur="if (this.value != '') { ctrlDateField(this, '<fl:getMessage code="M202B" alt="Format de date incorrect. Veuillez corriger." js="true"/>')}"> </td> <td> <a href="javascript:openCalendar(document.forms[0].beginDate);" onMouseOver="window.status='<fl:getMessage code="A2000" alt="Afficher le calendrier" js="true"/>';return true;" onMouseOut="window.status=' '; return true"><img src="<fl:webapp/>/icons/ico/clock_neutre.gif" border="0" width="15" height="15"></a> </td> <td> <span class="criteriaLabel"> <fl:getMessage code="L3127" alt="au"/> </span> </td> <td class="dataValue"> <input type="text" name="endDate" size="10" value="<%= (endDate != null)? Utils.formatToWeb(endDate,false) : "" %>" size="10" onFocus="this.select()" onBlur="if (this.value != '') { ctrlDateField(this, '<fl:getMessage code="M202B" alt="Format de date incorrect. Veuillez corriger." js="true"/>')}"> </td> <td> <a href="javascript:openCalendar(document.forms[0].endDate);" onMouseOver="window.status='<fl:getMessage code="A2000" alt="Afficher le calendrier" js="true"/>';return true;" onMouseOut="window.status=' '; return true"><img src="<fl:webapp/>/icons/ico/clock_neutre.gif" border="0" width="15" height="15"></a> </td> </tr> </table> </td> <td class="separation"><div class="separation"></div></td> <td style="width: 15%;"> <table class="container" cellpadding="0"> <tr> <td colspan="2" style="text-align: left;"> <select name="$$nb" class="criteriaField pagination auto"> <option value="10">10 / <fl:getMessage code="M60CC" alt="page" /></option> <option value="20">20 / <fl:getMessage code="M60CC" alt="page" /></option> <option value="30">30 / <fl:getMessage code="M60CC" alt="page" /></option> <option value="All"><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="OperationGroup" ajaxUrl="/list_operationgroup_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>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de