Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\netbusiness\emailsender\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.FlLocale" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.EMailSenderBean" id="EMailSender" scope="request"/> <link href="<fl:webapp/>/css/smalltabs_css.jsp" rel="stylesheet" type="text/css"> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/common_css.jsp"> <% 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(); FlLocale local = FlLocale.getInstance(session); String id = null; try { id = EMailSender.getID(); } catch (FieldNotInitializedException fnie) { } %> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/edeal/libraries/jquery/jquery.js"></script> <script language="JavaScript" src="<fl:webapp/>/js/checkFields.jsp"></script> <script type="text/javascript" language="javascript"> function doEsnActorIDChange(){ if ($('#EsnActorID').val() != "") { $.getJSON("<fl:webapp/>/get_act_field.fl?id="+$('#EsnActorID').val(), function(result) { if (result != null) { $('#EsnName').val(result.actFstName + " " + result.actName); $('#EsnEmail').val(result.actMail); $('#EsnMobile').val(result.actMobile); $('#EsnFax').val(result.actFax); } }); } } function enableOrDisableFields(){ enableOrDisableActorField(); enableOrDisablePerField(); } function enableOrDisableActorField(){ if ($('#lblEsnActorID').attr('readonly')){ //enabled $('#lblEsnActorID').removeAttr('readonly'); //first link $('#EsnActorID_icons > a:nth-child(1)').attr('href', $('#EsnActorID_icons > a:nth-child(1)').attr('ed:href')); $('#EsnActorID_icons > a:nth-child(1)').removeAttr('ed:href'); //second link $('#EsnActorID_icons > a:nth-child(2)').attr('href', $('#EsnActorID_icons > a:nth-child(2)').attr('ed:href')); $('#EsnActorID_icons > a:nth-child(2)').removeAttr('ed:href'); $('#lblEsnActorID').attr('class','input fob chpsTextObligatoire'); $('#lblEsnActorID').focus(); } else { //readonly $('#lblEsnActorID').attr('readonly', 'readonly'); //first link $('#EsnActorID_icons > a:nth-child(1)').attr('ed:href', $('#EsnActorID_icons > a:nth-child(1)').attr('href')); $('#EsnActorID_icons > a:nth-child(1)').removeAttr('href'); //second link $('#EsnActorID_icons > a:nth-child(2)').attr('ed:href', $('#EsnActorID_icons > a:nth-child(2)').attr('href')); $('#EsnActorID_icons > a:nth-child(2)').removeAttr('href'); $('#lblEsnActorID').attr('class','input fob'); } } function enableOrDisablePerField(){ if ($('#EsnName').attr('readonly')){ //enabled $('#EsnName').removeAttr('readonly'); $('#EsnName').attr('class','input text chpsTextObligatoire'); $('#EsnEmail').attr('class','input text chpsTextObligatoire'); $('#EsnName').focus(); } else { //readonly $('#EsnName').attr('readonly', 'readonly'); $('#EsnName').attr('class','input text'); $('#EsnEmail').attr('class','input text'); } } $('#exp_check1').ready(function () { if ($("input[name='id']").val() == ''){ $('#exp_check1').attr('checked', true); $('#EsnName').attr('readonly', 'readonly'); $('#lblEsnActorID').attr('class','input fob chpsTextObligatoire'); } else { $('#exp_check2').attr('checked', true); $('#lblEsnActorID').attr('readonly', 'readonly'); //first link $('#EsnActorID_icons > a:nth-child(1)').attr('ed:href', $('#EsnActorID_icons > a:nth-child(1)').attr('href')); $('#EsnActorID_icons > a:nth-child(1)').removeAttr('href'); //second link $('#EsnActorID_icons > a:nth-child(2)').attr('ed:href', $('#EsnActorID_icons > a:nth-child(2)').attr('href')); $('#EsnActorID_icons > a:nth-child(2)').removeAttr('href'); $('#EsnName').attr('class','input text chpsTextObligatoire'); $('#EsnEmail').attr('class','input text chpsTextObligatoire'); } }); function doSubmit() { var message = ''; if (($('#EsnName').attr('class') == 'input text chpsTextObligatoire') && ($('#EsnName').val() == '')){ message = '<fl:getMessage code="L63B1" alt="Veuillez saisir un nom" js="true"/>'; } if (($('#EsnEmail').attr('class') == 'input text chpsTextObligatoire') && ($('#EsnEmail').val() == '')){ if (message != '') message = message + '\n' + '<fl:getMessage code="L7055" alt="Veuillez saisir un e-mail" js="true"/>'; else message = '<fl:getMessage code="L7055" alt="Veuillez saisir un e-mail" js="true"/>'; } if (($('#lblEsnActorID').attr('class') == 'input fob chpsTextObligatoire') && ($('#lblEsnActorID').val() == '')){ message = '<fl:getMessage code="L7056" alt="Veuillez choisir un acteur" js="true"/>'; } if (($('#lblEsnActorID').attr('class') == 'input fob chpsTextObligatoire') && ($('#EsnEmail').val() == '')){ message = '<fl:getMessage code="L7055" alt="Veuillez saisir un e-mail" js="true"/>'; } if (!checkEmail($('#EsnEmail').val())){ message = '<fl:getMessage code="L6631" alt="Veuillez vérifier votre adresse électronique" js="true"/>'; } if (message != '') { alert(message); return false; } return true; } </script> <fl:form action="/save_emailsender.fl" bean="EMailSender"> <fl:bigTabs objectTitle="<%=Utils.getMessage(session, \"F7062\", false, true, \"Expéditeurs\")%>" ou="<%= \"/edit_emailsender.fl\" + (id != null ? \"?id=\" + id : \"\")%>"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="column2"> <table class="data_column" cellpadding="0"> <tr> <td class="dataLabel"> <table> <tr> <td width="25"><input class="checkbox" type="radio" name="exp_check" id="exp_check1" onclick="enableOrDisableFields();"/></td> <td><fl:label field="EsnActorID"/></td> </tr> </table> </td> <td class="dataValue"> <fl:input property="EsnActorID"/> </td> </tr> <tr> <td class="dataLabel"> <table> <tr> <td width="25"><input class="checkbox" type="radio" name="exp_check" id="exp_check2" onclick="enableOrDisableFields();"/></td> <td><fl:label field="EsnName"/></td> </tr> </table> </td> <td class="dataValue"> <fl:input property="EsnName"/> </td> </tr> <tr> <td class="dataLabel"> <table> <tr> <td width="25"></td> <td><fl:label field="EsnEmail"/></td> </tr> </table> </td> <td class="dataValue"> <fl:input property="EsnEmail"/> </td> </tr> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="data_column" cellpadding="0"> <fl:fieldEdit property="EsnBounceMailServer"/> <fl:fieldEdit property="EsnBounceUser"/> <fl:fieldEdit property="EsnBouncePwd"/> <fl:fieldEdit property="EsnBounceAccessType"/> <fl:fieldEdit property="EsnFax"/> <fl:fieldEdit property="EsnMobile"/> </table> </td> </tr> </table> </fl:bigTabs> </fl:form>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de