Edit C:\galaxie\deploy\Tomcat6\webapps\galaxie\admin\linkzonefield\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" contentType="text/html; charset=UTF-8" %> <%@ 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="java.util.Date" %> <%@ page import="java.util.Vector" %> <%@ page import="java.util.Hashtable" %> <%@ page import="com.edeal.frontline.TablesBean" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.FieldBean" %> <%@ page import="com.edeal.frontline.ObjectsBean" %> <%@ page import="java.util.Iterator" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.LinkZoneFieldBean" id="LinkZoneField" 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 = LinkZoneField.getID(); } catch (FieldNotInitializedException fnie) { } boolean isCreate = id == null; Vector fields = (Vector)flRequest.getAttribute("fields"); if (fields == null) { fields = new Vector(); } String preText = null; try { preText = LinkZoneField.getLzfPreText(); } catch (FieldNotInitializedException fnie) { } String postText = null; try { postText = LinkZoneField.getLzfPostText(); } catch (FieldNotInitializedException fnie) { } %> <html> <head> <title></title> <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/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/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> <script type="text/javascript" language="javascript"> var type = "0"; function doSubmit() { var f = window.document.forms[0]; return true; } function create() { var f = document.forms[0]; f.$$returnedHtmlHead.value = '<scr' + 'ipt language="javascript" type="text/javascript">window.opener.refreshList();self.close();</scr'+ 'ipt>'; submit(); } function createAndContinue() { var head = document.getElementById("$$returnedHtmlHead"); var parent = head.parentNode; parent.removeChild(head); var body = document.getElementById("$$returnedHtmlBody"); parent = body.parentNode; parent.removeChild(body); document.forms[0].reset.value = "1"; submit(); } function deleteLzf(id){ if (confirm('<fl:getMessage code="M2004" alt="Etes-vous sûr de vouloir supprimer?" js="true"/>')) { doAjax('<fl:link url="/delete_linkzonefield_ajax.fl?type=LinkZoneField&id=' + id + '"/>', closeWindowFromDelete); } } function closeWindowFromDelete(arrIndex) { if (eDealXmlhttpArr[arrIndex].readyState == 4) { hideWaiting(); if (eDealXmlhttpArr[arrIndex].responseText != '') { eval(eDealXmlhttpArr[arrIndex].responseText); } closeWindow(); } } function closeWindow() { window.opener.refreshList(); window.top.close(); } 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,scrollbars=auto'); } 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_linkzonefield.fl" bean="LinkZoneField"> <input id="$$returnedHtmlHead" name="$$returnedHtmlHead" type="hidden" value=""/> <input id="$$returnedHtmlBody" name="$$returnedHtmlBody" type="hidden" value="Closing..."/> <input type="hidden" name="reset" id="reset" value=""/> <input type="hidden" name="LzfAdzID" id="LzfAdzID" value="<fl:getProperty name="LinkZoneField" property="LzfAdzID" alt=""/>"/> <fl:bigTabs objectTitle="<%= Utils.getMessage(session, \"L6258\", \"Champ\") %>" ou="<%= \"/edit_linkzonefield.fl\" + (id != null ? \"?id=\" + id : \"\") %>"> <table class="container" cellpadding="0"> <tr> <td colspan="3"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="labelTitreFiche"><fl:label code="L6258" forInput="LzfFldID" labelClassName="titreFiche"/></td> <td class="fieldTitreFiche"> <div> <input type="hidden" name="mandatory" value="LzfFldID"> <input type="hidden" id="mandatory.LzfFldID" name="mandatory.LzfFldID" value="<fl:getMessage code="M6022" alt="Veuillez renseigner le champ"/>"> <select class="input select chpsTextObligatoire" name="LzfFldID" id="LzfFldID"> <option value=""></option> <% for (Iterator iter = fields.iterator(); iter.hasNext();) { Hashtable row = (Hashtable)iter.next(); String fldID = (String)row.get("id"); String display = (String)row.get("display"); boolean fob = row.get("fob") != null; boolean selected = row.get("selected") != null; %> <option value="<%= Utils.formatToWeb(fldID, true) %>"<%= selected ? " selected=\"selected\"" : "" %><%= fob ? " fob=\"fob\"" : "" %> ><%= Utils.formatToWeb(display, false) %></option> <% } %> </select> <span id="LzfFldID_msg" class="mandatory_alert" style="display: none">!</span> </div> </td> </tr> </table> </td> </tr> <tr class="ligne_separation" colspan="3"><td></td></tr> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="dataLabel"><fl:label field="LzfPreText"/></td> <td class="dataValue"> <div class="fieldTable" > <table class="fieldTable" cellpadding="0"> <tr> <td class="principalText"> <input type="hidden" name="LzfPreText" id="LzfPreText" value="<%= Utils.formatToWeb(preText, true) %>"/> <input type="text" name="lblLzfPreText" id="lblLzfPreText" class="input text" value="<%= preText != null ? Utils.getMessage(session, preText, "") : "" %>" readonly="readonly" onfocus="this.blur();"/> </td> <td class="postText"> <a id="selectLzfPreText" href="javascript:doSelectLabel('LzfPreText')"><img src="<fl:webapp/>/icons/ico/rechercher.gif" alt="" class="icon"></a> <a href="javascript:doRemoveLabel('LzfPreText')"><img src="<fl:webapp/>/icons/ico/supprimer.gif" alt="" class="icon"></a></td> </tr> </table> </div> </td> </tr> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="data_column" cellpadding="0"> <fl:fieldEdit property="LzfPosition"/> </table> </td> </tr> <tr> <td colspan="3"></td> </tr> <tr> <td colspan="3" class="titrePartie"><fl:getMessage code="L6470" alt="Attributs du tag"/></td> </tr> <tr class="ligne_separation_couleur"><td colspan="3"></td></tr> <tr class="ligne_separation" colspan="3"><td></td></tr> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="dataLabel"><div><label for="LzfReadTagAttributes" title="<fl:getMessage code="L64BF" alt="Att getProperty"/>"><fl:getMessage code="L64BF" alt="Att getProperty"/></label></div></td> <td class="dataValue"><div class="input textarea"><textarea id="LzfReadTagAttributes" name="LzfReadTagAttributes" class="input textarea" style="width:100%;nowrap;"><fl:getProperty name="LinkZoneField" property="LzfReadTagAttributes" alt="" edit="true"/></textarea></div></td> </tr> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="data_column" cellpadding="0"> <tr class="fieldline"> <td class="dataLabel"><div><label for="LzfEditTagAttributes" title="<fl:getMessage code="L64C0" alt="Att input"/>"><fl:getMessage code="L64C0" alt="Att input"/></label></div></td> <td class="dataValue"><div class="input textarea"><textarea id="LzfEditTagAttributes" name="LzfEditTagAttributes" class="input textarea" style="width:100%;nowrap;"><fl:getProperty name="LinkZoneField" property="LzfEditTagAttributes" alt="" edit="true"/></textarea></div></td> </tr> </table> </td> </tr> </table> </fl:bigTabs> </fl:form> <div style="width: 100%;text-align: center;"> <a href="javascript:create()" title="<fl:getMessage code="A2001" alt="Valider"/>"><img src="<fl:link url="/icons/ico/valid_green_long.gif"/>"></a> <% if (isCreate) { %> <a href="javascript:createAndContinue()" title="<fl:getMessage code="A3069" alt="Valider et nouveau"/>"><img src="<fl:link url="/icons/ico/save_all_long.gif"/>" ></a> <% } if (!isCreate) { %> <a href="javascript:deleteLzf('<%= id %>')" title="<fl:getMessage code="A0007" alt="Supprimer"/>"><img src="<fl:link url="/icons/ico/supprimer_long.gif"/>"></a> <% } %> <a href="javascript:closeWindow();" title="<fl:getMessage code="A2002" alt="Annuler"/>"><img src="<fl:link url="/icons/ico/fermer_red_long.gif"/>" ></a> </div> </div> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de