Edit C:\galaxie\Back\galaxie\admin\informationpanel\edit.jsp
<% /****************************************************************************** * Copyright (c) 2000-2004 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="com.edeal.frontline.EnterpriseBean" %> <%@ page import="java.util.Date" %> <%@ page import="java.util.Hashtable" %> <%@ page import="com.edeal.frontline.FrontlineException" %> <%@ page import="com.edeal.frontline.ActorBean" %> <%@ page import="java.util.Vector" %> <%@ page import="com.edeal.frontline.LicenceManager" %> <%@ page import="com.edeal.frontline.SiteBean" %> <%@ page import="com.edeal.frontline.MenuByRoleBean" %> <%@ page import="com.edeal.frontline.MenuBean" %> <%@ page import="java.util.GregorianCalendar" %> <%@ page import="com.edeal.frontline.FlLocale" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.InformationPanelBean" id="InformationPanel" 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 = InformationPanel.getID(); } catch (FieldNotInitializedException e) {} String strActID = (String)session.getAttribute("actorID"); try { InformationPanel.getInpIssuerID(); } catch (FieldNotInitializedException ex) { InformationPanel.setInpIssuerID(strActID); } Date dtDate = new Date(); try { InformationPanel.getInpDate(); } catch (FieldNotInitializedException ex) { InformationPanel.setInpDate(dtDate); } try { dtDate = InformationPanel.getInpFromDate(); } catch (FieldNotInitializedException ex) { InformationPanel.setInpFromDate(dtDate); } try { InformationPanel.getInpToDate(); } catch (FieldNotInitializedException ex) { //GregorianCalendar gc = new GregorianCalendar(); GregorianCalendar gc = FlLocale.getInstance(session).getCalendar(); gc.setTime(dtDate); gc.add(GregorianCalendar.DAY_OF_MONTH, 30); InformationPanel.setInpToDate(gc.getTime()); } boolean isDisplayed = false; try { isDisplayed = InformationPanel.isInpCoWorkerLimitation(); } catch (FieldNotInitializedException ex) { InformationPanel.setInpIssuerID(strActID); } //isDisplayed = true; %> <script type="text/javascript" language="javascript"> function doSubmit() { var f = document.forms[0]; <% if (flRequest.getParameter("fromInfoBar") != null) { %> // If coming from a popup, we manually call submit, which bypasses // the edeal submit controls. f.action = "<fl:link url="<%= \"/save_popup_informationpanel.fl\" + (id != null ? \"?id=\" + id : \"\") %>"/>"; f.$$returnedHtmlHead.value ='<scr'+'ipt language=\"javascript\">var w = window.top.opener; w.getInfoBarInformation("force_update"); window.top.close();</scr'+'ipt>'; <% } %> prepAutoNumsForSubmit(); presentFieldsValue(); f.submit(); } function doCoWorkerClick() { var f = document.forms[0]; if(f.InpCoWorkerLimitation.checked) { document.getElementById('_Backup').style.display = 'block'; } else { document.getElementById('_Backup').style.display = 'none'; f.InpBackupLimitation.checked = false; f.InpAssistantLimitation.checked = false; } } function doCheck(fld) { var f = document.forms[0]; if(fld.name == '_CheckAll' && f.InpReceiver) { if(f.InpReceiver.length) { for(var i = 0; i < f.InpReceiver.length; i++) { f.InpReceiver[i].checked = fld.checked; } } else { f.InpReceiver.checked = true; } } else if(fld.name == 'InpReceiver' && fld.checked == false) { f._CheckAll.checked = false; } } </script> <fl:form action="/save_informationpanel.fl" bean="InformationPanel"> <% if (flRequest.getParameter("fromInfoBar") != null) { %> <input type="hidden" name="fromInfoBar" value="1"> <input type="hidden" name="$$returnedHtmlHead" value=""> <input type="hidden" name="$$returnedHtmlBody" value="Closing..."> <input type="hidden" name="$$presentFields" id="$$presentFields" value=""/> <% } %> <fl:bigTabs objectTitle="<%= Utils.getMessage(session, \"L62CC\", \"Panneau d\\'information\") %>" ou="<%= \"/edit_informationpanel.fl\" + (id != null ? \"?id=\" + id : \"\") %>"> <table class="container" cellpadding="0"> <tr> <td colspan="3"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="labelTitreFiche"> <fl:label field="InpSubject" labelClassName="titreFiche"/> </td> <td class="fieldTitreFiche"> <fl:input property="InpSubject" mandatoryMsgCode="F60BF"/> </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="InpIssuerID"/> <fl:fieldEdit property="InpCatID"/> <fl:fieldEdit property="InpDate"/> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="container" cellpadding="0"> <fl:fieldEdit property="InpTypID"/> <fl:fieldEdit property="InpFromDate"/> <fl:fieldEdit property="InpToDate"/> </table> </td> </tr> </table> <table class="container" cellpadding="0"> <tr class="ligne_separation"> <td></td> </tr> <tr> <td class="titrePartie"><fl:getMessage code="F203D" alt="Contenu"/></td> </tr> <tr> <td class="noPaddingLeft"><fl:input property="InpContent" width="100%" rows="5"/></td> </tr> <tr class="ligne_separation"> <td></td> </tr> <tr class="ligne_separation_couleur"><td></td></tr> <tr class="ligne_separation"><td></td></tr> </table> <link href="<fl:webapp/>/css/smalltabs_css.jsp" rel="stylesheet" type="text/css"> <fl:smallTabs name="InformationPanelTabs"> <fl:sTab id="Destinataires" title="<%= Utils.getMessage(session, \"L0006\", \"Destinataires\") %>"> <table class="container" cellpadding="0"> <tr valign="top"> <td> <table class="data_column" cellpadding="0" border=0> <tr class="fieldline"> <td class="column2"> <table class="data_column" cellpadding="0" border=0> <tr class="fieldline"> <td class="dataLabel"> <fl:label code="L0006"/> </td> <td class="dataValue"> <input name="_CheckAll" type="checkbox" onclick="doCheck(this);"><fl:getMessage code="L62D4" alt="(tout coché)"/><br> <fl:input property="InpReceiver" width="100%" type="buttons" separator="<br>" onclick="doCheck(this);"/> </td> </tr> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="data_column" cellpadding="0" border=0> <tr class="fieldline"> <td> <table class="data_column" cellpadding="0" border=0> <tr class="fieldline"> <td class="dataLabel" rowspan="2"> <fl:label code="L64B1"/> </td> <td> <fl:input property="InpCoWorkerLimitation" nodiv="true" onclick="doCoWorkerClick();"/> <fl:label code="L62CD" nodiv="true" labelClassName="dataValue" forInput="InpCoWorkerLimitation"/> </td> </tr> <tr> <td> <span id="_Backup" style="display: <%= isDisplayed ? "block" : "none" %>"> <table class="data_column" cellpadding="0" border=0> <tr class="fieldline"> <td> <fl:input property="InpBackupLimitation" nodiv="true"/> <fl:label code="L62CE" nodiv="true" labelClassName="dataValue" forInput="InpBackupLimitation"/> </td> </tr> <tr class="fieldline"> <td> <fl:input property="InpAssistantLimitation" nodiv="true"/> <fl:label code="L62CF" nodiv="true" labelClassName="dataValue" forInput="InpAssistantLimitation"/> </td> </tr> </table> </span> </td> </tr> </table> </td> </tr> </table> </td> </tr> </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