Edit C:\galaxie\deploy\Tomcat6\webapps\galaxie\admin\floption\edit.jsp
<% /****************************************************************************** * Copyright (c) 2000-2005 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.FlLocale" %> <%@ page import="java.text.DateFormat" %> <%@ page import="java.util.Date" %> <%@ page import="java.util.GregorianCalendar" %> <%@ page import="java.util.Vector" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/smalltabs_css.jsp"> <jsp:useBean class="com.edeal.frontline.FlOptionBean" id="FlOption" 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 id = null; try { id = FlOption.getID(); } catch (FieldNotInitializedException fnie) { } %> <script type="text/javascript" language="javascript"> function doSubmit() { //Here you can add your controls return true; } function changeType() { var f = document.forms[0]; f.action = '<fl:link url="/refresh_floption.fl"/>'; doExitConf = false; presentFieldsValue(); f.submit(); } </script> <fl:form action="/save_floption.fl" bean="FlOption" multivalSeparator=";"> <fl:bigTabs objectTitle="<%= Utils.getMessage(session, \"L6455\", \"Fiche option\") %>" ou="<%= \"/edit_floption.fl?id=\" + id %>"> <table class="container" cellpadding="0" width="100%"> <tr class="fieldline"> <td colspan="3"> <table> <tr> <td class="labelTitreFiche" > <fl:label field="OptName" labelClassName="titreFiche"/> </td> <td class="fieldTitreFiche" colspan="3"> <fl:input property="OptName" mandatoryMsgCode="M60A2" unicityMsgCode="M60A4"/> </td> </tr> </table> </td> </tr> <tr class="ligne_separation"> <td > </td> </tr> <tr> <td class="column2"> <table class="container" cellpadding="0"> <fl:fieldEdit property="OptGroup" alt="" mandatoryMsgCode="M60E2"/> <% try { String typeID = FlOption.getOptType(); String codeType = dico.getRefCode("OptType",typeID); if ("LIST".equals(codeType)) { %> <fl:fieldEdit property="OptValueList" width="100%" mandatoryMsgCode="M60A3" multivalSeparator=";" onblur="changeType();"/> <% } } catch (FieldNotInitializedException ex) { } %> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="container" cellpadding="0"> <fl:fieldEdit property="OptType" onchange="changeType();" alt="" mandatoryMsgCode="M903D"/> </table> </td> </tr> <tr class="ligne_separation"><td></td></tr> </table> <table class="container"> <tr class="ligne_separation"><td > </td></tr> <tr> <td class="dataValue" style="vertical-align:top;"> <table class="data_column" cellpadding="0"> <% try { String typeID = FlOption.getOptType(); String codeType = dico.getRefCode("OptType",typeID); if ("LIST".equals(codeType)) { Vector possibleValues = new Vector(); try { possibleValues = FlOption.getOptValueList(); } catch (FieldNotInitializedException fnie) { } String currentValue = null; try { currentValue = FlOption.getOptValue(); } catch (FieldNotInitializedException fnie) { } %> <tr class="fieldline"><td class="dataLabel" colspan="5"><label><fl:getMessage code="F6070" alt="Valeur"/></label></td></tr> <tr class="fieldline"> <td class="dataValue" colspan="5"> <% for (int i = 0; i < possibleValues.size(); i++) { String value = (String)possibleValues.elementAt(i); %> <%= i > 0 ? "<br/>" : "" %><input type="radio" name="OptValue" id="OptValue_<%= i %>" value="<%= value %>" <%= value.equals(currentValue) ? "checked" : "" %>/><label for="OptValue_<%= i %>"><%= Utils.formatToWeb(value, false) %></label> <% } %> </td> <% } else { %> <tr class="fieldline"><td class="dataLabel" colspan="5"><label><fl:getMessage code="F6070" alt="Valeur"/></label></td></tr> <tr class="fieldline"> <td class="dataValue noPaddingLeft" colspan="5"> <fl:input property="OptValue" style="width:100%" nodiv="false"/> </td> <% } } catch (FieldNotInitializedException fnie) { } %> </table> </td> </tr> </table> <table class="container" cellpadding="0"> <tr class="ligne_separation"><td></td></tr> <tr> <td class="titrePartie"><fl:getMessage code="L602E" alt="Commentaire"/></td> </tr> <tr> <td class="dataValue noPaddingLeft"> <fl:input property="OptComment" style="width:100%" nodiv="false"/> </td> </tr> <tr class="ligne_separation"><td></td></tr> <tr class="ligne_separation_couleur"><td></td></tr> <tr class="ligne_separation"><td></td></tr> </table> </fl:bigTabs> </fl:form>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de