Edit C:\galaxie\Back\galaxie\netbusiness\outboundlog\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"%> <% 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 = "OutBoundLog"; } 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"); String nb = flRequest.getSearchCriteria("$$nb"); 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; if (vectbeginDate != null ) beginDate = (String) vectbeginDate.firstElement(); if (vectendDate != null ) endDate = (String) vectendDate.firstElement(); request.setAttribute("selectedTab", "0"); %> <script language="javascript"> function doSubmit() { var f = document.forms[0]; var beginDate = f.beginDate.value; var endDate = f.endDate.value; var queryString = 'fromLog=1'; if (beginDate != '' && queryString.indexOf("?") <= -1) { queryString += '&beginDate='+ beginDate ; }else if (beginDate != '' && queryString.indexOf("?") > -1) { queryString += '&beginDate='+ beginDate ; } if (endDate != '' && queryString.indexOf("?") <= -1) { queryString += '&endDate='+ endDate ; }else if (endDate != '' && queryString.indexOf("?") > -1) { queryString += '&endDate='+ endDate ; } f.sc.value = queryString; return true; } </script> <%-- <form action="javascript:displayInt();" method="post"> --%> <form action="<fl:link url="/list_entry_outboundlog.fl"/>" method="post" onsubmit="doSubmit()"> <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_outboundlog.fl"> <input type="hidden" name="lu" value="/list_outboundlog.fl"> <input type="hidden" name="obj.title" value="<%= Utils.formatToWeb(objTitle, true) %>"> <fl:bigTabs criteriaTitle="<%= Utils.getMessage(session, \"L0015\", false, true, \"visites sur\") %>"> <table class="container" cellpadding="0"> <tr> <td nowrap class="dataLabel" colspan="4"> <fl:getMessage code="L6367" alt="De"/> <input class="select" type="text" 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"/>')}"> <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> <fl:getMessage code="L3127" alt="au"/> <input class="select" type="text" name="endDate" 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"/>')}"> <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> <td > <input type="image" src="<fl:webapp/>/icons/ico/valid_green2_long.gif" border="0" tabindex="999"> </td> </tr> </table> </fl:bigTabs> </form>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de