Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\marketing\note\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" import="com.edeal.frontline.*"%><%@page import="java.util.*,com.edeal.frontline.controller.ControllerServlet" %> <%@ page import="com.edeal.frontline.grid.GridData" %> <%@ page import="java.util.Vector" %> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.NoteBean" id="Note" scope="request"/> <jsp:useBean class="com.edeal.frontline.MarketBean" id="Market" scope="request"/> <jsp:useBean class="com.edeal.frontline.CompetitorBean" id="Competitor" scope="request"/> <% java.util.Vector jsBeenIncluded = (java.util.Vector)request.getAttribute(ControllerServlet.JS_BEEN_INCLUDED_ATTR); if (jsBeenIncluded == null ) { jsBeenIncluded = new java.util.Vector(); } %> <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"> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/master_css.jsp"/> <% if (!jsBeenIncluded.contains("/js/smalltabs.jsp")) {%> <script language="javascript" type="text/javascript" src="<fl:webapp/>/js/smalltabs.jsp"></script> <%} if (!jsBeenIncluded.contains("/js/calendar.jsp")) { %> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/calendar.jsp"></script> <%} if (!jsBeenIncluded.contains("/js/utils.js")) { %> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/utils.js"></script> <%} if (!jsBeenIncluded.contains("/js/checkFields.jsp") ){ %> <script type="text/javascript" language="javascript" src="<fl:link url="/js/checkFields.jsp"/>"></script> <%} if (!jsBeenIncluded.contains("/js/presentField.js") ){ %> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/presentField.js"></script> <%} if (!jsBeenIncluded.contains("/js/ajax/sarissa.js")) { %> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ajax/sarissa.js"></script> <%} if (!jsBeenIncluded.contains("/js/ajax/ajax.js")) { %> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ajax/ajax.js"></script> <%} if (!jsBeenIncluded.contains("/js/master_js.jsp")) { %> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/master_js.jsp"></script> <%} if (!jsBeenIncluded.contains("/js/ac/fobAC_js.jsp")) { %> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ac/fobAC_js.jsp"></script> <% } %> <% final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass()); FlRequest flRequest = new FlRequest(request); FlContext context = flRequest.getContext(); String parentID = null; String actID = null; try{ parentID = (String)Note.getNotParentID(); }catch (Exception e) { } try{ if (Note.getNotActID()==null){ actID = (String)session.getAttribute("actorID"); Note.setNotActID(actID); } }catch (Exception e) { } String id=null; try{ id = Note.getID(); }catch (FieldNotInitializedException fnie) { } boolean ignoreL = false; String idComp = null; try{ idComp = Note.getNotParentID(); } catch(FieldNotInitializedException fnie){} String type = null; type = flRequest.getRequestParameterOrAttribute("parent"); logger.debug("Parent:::::::::::::"+type); if (type.length()!=0 && "competitor".equals(type)){ ignoreL = true; } else if (type.length()!=0 && "market".equals(type)){ ignoreL = true; } %> <script type="text/javascript" language="javascript"> function doSubmit(){ var f = window.document.forms[0]; <% if (ignoreL && "competitor".equals(type)) { %> var str ='<scr' + 'ipt language="javascript">window.top.opener.parent.location="<fl:link list="true" url="/read_competitor.fl?id='+window.document.forms[0].NotParentID.value+'"/>";self.close();</s' + 'cript>'; //var str = '<scr' + 'ipt language="javascript">window.top.opener.wait10Nrefresh();window.top.close();</s' + 'cript>'; f.$$returnedHtmlHead.value = str; <% }else if (ignoreL && "market".equals(type)) { %> var str ='<scr' + 'ipt language="javascript">window.top.opener.parent.location="<fl:link list="true" url="/read_market.fl?id='+window.document.forms[0].NotParentID.value+'"/>";self.close();</s' + 'cript>'; //var str ='<scr' + 'ipt language="javascript">window.top.opener.refresh();window.top.opener.wait10Nrefresh();window.top.close();</s' + 'cript>'; f.$$returnedHtmlHead.value = str; <% } %> return true; } </script> <head> <title></title> </head> <div class="main_body" style="border:none;height:100%"> <body> <table> <tr><td></td></tr> </table> <fl:form action="/save_note.fl" bean="Note"> <input type="hidden" name="NotParentID" id="NotParentID" value="<%=parentID%>"/> <input type="hidden" name="$$returnedHtmlHead" value=""/> <input type="hidden" name="$$returnedHtmlBody" value="close..."/> <fl:bigTabs objectTitle="<%=Utils.getMessage(session, \"L6395\", \"Note\")%>" ou="<%=\"/edit_note.fl\" + ( id !=null ? \"?id=\"+id : \"\")%>" ignoreList="<%=ignoreL%>" > <table class="data_column" cellpadding="0"> <tr class="fieldline"> <td colspan="3"> <table class="container" cellpadding="0"> <tr> <td class="labelTitreFiche"> <fl:label field="NotSubject" labelClassName="titreFiche"/> </td> <td class="fieldTitreFiche"> <fl:input property="NotSubject" mandatoryMsgCode="F60BF" onblur="if (this.form.NotSubject.value == '') this.form.NotSubject.value = this.value;"/> </td> </tr> </table> </td> </tr> <tr><td colspan="3" class="ligne_separation"/></tr> <tr> <td class="column2"> <table class="container" cellpadding="0"> <fl:fieldEdit property="NotOrigin"/> <fl:fieldEdit property="NotActID" mandatoryMsgCode="M3002" /> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="container" cellpadding="0"> <fl:fieldEdit property="NotCfiID"/> <fl:fieldEdit property="NotDate" mandatoryMsgCode="M2006"/> </table> </td> </tr> <tr class="ligne_separation"><td colspan="3"></td></tr> </table> <fl:smallTabs name="NOTEDET"> <fl:sTab id="nodet" title="<%=Utils.getMessage(session, \"F202C\", false, true, \"Détails\")%>"> <table class="container" cellpadding="0"> <tr> <!-- td--> <TD class="" style="width:100%"><div class="input textarea"><textarea id="NotContents" name="NotContents" class="input textarea" style="width:expression(findWindowWidth() * 0.90);"><fl:getProperty name="Note" property="NotContents" alt=" "/></textarea></div></TD> <!-- fl:input name="Note" property="NotContents" nodiv="true"/--> <!-- /td--> </tr> </table> </fl:sTab> <fl:sTab id="noteattach" title="<%=Utils.getMessage(session, \"L201C\", false, true, \"Documents joints\")%>"> <fl:attach name="Note" colID="NotAttID" /> </fl:sTab> </fl:smallTabs> <tr class="ligne_separation"><td> </td></tr> <tr> <td colspan="2"> </td> </tr> </fl:bigTabs> <br> <div align="center"> <a href="javaScript:submit()" title="<fl:getMessage code="A2001" alt="Valider"/>"><img src="<fl:webapp/>/icons/ico/valid_green_long.gif"></a> <a href="javaScript:window.top.close()" title="<fl:getMessage code="A2002" alt="Annuler"/>"><img src="<fl:webapp/>/icons/ico/fermer_red_long.gif"></a> </div> </fl:form> </body> </div> <% /****************************************************************************** * * * m.ichahane@e-deal.ma : 2006/08/28 17:40:25 : Mustapha * Modified by UHMAROC * *****************************************************************************/ %>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de