Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\cti\annuaire.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.FlContext" %><%@ page import="com.edeal.frontline.DataDictionary" %><%@ page import="com.edeal.frontline.Utils" %><%@ page import="com.edeal.frontline.navigation.FlRequest" %><%@ page import="java.util.Vector" %><%@ page import="java.util.Iterator" %><%@ page import="java.text.SimpleDateFormat" %><%@ page import="java.util.GregorianCalendar" %><%@ page import="java.util.Calendar" %><%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %><% 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 type = flRequest.getParameter("type"); String from = flRequest.getParameter("from"); if (type == null) type="per"; %> <html> <head> <title><fl:getMessage code="L6205" alt="Annuaire"/></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"> <script type="text/javascript" language="javascript" src="<fl:webapp/>/cti/annuaire_js.jsp?SalesModel=<%= context.getContextParameter("SalesModel") %>"></script> <script language="javascript" src="<fl:webapp/>/js/utils.js"></script> <script language="javascript" src="<fl:webapp/>/js/checkFields.jsp"></script> <script language="javascript" src="<fl:webapp/>/js/calendar.jsp"></script> <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 type="text/javascript" language="javascript" src="<fl:webapp/>/js/ac/fobAC_js.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/jsOnload.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/master_js.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/presentField.js"></script> <script language="javascript"> function doGetAction(){ if (window.top.opener.from == 'select'){ doAddDest();} else { alert("test"); doSendMail();} } function doAddDest(){ var win = window.top.opener; var f = win.document.forms[0]; var fIn = document.forms[0]; if (f.MsgTo.value != '' && fIn.to.value!= '') f.MsgTo.value = f.MsgTo.value + " ; "; f.MsgTo.value = f.MsgTo.value + fIn.to.value; if (f.MsgCc.value != ''&& fIn.cc.value!= '') f.MsgCc.value = f.MsgCc.value + " ; "; f.MsgCc.value = f.MsgCc.value + fIn.cc.value; if (f.MsgCci.value != ''&& fIn.bcc.value!= '') f.MsgCci.value = f.MsgCci.value + " ; "; f.MsgCci.value = f.MsgCci.value + fIn.bcc.value; window.top.close(); win.focus(); } function doSelect() { var f = document.forms[0]; // If we're doing an autocomplete operation, we need to catch // the return key when selecting an object by keyboard try { if (acCurHighlightedDiv != null) { return; } } catch (error) { } var typString = f.typ.options[f.typ.selectedIndex].value; var args = ''; args += 'typ=' + typString; if (f.name.value != '<fl:getMessage code="L2040" alt="<Nom>" js="true"/>') { args += '&name=' + f.name.value; } if (typString == 'per' && needCorp && f.lblPerEntID.value != '<fl:getMessage code="L64E1" alt="<Entreprise>" js="true" />') { args += '&corpid='+f.PerEntID.value; args += '&corpname='+f.lblPerEntID.value; } else if (typString == 'act' && f.lblActSitID.value != '<fl:getMessage code="L622C" alt="<Site>" js="true" />') { args += '&siteid=' + f.ActSitID.value; args += '&sitename='+f.lblActSitID.value; } doAjax(_grid__PERANN_js_.getAjaxUrl()+"&"+args); } function critOnKeyPress(event) { var keyPress = 0; try { keyPress = event.which; } catch (error) { } if (keyPress == 0) { try { keyPress = window.event.keyCode; } catch (error) { } } // Someone pressed the enter key, AND we're not AC'ing if (keyPress == 13 && acCurHighlightedDiv == null) { doSelect(); } } function onLoadHandler(e) { window.document.forms[0].onsubmit = doSelect; document.onkeypress = critOnKeyPress; } function read_person(id) { window.top.opener.location="<fl:webapp/>/read_person.fl?id=" + id; window.top.opener.focus(); } function read_enterprise(id) { window.top.opener.location="<fl:webapp/>/read_enterprise.fl?id=" + id; window.top.opener.focus(); } function read_actor(id) { window.top.opener.location="<fl:webapp/>/read_actor.fl?id=" + id; window.top.opener.focus(); } function read_journalist(id) { window.top.opener.location="<fl:webapp/>/read_journalist.fl?id=" + id; window.top.opener.focus(); } function read_site(id) { window.top.opener.location="<fl:webapp/>/read_site.fl?id=" + id; window.top.opener.focus(); } window.onload = onLoadHandler; if(!window.top.opener.from) window.top.opener.from = "<%= from %>"; </script> <style type="text/css"> #critera { position: relative; width: 100%; height: 150px; } #list { position: relative; width: 100%; height: 45%; overflow: auto; } #addresses { position: relative; height: 45%; width: 100%; overflow: auto; } </style> </head> <body class="popup_body"> <div style="height:600px;"> <fl:bigTabs objectTitle="<%= Utils.getMessage(session, \"L6205\", false, true, \"Annuaire\") %>" ou="/annuaire.fl" height="90%" ignoreCriteria="true" ignoreList="true"> <form method="get" action="javascript:doSelect();"> <div id="criteria"> <table class="container"> <tr> <td> <div class="criteriaTableDiv"> <select name="typ" onChange="doRefresh()"> <option value="per" <%= (type.equals("per"))? " selected" : "" %>><fl:getMessage code="L6207" alt="Personnes"/></option> <option value="act" <%= (type.equals("act"))? " selected" : "" %>><fl:getMessage code="L607C" alt="Acteurs"/></option> <option value="jou" <%= (type.equals("jou"))? " selected" : "" %>><fl:getMessage code="L206B" alt="Journalistes"/></option> </select> <input name="name" value="<%= Utils.getMessage(session, "L2040", "<Nom>") %>" onfocus="this.select();" onblur="if(this.value == '') this.value = '<fl:getMessage code="L2040" alt="<Nom>" js="true"/>';"> <% if (type.equals("per") ) { %> <input id="PerEntID" name="PerEntID" value="" type="hidden"> <input id="lblPerEntID" name="lblPerEntID" style="size: 30;" value="<fl:getMessage code="L64E1" alt="<Entreprise>" js="true" />" autocomplete="off" onfocus="displayOnFocus(this);" type="text"> <a href="javascript:var win = window.open('<fl:webapp/>/select.fl?type=Enterprise&field=PerEntID&formIndex=0', 'SelectEnterprise', 'menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes,width=500,height=370')"><img src="<fl:webapp/>/icons/ico/rechercher.gif" class="icon" alt="<fl:getMessage code="A2003" alt="Sélectionner"/>" border="0"></a> <a href="javascript:var f = window.document.forms[0]; f.PerEntID.value = ''; f.lblPerEntID.value = '<fl:getMessage code="L64E1" alt="<Entreprise>" js="true"/>'; void('')"><img src="<fl:webapp/>/icons/ico/supprimer.gif" alt="<fl:getMessage code="A3005" alt="Vider le champ"/>" class="icon" border="0"></a> <script language="javascript">runOnTime('installFobAC(document.forms[0].lblPerEntID);', 200);</script> <% } else if (type.equals("act")) { %> <input id="ActSitID" name="ActSitID" value="" type="hidden"> <input id="lblActSitID" name="lblActSitID" style="size: 30;" value="<fl:getMessage code="L622C" alt="<Site>" js="true" />" autocomplete="off" onfocus="displayOnFocus(this);" type="text"> <a href="javascript:var win = window.open('<fl:webapp/>/select.fl?type=Site&field=ActSitID&formIndex=0', 'SelectSite', 'menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes,width=500,height=370')"><img src="<fl:webapp/>/icons/ico/rechercher.gif" alt="<fl:getMessage code="A2003" alt="Sélectionner"/>" class="icon" border="0"></a> <a href="javascript:var f = window.document.forms[0]; f.ActSitID.value = ''; f.lblActSitID.value = '<fl:getMessage code="L622C" alt="<Site>" js="true"/>'; void('')"><img src="<fl:webapp/>/icons/ico/supprimer.gif" alt="<fl:getMessage code="A3005" alt="Vider le champ"/>" class="icon" border="0"></a> <script language="javascript">runOnTime('installFobAC(document.forms[0].lblActSitID);', 200);</script> <% } %> </div> </td> <td class="separation"><div class="separation"></div></td> <td valign="top" style="width: 10%;"> <table class="container" cellpadding="0"> <tr style="vertical-align: middle;"> <td> <a href="javascript:doSelect();"><img src="<fl:webapp/>/icons/ico/valid_green2_long.gif"></a> </td> </tr> </table> </td> </tr> </table> <table style="width: 100%;"> <tr class="ligne_separation"><td></td></tr> <tr class="ligne_separation_couleur"><td></td></tr> <tr class="ligne_separation"><td></td></tr> </table> </div> <div id="list" style="height: 200px;"> <table style="width: 100%"> <tr> <td> <fl:grid height="200" name="PERANN" ajaxUrl="/annuaire_refresh_ajax.fl"/> </td> </tr> </table> </div> <div id="addresses" style="height: 270px;"> <table style="width: 100%;"> <tr class="ligne_separation"><td></td></tr> <tr class="ligne_separation_couleur"><td></td></tr> <tr class="ligne_separation"><td></td></tr> </table> <table border="0" cellpadding="3" cellspacing="3" width="100%" height="50%"> <tr valign="top"> <td class="transparent" width="1%" style="font-weight: bold;text-align: right" nowrap> <fl:getMessage code="L622D" alt="A:"/> </td> <td class="transparent" style="font-weight: bold" nowrap> <textarea name="to" rows="2" style="width: 100%"></textarea> </td> <td class="transparent" width="1%" style="vertical-align: middle" nowrap> <a href="javascript:clear('to')"><img src="<fl:webapp/>/icons/ico/supprimer.gif" alt="<fl:getMessage code="A0007" alt="Supprimer"/>" border="0"></a> </td> </tr> <tr valign="top"> <td class="transparent" style="font-weight: bold;text-align: right" nowrap> <fl:getMessage code="L622E" alt="Cc:"/> </td> <td class="transparent" style="font-weight: bold" nowrap> <textarea name="cc" rows="2" style="width: 100%"></textarea> </td> <td class="transparent" style="vertical-align: middle" nowrap> <a href="javascript:clear('cc')"><img src="<fl:webapp/>/icons/ico/supprimer.gif" alt="<fl:getMessage code="A0007" alt="Supprimer"/>" border="0"></a> </td> </tr> <tr valign="top"> <td class="transparent" style="font-weight: bold;text-align: right" nowrap> <fl:getMessage code="L622F" alt="Bcc:"/> </td> <td class="transparent" style="font-weight: bold" nowrap> <textarea name="bcc" rows="2" style="width: 100%"></textarea> </td> <td class="transparent" style="vertical-align: middle" nowrap> <a href="javascript:clear('bcc')"><img src="<fl:webapp/>/icons/ico/supprimer.gif" alt="<fl:getMessage code="A0007" alt="Supprimer"/>" border="0"></a> </td> </tr> <tr valign="top" id="objet" > <td class="transparent" style="font-weight: bold;text-align: right;" nowrap> <fl:getMessage code="L6231" alt="Objet:"/> </td> <td class="transparent" style="font-weight: bold" nowrap> <textarea name="subject" rows="2" style="width: 100%"></textarea> </td> <td class="transparent" style="vertical-align: middle" nowrap> <a href="javascript:clear('subject')"><img src="<fl:webapp/>/icons/ico/supprimer.gif" alt="<fl:getMessage code="A0007" alt="Supprimer"/>" border="0"></a> </td> </tr> </table> </div> </form> </fl:bigTabs> <table border="0" cellpadding="3" cellspacing="3" width="100%" height="50%"> <tr class="ligne_separation"><td></td></tr> <tr valign="top"> <th class="titrePartie" colspan="4" style="text-align: center"> <a href="javascript:doGetAction()" > <img src="<fl:webapp/>/icons/ico/valid_green_long.gif" border="0" alt="<fl:getMessage code="A3041" alt="envoyer l'e-mailing"/>"></a> <a href="javascript:window.close()"><img src="<fl:webapp/>/icons/ico/fermer_red_long.gif" alt="<fl:getMessage code="A0007" alt="Supprimer"/>" border="0"></a> </th> </tr> </table> </div> </body> <script language="javascript"> if (window.top.opener.from == "select") { window.document.getElementById('objet').style.display = "none"; } </script> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de