Edit C:\galaxie\Back\galaxie\admin\matchcoderules\popup.jsp
<% /****************************************************************************** * Copyright (c) 2000-2004 e-Deal * * e-Deal S.A. * 55 rue Brillat Savarin * 75013 Paris * France * * T: +33 (0)1 53 80 80 30 * F: +33 (0)1 73 01 69 77 * http://www.e-deal.com * * La diffusion de ce code source sous quelque forme que ce soit sans * l'autorisation de E-DEAL est interdite. * * Vous êtes autorisés à modifier ce code source uniquement pour votre usage * propre et sous réserve que les mentions de copyright demeurent intactes. * * Ce code est fourni en l'état. Aucune garantie d'aucune sorte, explicite ou * implicite n'est donnée. En aucun cas E-DEAL ne pourra être tenu pour * responsable des dommages pouvant résulter de l'utilisation de ce code * source. * * ******************************************************************************/ %> <%@page session="true"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@page import="com.edeal.frontline.navigation.WebUtils"%> <%@ page import="java.util.HashMap"%> <%@ page import="java.util.Map.Entry"%> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.MatchCodeFieldsBean" id="MatchCodeFields" 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 mcrID = flRequest.getParameter("mcrID"); String objID = flRequest.getParameter("objID"); String queryMcfFldID = WebUtils.urlEncode(context, "FldObjID='" + objID + "'"); HashMap<String, String> hmapFieldsDisplay = (HashMap<String, String>) flRequest.getAttribute("hmapFieldsDisplay"); if (hmapFieldsDisplay == null) { hmapFieldsDisplay = new HashMap<String, String>(); } String mcfFldID = null; try { mcfFldID = MatchCodeFields.getMcfFldID(); } catch (FieldNotInitializedException fnie) { } %> <html> <head> <title> </title> <script type="text/javascript"> function save() { var f = document.forms[0]; if (f.McfFldID.value == "") { alert('<fl:getMessage code="M9038" alt="Veuillez choisir un champ" js="true"/>'); return; } if (f.McfPoids.value == "") { alert('<fl:getMessage code="M9036" alt="Veuillez choisir un poids" js="true"/>'); return; } f.$$returnedHtmlBody.value = 'Nothing here'; f.$$returnedHtmlHead.value = '<sc' + 'ript language=\"javascript\">window.opener.location=window.opener.location;window.top.close();</scr' + 'ipt>'; f.submit(); } </script> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/common_css.jsp"> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/master_css.jsp"> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/master_js.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/edeal/libraries/jquery/jquery.js"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ajax/ajax.js"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ac/fobAC_js.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/presentField.js"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/checkFields.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/utils.js"></script> <body class="popup_body"> <div id="object_css" style="top:0px;left: 0px;height:100%;"> <fl:form action="/save_matchcodefields.fl" bean="MatchCodeFields"> <fl:bigTabs objectTitle="<%= Utils.getMessage(session, \"L8129\", false, true, \"Champs\") + \"+\" %>"> <input id="$$presentFields" name="$$presentFields" type="hidden" value=""/> <input id="$$returnedHtmlBody" name="$$returnedHtmlBody" type="hidden" value=""/> <input id="$$returnedHtmlHead" name="$$returnedHtmlHead" type="hidden" value=""/> <input id="McfMcrID" name="McfMcrID" type="hidden" value="<%= mcrID %>"/> <table class="container" cellpadding="0"> <tr> <td class="labelTitreFiche"> <fl:label field="McfFldID" labelClassName="titreFiche"/> </td> <%-- <td class="dataValue"> <fl:input property="McfFldID" mandatoryMsgCode="M9036" query="<%= Utils.urlEncode(context, queryMcfFldID) %>"/> </td> --%> <td class="dataValue"> <div class="input select"> <select id="McfFldID" name="McfFldID" class="input select chpsTextObligatoire"> <% if (!hmapFieldsDisplay.isEmpty() && hmapFieldsDisplay != null){ for (Entry<String, String> currentEntry : hmapFieldsDisplay.entrySet()) { String fldID = currentEntry.getKey(); String fldDisp = (String)currentEntry.getValue(); %> <option <%= fldID.equals(mcfFldID) ? "selected='selected'" : "" %> value='<%= fldID %>'><%= fldDisp %></option> <% } } %> </select> </div> </td> </tr> <tr class="ligne_separation"><td></td></tr> </table> <table class="container" cellpadding="0"> <tr> <td class="column2"> <table class="data_column" cellpadding="0"> <fl:fieldEdit property="McfPoids" mandatoryMsgCode="M9036"/> <fl:fieldEdit property="McfNum"/> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="data_column" cellpadding="0"> <fl:fieldEdit property="McfWfaID" query="WfaType:RefVal='PURIFICATION'"/> </table> </td> </tr> </table> </fl:bigTabs> </fl:form> <div style="width: 100%; text-align: center"> <a href="javascript:save()"> <img src="<fl:webapp/>/icons/ico/valid_green2_long.gif" border="0" alt="<fl:getMessage code="A0003" alt="Enregistrer"/>"> </a> <a href="javascript:window.close()"> <img src="<fl:webapp/>/icons/ico/fermer_red_long.gif" alt="<fl:getMessage code="A3035" alt="Fermer"/>"> </a> </div> </div> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de