Edit C:\galaxie\deploy\Tomcat6\webapps\galaxie\admin\dictionary\edit_objects.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.ObjectsBean" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.ObjectsBean" id="Objects" 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 = Objects.getID(); } catch (FieldNotInitializedException fnie) { } boolean isCreate = id == null; String title = Utils.getMessage(session, "L644A", "Création d\'un objet"); if (!isCreate) { title = Utils.getMessage(session, "L6594", "Objet"); } %> <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" src="<fl:webapp/>/js/ac/textAC_js.jsp"></script> <script type="text/javascript" language="javascript"> var type = "0"; function doSubmit() { return true; } function create() { var f = document.forms[0]; if (f.id && f.id.value) { f.$$returnedHtmlHead.value = '<scr' + 'ipt language="javascript" type="text/javascript">window.opener.refreshList();self.close();</scr'+ 'ipt>'; } else { // Html Head is not needed here.... f.$$returnedHtmlHead.value = 'HtmlHead'; f.action = '<fl:webapp/>/save_new_objects.fl'; } submit(); } 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_objects.fl" bean="Objects"> <input id="$$returnedHtmlHead" name="$$returnedHtmlHead" type="hidden" value=""> <input id="$$returnedHtmlBody" name="$$returnedHtmlBody" type="hidden" value="Closing..."> <fl:bigTabs objectTitle="<%= title %>" ou="<%= \"/edit_objects.fl\" + (id != null ? \"?id=\" + id : \"\") %>"> <table class="container" cellpadding="0"> <tr> <td colspan="5"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="labelTitreFiche"><fl:label field="ObjSql" labelClassName="TitreFiche" code="L6595"/></td> <td class="fieldTitreFiche"><fl:input property="ObjSql" mandatoryMsgCode="L63DC" unicityMsg="Le nom SQL d'un objet doit être unique" unicityMsgCode="L644C"/></td> </tr> </table> </td> </tr> <tr class="ligne_separation"><td colspan="3"></td></tr> <tr> <td class="column2"> <table class="container" cellpadding="0"> <fl:fieldEdit property="ObjDisplay" width="100%" mandatoryMsgCode="M610B"/> <% String displayLabel = null; try { displayLabel = Objects.getObjDisplayLabel(); } catch (FieldNotInitializedException fnie) { } %> <tr class="fieldline"> <td class="dataLabel"><label for="selectObjDisplayLabel"><fl:getMessage code="L6015" alt="Nom affiché"/></label></td> <td class="dataValue"> <div class="fieldTable" > <table class="fieldTable" cellpadding="0"> <tr><td class="principalText"> <input type="hidden" id="ObjDisplayLabel" name="ObjDisplayLabel" value="<fl:getProperty name="Objects" property="ObjDisplayLabel" alt=""/>"/> <%if(isCreate){ %> <input type="hidden" id="ObjDefaultEdit" name="ObjDefaultEdit" value="1"/> <input type="hidden" id="ObjDefaultCreate" name="ObjDefaultCreate" value="1"/> <input type="hidden" id="ObjDefaultDelete" name="ObjDefaultDelete" value="1"/> <input type="hidden" id="ObjDefaultRead" name="ObjDefaultRead" value="1"/> <%} %> <input style="width:100%;" type="text" id="lblObjDisplayLabel" name="lblObjDisplayLabel" value="<%= displayLabel != null ? Utils.getMessage(session, displayLabel, null) : "" %>" readonly="readonly" onfocus="this.form.ObjModule.focus();" /> </td><td class="postText"> <a id="selectObjDisplayLabel" href="javascript:doSelectLabel('ObjDisplayLabel')"><img src="<fl:webapp/>/icons/ico/rechercher.gif" alt="" border="0"></a> <a href="javascript:doRemoveLabel('ObjDisplayLabel')"><img src="<fl:webapp/>/icons/ico/supprimer.gif" alt="" border="0"></a> </td> </tr> </table> </div> </td> </tr> <fl:fieldEdit property="ObjModule" mandatoryMsgCode="M6072" width="100%"/> <fl:fieldEdit property="ObjRadical" mandatoryMsgCode="M603B" size="5" width="100%" unicityMsg="Veuillez choisir un radical différent de ceux existants" unicityMsgCode="M6039"/> <fl:fieldEdit property="ObjStandard"/> <fl:fieldEdit property="ObjModificationLogged"/> <fl:fieldEdit property="ObjConnexObjs" width="100%"/> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="container" cellpadding="1" style="border-collapse: collapse;"> <fl:fieldEdit property="ObjSelectFields" /> <fl:fieldEdit property="ObjSelectDisplay"/> <% String queryList = "LstObjID = '" + id + "'"; %> <fl:fieldEdit property="ObjSelectListCode"> <fl:suggest table="List" field="LstCode" caseSensitive="false" maxLimit="20" trigger="1" /> </fl:fieldEdit> <fl:fieldEdit property="ObjToString"/> <tr class="fieldline"> <TD class="dataLabel"> <fl:label field="ObjAjaxSearch" code="L6596"/> </TD> <td class="dataValue" > <div><input id="ObjAjaxSearch" name="ObjAjaxSearch" type="text" value="<fl:getProperty name="Objects" property="ObjAjaxSearch" alt=""/>" class="input text" style="width:100%;"></div> </td> </tr> <tr class="fieldline"> <TD class="dataLabel"> <fl:label field="ObjAjaxOrder" code="L6597"/> </TD> <td class="dataValue" > <div><input id="ObjAjaxOrder" name="ObjAjaxOrder" type="text" value="<fl:getProperty name="Objects" property="ObjAjaxOrder" alt=""/>" class="input text" style="width:100%;"></div> </td> </tr> <fl:fieldEdit property="ObjAjaxMinChar"/> </table> </td> </tr> <tr class="ligne_separation"><td colspan="3"></td></tr> <tr> <td class="titrePartie" colspan="3"> <fl:getMessage code="L2007" alt="Description"/> </td> </tr> <tr class="ligne_separation_couleur"><td colspan="3"></td></tr> <tr class="ligne_separation"><td></td></tr> <tr> <td colspan="3" class="dataValue noPaddingLeft"><div class="input textarea"><textarea id="ObjDescription" name="ObjDescription" rows="6" class="input textarea" style="width: 100%;"><fl:getProperty name="Objects" property="ObjDescription" alt=""/></textarea></div></td> </tr> <tr><td colspan="3"></td></tr> <tr class="ligne_separation"><td colspan="3"></td></tr> <tr> <td colspan="3" class="dataValue noPaddingLeft" style="text-align: left;"> <% if (isCreate) { %> <input type="checkbox" id="ObjAlterTable" name="ObjAlterTable" value="true" checked class="noPaddingLeft"/><label for="$$alterTable" class="mandatory_alert"><fl:getMessage code="L6013" alt="Alter la table"/></label> <% } else { %> <span><fl:getMessage code="L602D" alt="Une mise à jour de la base de données sera necessaire"/></span> <input type="hidden" id="ObjAlterTable" name="ObjAlterTable" value="false"/> <% } %> </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> <a href="javascript:window.top.close();" title="<fl:getMessage code="A2002" alt="Annuler"/>"><img src="<fl:link url="/icons/ico/fermer_red_long.gif"/>"></a> </div> </div> <fl:title name="Objects"/> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de