Edit C:\galaxie\deploy\Tomcat6\webapps\galaxie\admin\menuelement\edit.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. * * ******************************************************************************/ /* a.stouky@e-deal.ma : 16/08/06 Mettre le fond en dégradé Aligner les champs avec le titre */ %><%@page session="true" import="com.edeal.frontline.*"%><%@page import="java.util.*" %> <%@ page import="com.edeal.frontline.grid.GridData" %> <%@ page import="java.util.Vector" %> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.MenuElementBean" id="MenuElement" 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 = flRequest.getRequestParameterOrAttribute("id"); String menID = flRequest.getRequestParameterOrAttribute("MenID"); String melPosition = flRequest.getRequestParameterOrAttribute("MelPosition"); if (melPosition == null) melPosition = "10"; try { MenuElement.getMelPosition(); } catch (FieldNotInitializedException e) { MenuElement.setMelPosition(new Integer(melPosition).intValue());} if (menID == null) { try { menID = MenuElement.getMelMenID(); } catch (FieldNotInitializedException e) {} } String parentID = Utils.getRequestParameter(context, request, "ParentID"); if (parentID == null) { try { parentID = MenuElement.getMelParentID(); } catch (FieldNotInitializedException e) {} } String typeCode = "LEAF"; try { typeCode = MenuElement.getMelType(); } catch (FieldNotInitializedException e) { MenuElement.setMelType("LEAF"); } %> <html> <head> <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 language="javascript" type="text/javascript" src="<fl:webapp/>/js/smalltabs.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/calendar.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/utils.js"></script> <script type="text/javascript" language="javascript" src="<fl:link url="/js/checkFields.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/ajax/sarissa.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/master_js.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ac/fobAC_js.jsp"></script> <script type="text/javascript" language="javascript"> function doRefresh() { var f = document.forms[0]; presentFieldsValue(); f.action = "<fl:link url="<%= \"/refresh_menuelement.fl\" %>"/>"; doExitConf = false; f.submit(); } function doSubmit() { var f = document.forms[0]; f.MelLabelIsCode.value = true; if (f.MelLabel.value == "") { window.alert("<fl:getMessage code="M2014" alt="Vous devez spécifier un nom." js="true"/>"); f.MelLabel.focus(); return false; } var str ='<scr' + 'ipt language="javascript">window.top.opener.parent.location="<fl:link list="true" url="/edit_menu.fl?id='+window.document.forms[0].MelMenID.value+'"/>";window.top.close();</s' + 'cript>'; f.$$returnedHtmlHead.value = str; return true; } function doSelectLabel(field) { window.open('<fl:link url="/select_label.fl?1=1"/>&field=' + field, 'select_label', 'width=1000,height=500,menubar=no,status=no,resizable=yes'); } function doRemoveLabel(field){ var f = window.document.forms[0]; if (f.elements[field] && f.elements[field].value) { f.elements[field].value = ''; } if (f.elements['lbl' + field] && f.elements['lbl' + field].value) { f.elements['lbl' + field].value = ''; } } </script> </head> <body> <div id="object_css" style="top:0px; left: 0px; height:100%;"> <fl:form action="/save_menuelement.fl" bean="MenuElement"> <input type="hidden" name="MelMenID" id="MelMenID" value="<%=menID%>"/> <input type="hidden" name="MelParentID" id="MelParentID" value="<%=parentID != null ? parentID : ""%>"/> <fl:bigTabs objectTitle="<%= Utils.getMessage(session, \"L6250\", false, true, \"Elément du menu\") %>" ou="<%=\"/edit_menuelement.fl\" + ( id !=null ? \"?id=\"+id : \"\")%>" ignoreList="false" > <% if (parentID != null) { %> <input type="hidden" name="MelType" value="LEAF"> <% } %> <table class="container" cellpadding="0"> <% if (id!=null) { %> <tr> <td class="titreFiche" colspan="2"> <% String fullTitle = null; try { if (MenuElement.isMelLabelIsCode()) fullTitle = Utils.getMessage(session, MenuElement.getMelLabel(), "Libellé indisponible"); } catch (Exception e) {} %> <fl:getProperty name="MenuElement" property="MelLabel" alt=""/><%= fullTitle == null ? "" : " (" + fullTitle + ")"%> </td> </tr> <% } %> <tr> <td> <input type="hidden" name="$$returnedHtmlHead" value=""/> <input type="hidden" name="$$returnedHtmlBody" value="close..."/> </td> </tr> <tr class="fieldline"> <td class="column2"> <table class="data_column" cellpadding="0" width="100%"> <tr class="fieldline"> <td class="dataLabel"><fl:getMessage code="F2025" alt="Nom"/></td> <td class="dataValue"> <% String fullTitle = null; String codeTitle = null; try { codeTitle = MenuElement.getMelLabel(); fullTitle = Utils.getMessage(session,codeTitle , "Libellé indisponible"); } catch (Exception e) {} %> <table class="fieldTable" cellpadding="0"> <tr> <td class="principalText"> <input type="hidden" name="mandatory" value="MelLabel"> <input type="hidden" id="mandatory.MelLabel" name="mandatory.MelLabel" value="<fl:getMessage code="M2014" alt="Vous devez spécifier un nom."/>"> <input id="MelLabel" name="MelLabel" type="hidden" value="<%= (codeTitle!= null)? codeTitle : "" %>"> <input name="lblMelLabel" type="text" value="<%= (fullTitle!= null)? fullTitle : "" %>" onfocus="this.blur();" readonly class="input fob chpsTextObligatoire"> </td> <td class="postText"> <a href="javascript:doSelectLabel('MelLabel')"><img src="<fl:webapp/>/icons/ico/rechercher.gif" alt="" width="17" height="17" border="0"></a> <a href="javascript:doRemoveLabel('MelLabel')"><img src="<fl:webapp/>/icons/ico/supprimer.gif" alt="" width="17" height="17" border="0"></a> <span id="MelLabel_msg" class="mandatory_alert" style="display: none">!</span> </td> </tr> <%-- <tr> <td class="dataLabel" nowrap> <div> <fl:input property="MelLabelIsCode" /> <fl:getMessage code="L6251" alt="Le libellé est un code"/> </div> </td> </tr> --%> <input type="hidden" name="MelLabelIsCode" value="true"> </table> </td> </tr> <% if (typeCode.equals("LEAF")) { %> <fl:fieldEdit property="MelIconName"/> <% } %> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table> <% if (parentID == null) { %> <tr class="fieldline"> <td class="dataLabel"><fl:getMessage code="F1023" alt="Type"/></td> <td class="dataValue"> <div class="input select"> <select name="MelType" onchange="doRefresh()" class="input select"> <option value="LEAF" <%= typeCode.equals("LEAF") ? "selected" : "" %>><fl:getMessage code="L6253" alt="Feuille"/></option> <option value="NODE" <%= typeCode.equals("NODE") ? "selected" : "" %>><fl:getMessage code="L6252" alt="Noeud"/></option> </select> </div> </td> </tr> <% } %> <% if (typeCode.equals("LEAF")) { %> <fl:fieldEdit property="MelLink" size="40"/> <fl:fieldEdit property="MelOpensNew"/> <% } %> <fl:fieldEdit property="MelPosition"/> </table> </td> </tr> <tr class="ligne_separation"><td> </td></tr> <tr> </tr> </table> </fl:bigTabs> <br> <div align="center"> <a href="javaScript:submit()"><img src="<fl:webapp/>/icons/ico/valid_green_long.gif"></a> <a href="javaScript:window.top.close()"><img src="<fl:webapp/>/icons/ico/fermer_red_long.gif"></a> </div> </fl:form> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de