Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\netbusiness\emailsnippet\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" %> <%@ page import="java.util.Vector" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.EMailSnippetBean" id="EMailSnippet" 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 = EMailSnippet.getID(); } catch (FieldNotInitializedException fnie) { } String content = null; try { content = EMailSnippet.getEmtContent(); } 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"> //insert text in textarea at cursor position function insertAtContent(elementid) { var url = $('#' + elementid).val(); var text= $.trim($('#' + elementid + " option:selected").text()); editor.insertHtml('<a href="' + url + '">' + text + '</a>'); } function doSubmit() { var f = document.forms[0]; f.EmtContent.value = editor.getData(); if (f.EmtName.value == '') { document.getElementById('EmtName_msg').style.display = "inline"; alert('<fl:getMessage code="L63B1" alt="Veuillez saisir un nom" js="true"/>'); f.EmtName.focus(); return false; } else if (f.EmtContent.value == '') { document.getElementById('EmtContent_msg').style.display = "inline"; alert('<fl:getMessage code="M60E4" alt="Veuillez saisir un contenu" js="true"/>'); f.EmtContent.focus(); return false; } f.submit(); } </script> <fl:form action="/save_emailsnippet.fl" bean="EMailSnippet"> <fl:bigTabs objectTitle="<%=Utils.getMessage(session, \"L7052\", false, true, \"Blocs html\")%>" ou="<%= \"/edit_emailsnippet.fl\" + (id != null ? \"?id=\" + id : \"\")%>"> <table class="container" cellpadding="0"> <tr> <td> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="labelTitreFiche"> <fl:label field="EmtName" labelClassName="titreFiche"/> </td> <td class="fieldTitreFiche"> <fl:input property="EmtName" mandatoryMsgCode="L63B1"/> </td> </tr> </table> </td> </tr> <tr><td class="ligne_separation"/></tr> </table> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="column2"> <table class="data_column" cellpadding="0"> <fl:fieldEdit property="EmtLanguage"/> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="container" cellpadding="0"> <tr> <td class="dataValue" style="vertical-align:top; width: 100%"> <table class="data_column" cellpadding="0"> <tr class="fieldline"> <td class="dataLabel"><fl:getMessage code="F7063" alt="Rajouter lien connu"/> </td> <td class="dataValue"> <% Vector vectType = null; Vector vectUrl = null; try{ vectType = dico.getRefList("Klk","Te1"); vectUrl = dico.getRefList("Klk","Te2"); }catch(Exception fe){ } %> <div class="fieldTable" > <table class="fieldTable" cellpadding="0"> <tr> <td class="principalText"> <div class="input select"> <select name="link" id="link" class="input select"> <% if ((vectType != null) && (vectType.size() > 0) && (vectUrl.size() > 0)&&(vectUrl != null)){ for (int j=0 ; j < vectType.size() ; j++) { Vector vType = (Vector) vectType.elementAt(j); Vector vUrl = (Vector) vectUrl.elementAt(j); String type = (String) vType.elementAt(1); String url = (String) vUrl.elementAt(1); %> <option value="<%=Utils.formatToWeb(url, false) %>"> <%=Utils.formatToWeb(type, false)%> </option> <% } } %> </select> </div> </td> <td class="postText"><a href="javascript:insertAtContent('link');"><img src="<fl:link url="/icons/add.png"/>" ></a> </td> </tr> </table> </div> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr><td class="ligne_separation"/></tr> </table> <table cellpadding="0" class="container"> <tbody> <tr class="fieldline"> <td class="dataLabel" id="EmtContent_label"> <div><fl:label code="F203D" label="Contenu"/></div> </td> </tr> <td class="column2" colspan="5"> <fl:input height="200px" property="EmtContent" nodiv="true" mandatoryMsgCode="M60E4"/> </td> </tr> </tbody> </table> </fl:bigTabs> </fl:form> <!-- CKEditor --> <script type="text/javascript" src="<fl:webapp/>/js/wysiwyg/ckeditor/ckeditor.js"></script> <script type="text/javascript" src="<fl:webapp/>/js/wysiwyg/ckeditor/adapters/jquery.js"></script> <script type="text/javascript"> var editor = CKEDITOR.replace('EmtContent', { toolbar : [ ['Styles','Format','Font','FontSize','-','Bold','Italic','Underline','StrikeThrough','-','Undo','Redo','-','Cut','Copy','Paste','Find','Replace','-','Outdent','Indent','-','Print'], '/', ['NumberedList','BulletedList','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['Table','-','Link','Flash','Smiley','TextColor','BGColor','Source'] ], resize_enabled : false }); </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de