Edit C:\galaxie\Back\galaxie\netbusiness\messages\edit_popup.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.*" %><%@ page import="com.edeal.frontline.FlContext" %><%@ page import="com.edeal.frontline.FieldNotInitializedException" %><%@ page import="com.edeal.frontline.Utils" %><%@ page import="com.edeal.frontline.ObjectsBean" %><%@ page import="com.edeal.frontline.MessagesBean" %><%@ page import="java.util.*" %><%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %><jsp:useBean class="com.edeal.frontline.MessagesBean" id="Messages" 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 = Messages.getID(); } catch (FieldNotInitializedException fnie) { } String pCode = flRequest.getParameter("code"); String pCty = flRequest.getParameter("cty"); String pNext = flRequest.getParameter("next"); String pTarget = flRequest.getParameter("target"); String pObject = flRequest.getParameter("object"); MessagesBean obj = (MessagesBean)request.getAttribute("Messages"); if (pObject != null && !"".equals(pObject)) { obj.setMsgObjID(pObject); } try { String cty = dico.getRefCode("MsgCtyID", obj.getMsgCtyID()); if("MIME".equalsIgnoreCase(cty)) { Utils.forward(request, response, "/read_message.fl" + (id == null ? "" : "?id=" + id)); } } catch (Exception ex) { } String[] objFields = { "ObjID", "ObjDisplay", "ObjSql" }; String[][] objQuery = {{ "ObjSql in (" + Utils.formatToSQL(context, "Person") + ", " + Utils.formatToSQL(context, "Solicitation") + ", " + Utils.formatToSQL(context, "Journalist") + ", " + Utils.formatToSQL(context, "Silhouette") + ", " + Utils.formatToSQL(context, "Actor") + ")" }}; String[] objOrderBy = { "ObjDisplay" }; Vector objList; try { objList = ObjectsBean.listSummary(session, objFields, objQuery, objOrderBy); } catch (FrontlineException e) { objList = new Vector(); } %> <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" type="text/css"> <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 language="javascript"> function doSubmit() { var f = document.forms[0]; var str ='<scr' + 'ipt language="javascript">window.top.opener.parent.location="<fl:link menu="true" url="/list_criteria_newsletter.fl"/>";window.top.close();</s' + 'cript>'; f.$$returnedHtmlHead.value = str; f.submit(); } </script> <body> <div id="object_css" style="top: 0px; left: 0px; bottom: 0px; height: 100%;"> <fl:form action="/save_messages_popup.fl" bean="Messages"> <input type="hidden" name="$$returnedHtmlHead" value=""/> <input type="hidden" name="$$returnedHtmlBody" value="close..."/> <% if (pCode != null) { %> <input name="MsgCode" type="hidden" value="<%= pCode %>"> <% } %> <fl:bigTabs listTitle="<%= Utils.getMessage(session, \"L0020\", \"Liste des messages\") %>" objectTitle="<%= Utils.getMessage(session, \"F6002\", \"Message\") %>" ou="<%= \"/edit_messages.fl\" + (id != null ? \"?id=\" + id : \"\") %>"> <table class="container" cellpadding="0"> <tr> <td class="titreFiche" colspan="3"> <table class="fieldline"> <td class="labelTitreFiche"><fl:label field="MsgSubject" labelClassName="titreFiche"/></td> <td class="fieldTitreFiche"><fl:input property="MsgSubject" mandatoryMsgCode="M000C"/></td> </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="MsgCtyID"/></td> <td class="dataValue"> <div> <% if(pCty != null) { String ctyID = dico.getRefIdByCode("MsgCtyID", pCty); %> <input name="MsgCtyID" type="hidden" value="<%= ctyID %>"><%= dico.getRefDisp(session, "MsgCtyID", ctyID) %><% } else { %> <select name="MsgCtyID" id="MsgCtyID" class="input select"> <fl:getProperty name="Messages" property="MsgCtyID" alt="" type="select" except="MIME" edit="true"/> </select> <% } %> </div> </td> </tr> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="dataLabel"><fl:label field="MsgObjID"/></td> <td class="dataValue"> <div> <% if (objList != null && objList.size() > 0) { %> <select name="MsgObjID" id="MsgObjID" class="input select"> <option value=""></option> <% for (int i = 0; i < objList.size(); i++) { Hashtable row = (Hashtable)objList.elementAt(i); String objID = (String)row.get("ObjID"); String objDisplay = (String)row.get("ObjDisplay"); String objSql = (String)row.get("ObjSql"); %> <option value="<%= Utils.formatToWeb(objID, true) %>" <%= objID != null && objID.equals(id) ? "selected" : "" %> ><%= objDisplay != null ? Utils.formatToWeb(objDisplay, false) : Utils.formatToWeb(objSql, false) %></option> <% } %> </select> <% } %> </div> </td> </tr> </table> </td> </tr> </table> <table class="container" cellpadding="0"> <tr class="ligne_separation"><td></td></tr> <tr> <td class="titrePartie"><fl:label field="MsgBody"/></td> </tr> <tr> <td class="dataValue noPaddingLeft"><fl:input property="MsgBody" nodiv="true"/></td> </tr> </table> </fl:bigTabs> <table class="container" cellpadding="0"> <tr class="ligne_separation"><td> </td></tr> <tr> <td colspan="2"> <div align="center"> <a href="javaScript:doSubmit()"><img src="<fl:webapp/>/icons/ico/valid_green_long.gif"></a> <a href="javaScript:window.top.close()"><img src="<fl:webapp/>/icons/ico/fermer_red_long.gif"></a> </div> </td> </tr> </table> </fl:form> </div> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de