Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\netbusiness\silhouette\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="java.util.Date" %> <%@ page import="java.util.Hashtable" %> <%@ page import="com.edeal.frontline.FrontlineException" %> <%@ page import="java.util.Vector" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.SilhouetteBean" id="Silhouette" 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; String strActID = (String)session.getAttribute("actorID"); try { id = Silhouette.getID(); } catch (FieldNotInitializedException fnie) { Silhouette.setSilFstName(Utils.getMessage(session, "F611C", true, "<Prénom>")); Silhouette.setSilName(Utils.getMessage(session, "F611D", true, "<Nom>")); } StringBuffer fullName = new StringBuffer(); if (id != null) { String val; try { val = Silhouette.getSilCivID(); fullName.append(dico.getRefDisp(session, "SilCivID", val) + " "); } catch (FieldNotInitializedException e) { } try { val = Silhouette.getSilFstName(); fullName.append(val + " "); } catch (FieldNotInitializedException e) { } try { val = Silhouette.getSilName(); fullName.append(val + " "); } catch (FieldNotInitializedException e) { } } String silFirstNameOnFocus = "if (this.value == '" + Utils.getMessage(session, "F611C", true, "<Prénom>") + "') { this.value = ''; }"; String silNameOnFocus = "if (this.value == '" + Utils.getMessage(session, "F611D", true, "<Nom>") + "') { this.value = ''; }"; String silFirstNameOnBlur = "if (this.value == '" + Utils.getMessage(session, "F611C", true, "<Prénom>") + "') { return true; } if (!this.value) { this.value = '" + Utils.getMessage(session, "F611C", true, "<Prénom>") + "'; } else { this.value = checkString(this.value, 'capitalize'); }"; String silNameOnBlur = "if (this.value == '" + Utils.getMessage(session, "F611D", true, "<Nom>") + "') { return true; } if (!this.value) { this.value = '" + Utils.getMessage(session, "F611D", true, "<Nom>") + "'; } else { this.value = checkString(this.value, 'upper'); }"; String SilCtrID; try { SilCtrID = Silhouette.getSilCtrID(); } catch (Exception e) { SilCtrID = ""; } %> <script type="text/javascript" language="javascript"> function doSubmit() { var f = document.forms[0]; if (f.SilMail){ var silmailVal = f.SilMail.value; if (silmailVal != null && silmailVal.length > 0){ if (!checkEmail(silmailVal)){ alert('<fl:getMessage code="L6631" alt="Veuillez vérifier votre adresse électronique" js="true"/>'); f.SilMail.focus(); return false; } } } if (f.SilFstName.value == '<fl:getMessage code="F611C" alt="<Prénom>" js="true"/>') { f.SilFstName.value = ''; } if (f.SilName.value == '<fl:getMessage code="F611D" alt="<Nom>" js="true"/>') { f.SilName.value = ''; } return true; } </script> <fl:form action="/save_silhouette.fl" bean="Silhouette"> <input type="hidden" name="SilMatchCode" id="SilMatchCode" value=""> <fl:bigTabs objectTitle="<%= Utils.getMessage(session, \"L643C\", false, true, \"Silhouette\") %>" ou="<%= \"/edit_silhouette.fl\" + (id != null ? \"?id=\" + id : \"\") %>"> <table class="container" cellpadding="0"> <tr> <td class="labelTitreFiche"><fl:label field="SilFstName" labelClassName="labelTitreFiche" code="L2094"/></td> <td style="padding-left: 10px; width: 75px;"><fl:input name="Silhouette" property="SilCivID" alt=""/></td> <td style="padding-left: 10px;"> <fl:input name="Silhouette" property="SilFstName" onfocus="<%= silFirstNameOnFocus %>" onblur="<%= silFirstNameOnBlur %>"/> </td> <td style="padding-left: 10px;"> <fl:input name="Silhouette" property="SilName" onfocus="<%= silNameOnFocus %>" onblur="<%= silNameOnBlur %>"/> </td> </tr> <tr class="ligne_separation"><td colspan="4"></td></tr> </table> <table class="container" cellpadding="0"> <tr> <td class="column2"> <table class="data_column" cellpadding="0"> <fl:fieldEdit property="SilEnterprise" /> <fl:fieldEdit property="SilFonction" /> <fl:fieldEdit property="SilService" /> <fl:fieldEdit property="SilPhone"/> <fl:fieldEdit property="SilMail"/> <fl:fieldEdit property="SilBlackList"/> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="dataLabel" rowspan="5"><fl:label code="F2012"/></td> <td class="dataValue"><fl:input property="SilAd1"/></td> </tr> <tr class="fieldline"> <td class="dataValue"><fl:input property="SilAd2"/></td> </tr> <tr class="fieldline"> <td class="dataValue"><fl:input property="SilAd3"/></td> </tr> <tr class="fieldline"> <td class="dataValue"> <div class="fieldTable" > <table class="fieldTable" cellpadding="0"> <tr> <td class="smallFieldPart"><fl:input property="SilZip" size="5" width="auto" nodiv="true"/></td> <td class="bigFieldPart"><fl:input property="SilCity" onblur="this.value = checkString(this.value, 'upper');" nodiv="true"/></td> </tr> </table> </div> </td> </tr> <tr class="fieldline"> <td class="dataValue"><fl:input property="SilCtrID"/><input type="hidden" name="country" value="<%= SilCtrID %>"></td> </tr> </table> </td> </tr> <tr class="ligne_separation"><td></td></tr> </table> <link href="<fl:webapp/>/css/smalltabs_css.jsp" rel="stylesheet" type="text/css"> <script language="javascript" type="text/javascript" src="<fl:webapp/>/js/smalltabs.jsp"></script> <fl:smallTabs name="SilhouetteTabs"> <fl:sTab id="WEBACCESS" title="<%= Utils.getMessage(session, \"L0055\", false, true, \"Accès web\") %>"> <table class="container" cellpadding="0"> <tr> <td class="column2"> <% if (id != null) { %> <table class="data_column" cellpadding="0"> <fl:fieldRead property="SilOrigin"/> </table> <% } else { %> <table class="data_column" cellpadding="0"> <fl:fieldEdit property="SilOrigin" autocomplete="off"/> </table> <% } %> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="data_column" cellpadding="0"> <fl:fieldEdit property="SilCtyID" /> <fl:fieldEdit property="SilNltID" type="BUTTONS"/> </table> </td> </tr> </table> </fl:sTab> <fl:sTab id="INFOS" title="<%= Utils.getMessage(session, \"L81D5\", false, true, \"Infos. Complémentaires\") %>"> <table class="container" cellpadding="0"> <tr> <td class="column2"> <table class="data_column" cellpadding="0"> <fl:fieldEdit property="SilField1"/> <fl:fieldEdit property="SilField2"/> <fl:fieldEdit property="SilField3"/> <fl:fieldEdit property="SilField4"/> <fl:fieldEdit property="SilField5"/> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="data_column" cellpadding="0"> <fl:fieldEdit property="SilField6"/> <fl:fieldEdit property="SilField7"/> <fl:fieldEdit property="SilField8"/> <fl:fieldEdit property="SilField9"/> <fl:fieldEdit property="SilField10"/> </table> </td> </tr> </table> </fl:sTab> </fl:smallTabs> </fl:bigTabs> </fl:form>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de