Edit C:\galaxie\deploy\Tomcat6\webapps\galaxie\service\solicitation\select_actor.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 language="java" contentType="text/html; charset=UTF-8"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="java.util.*" %> <%@ page import="com.edeal.frontline.*" %> <%@ page import="com.edeal.frontline.navigation.WebUtils" %> <%@ page import="com.edeal.frontline.controller.actions.SelectAction" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %><% FlRequest flRquest = new FlRequest(request); DataDictionary dico = flRquest.getContext().getDataDictionary(); Vector vectChecked = (Vector) request.getAttribute("vectChecked"); Vector objs = (Vector) request.getAttribute("objs"); Vector vectCol = (Vector) request.getAttribute("vectCol"); java.text.DecimalFormat df = FlLocale.getInstance(session).getDecimalFormat("#,##0"); if (vectChecked == null) vectChecked = new Vector(); if (objs == null) objs = new Vector(); if (vectCol == null) vectCol = new Vector(); String field = "SolActID"; %> <html> <head> <link rel="stylesheet" type="text/css" href="<fl:link url="/common/select/select_css.jsp"/>"> <link rel="stylesheet" type="text/css" href="<fl:link url="/css/common_css.jsp"/>"> <script type="text/javascript" src="<fl:link url="/js/ajax/sarissa.js"/>"></script> <script type="text/javascript" src="<fl:link url="/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"> function myReplace(maChaine , ca , parCa) { return maChaine.split(ca).join(parCa); } function doSubmit() { var f = document.forms[0]; var strURL = '<fl:webapp/>/select_solicitant_actor.fl?'; if (f.query.value != ''){ strURL += '&query='+f.query.value; } doAjax(strURL); } function selectPer(idPer){ window.top.opener.selectPer(idPer); window.top.close(); } function selectSil(idSil){ window.top.opener.selectSil(idSil); window.top.close(); } function searchList(){ var f = document.forms[0]; var cpoLst = ""; for(i = 0; i < f.ActCpoID.length; i++) { if(f.ActCpoID[i].checked) { cpoLst += (cpoLst.length > 0 ? ';' : '') + f.ActCpoID[i].value; } } if(cpoLst == '') { window.alert('<fl:getMessage code="M1000" alt="Veuillez sélectionner une ou plusieurs compétences." js="true"/>'); return; }else{ f.action += '?cpoID='+encodeURIComponent(cpoLst).split("+").join("%2b"); f.submit(); } } function viewList(){ window.resizeTo('500','390'); window.open('<fl:webapp/>/select.fl?type=Actor&field=SolActID&formIndex=0', 'SelectActor', 'menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes,width=<%= SelectAction.SELECT_WINDOW_WIDTH %>,height=370'); } function doSelect(id, display) { var win = window.top.opener; var f = win.document.forms[0]; f.<%= field %>.value = id; f.lbl<%= field %>.value = display; if(win.do<%= field %>Change) { win.do<%= field %>Change(); } window.top.close(); } </script> </head> <body> <form action="<fl:webapp/>/select_solicitation_actor.fl" method="post"> <input name="$$presentFields" type="hidden" value=""> <table class="global" cellpadding="0"> <tr> <td class="header_top_left"></td> <td class="header_top_middle"></td> <td class="header_top_right"></td> </tr> <tr> <td class="header_center_left"></td> <td class="header_center_middle title"> </td> <td class="header_center_right"></td> </tr> <tr> <td class="header_bottom_left"></td> <td class="header_bottom_middle"></td> <td class="header_bottom_right"></td> </tr> <tr> <td class="body_left"></td> <td class="body_middle"> <div class="titrePartie"><br><fl:getMessage code="F101E" alt="Domaines"/></div> </td> <td class="body_right"></td> </tr> <tr> <td class="body_left"></td> <td class="ligne_separation_couleur"> </td> <td class="body_right"></td> </tr> <tr> <td class="body_left"></td> <td class="body_middle"> </td> <td class="body_right"></td> </tr> <tr> <td class="body_left"></td> <td class="body_middle"> <table class="container" width="100%"><% Vector vectRefList = dico.getRefList(session, "SolDomID"); if (vectRefList!=null){ for(int i = 0; i < vectRefList.size(); i++) { Vector vectRef = (Vector)vectRefList.elementAt(i); String refID = (String)vectRef.elementAt(0); String refDisp = (String)vectRef.elementAt(1); %> <tr> <td class="dataLabel"><input name="ActCpoID" type="checkbox" value="<%= refID %>"<%= vectChecked.contains(refID) ? " checked" : "" %>><%= Utils.formatToWeb(refDisp, false) %></input></td> </tr> <% } } %> </table> </td> <td class="body_right"></td> </tr> <tr> <td class="body_left"></td> <td class="body_middle"> </td> <td class="body_right"></td> </tr> <tr> <td class="body_left"></td> <td class="body_middle"> <table width="100%"> <tr class="fieldline"> <td width="30%"> </td> <td width="40%" style="text-align: center"> <div class="button"><a href="javascript:searchList()"><fl:getMessage code="A2009" alt="Rechercher"/></a></div> <div class="button"><a href="javascript:viewList()"><fl:getMessage code="L1012" alt="Liste entière"/></a></div> </td> <td width="30%"> </td> </tr> </table> </td> <td class="body_right"></td> </tr> <tr> <td class="body_left"></td> <td class="body_middle"> </td> <td class="body_right"></td> </tr> <tr> <td class="body_left"></td> <td class="ligne_separation_couleur"></td> <td class="body_right"></td> </tr> <tr> <td class="body_left"></td> <td class="body_middle"> </td> <td class="body_right"></td> </tr> <tr> <td class="body_left"></td> <td class="body_middle"> <table class="container"> <tr class="fieldline" style="text-align: center"> <td class="dataLabel" style="text-align: left"> <fl:getMessage code="F2025" alt="Nom"/> </td> <td class="dataLabel"><fl:getMessage code="F206F" alt="Etat"/> </td> <td class="dataLabel"><fl:getMessage code="F1058" alt="Total"/> </td> <% for(int i = 0; i < vectCol.size(); i++) { Hashtable obj = (Hashtable)vectCol.elementAt(i); %> <td class="dataLabel" ><%= Utils.formatToWeb(obj.get("ColLbl"), false) %></td><% } %> </tr><% for(int i = 0; i < objs.size(); i++) { Hashtable obj = (Hashtable)objs.elementAt(i); String name = ""; if(obj.get("ActCivID") != null) name = (String)dico.getRefDisp(session, "ActCivID", (String)obj.get("ActCivID")); if(obj.get("ActFstName") != null) name += " " + (String)obj.get("ActFstName"); if(obj.get("ActName") != null) name += " " + (String)obj.get("ActName"); if(name.trim().length() == 0) { name = (String)obj.get("ActMail"); } %> <tr class="fieldline"> <td nowrap class="dataValue" style="width: 20%"> <a href="javascript:doSelect('<%= (String)obj.get("ActID") %>','<%= Utils.formatToJavascript(name) %>')"><%= Utils.formatToWeb(name, false) %></a> </td> <td nowrap class="dataValue" style="width: 10%; text-align: center"><%= obj.get("ActStaID") == null ? "indisponible" : (String)dico.getRefDisp(session, "ActStaID", (String)obj.get("ActStaID")) %></td> <td style="text-align: center;width: 10%" class="dataValue"><%= df.format(obj.get("NcoTotal")) %></td> <td style="text-align: center;width: 10%" class="dataValue"><%= df.format(obj.get("NcoVal")) %></td><% for(int j = 1;j < vectCol.size(); j++) { obj = (Hashtable)objs.elementAt(++i); %> <td style="text-align: center; width: 10%" class="dataValue"><%= df.format(obj.get("NcoVal")) %></td><% } %> </tr><% } %> </table> </td> <td class="body_right"></td> </tr> <tr> <td class="body_bottom_left"></td> <td class="body_bottom_middle"><img src="<fl:link url="/icons/popup/pop14.gif"/>" width="9" height="18"></td> <td class="body_bottom_right"></td> </tr> </table> <div id="waiting" style="display:none"><fl:getMessage code="L639B" alt="Chargement ..."/></div> </form> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de