Edit C:\galaxie\Back\galaxie\netbusiness\newsletter\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 = "NewsLetter"; } 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 vectTypeSelect = (Vector) searchCriteria.get("type"); String typeSelect = null; if (vectTypeSelect != null) typeSelect = (String) vectTypeSelect.elementAt(0); request.setAttribute("selectedTab", "0"); %> <script language="javascript"> function doSubmit() { var f = document.forms[0]; var pType = f.type.value; var queryString = ''; if (pType != '' && pType != '<fl:getMessage code="L6467" alt="<News letter>" js="true"/>') { queryString += 'type='+ pType ; f.sc.value = queryString; }else { f.sc.value='NoCriteria'; } f.submit(); } </script> <form action="<fl:link url="/list_newsletter.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_newsletter.fl"> <input type="hidden" name="lu" value="/list_newsletter.fl"> <input type="hidden" name="obj.title" value="<%= Utils.formatToWeb(objTitle, true) %>"> <fl:bigTabs criteriaTitle="<%= Utils.getMessage(session, \"L649B\", \"Recherche newsletter\") %>"> <table class="container" cellpadding="0"> <tr> <td> <div class="criteriaTableDiv"> <% Vector vectType = dico.getRefList("PerNltID"); %> <select name="type"> <option value=""><fl:getMessage code="L6467" alt="<News letter>"/></option> <% for (int i= 0; i<vectType.size(); i++){ Vector pType = (Vector) vectType.elementAt(i); String typeID = (String) pType.elementAt(0); String typeDisp = (String) pType.elementAt(1); %> <option value="<%= typeID%>" <%= (typeSelect != null && typeSelect.equals(typeID))? " selected" : ""%>><%= typeDisp %></option> <% } %> </select> </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> <a href="javascript:doSubmit();"><img src="<fl:webapp/>/icons/ico/valid_green2_long.gif"></a> </td> </tr> </table> </td> </tr> </table> </fl:bigTabs> </form>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de