[5] | 1 | <!-- Projet Ether - $Id: sauver_criteres.jsp,v 1.9 2002/07/18 12:46:04 pn Exp $ --> |
---|
| 2 | <html> |
---|
| 3 | <META HTTP-EQUIV="Cache-Control" content="no-cache"> |
---|
| 4 | <META HTTP-EQUIV="Pragma" content="no-cache"> |
---|
| 5 | <META HTTP-EQUIV="Expires" content="Mon, 01 Jan 1990 12:00:00 GMT"> |
---|
| 6 | |
---|
| 7 | <%@ page import="fr.alcatel.ether.app.data.*" %> |
---|
| 8 | <%@ page import="fr.alcatel.ether.tools.*" %> |
---|
| 9 | <%@ page import="fr.alcatel.ether.app.common.*" %> |
---|
| 10 | <%@ page import="org.apache.ecs.html.*" %> |
---|
| 11 | <%@ page import="java.util.Locale" %> |
---|
| 12 | |
---|
| 13 | <jsp:useBean scope="request" id="critBean" class = "fr.alcatel.ether.bean.ContainerBean"> |
---|
| 14 | </jsp:useBean> |
---|
| 15 | |
---|
| 16 | <head> |
---|
| 17 | <% MultiLanguage ml = MultiLanguage.instance((Locale) JSPUtils.getSessionParameter(request, "langue")); %> |
---|
| 18 | |
---|
| 19 | <title><%= ml.get("sauverCrit.titre")%></title> |
---|
| 20 | |
---|
| 21 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
| 22 | <link rel="stylesheet" href="/ether/ether.css"> |
---|
| 23 | <SCRIPT language="JavaScript"> |
---|
| 24 | |
---|
| 25 | function fermer() |
---|
| 26 | { |
---|
| 27 | window.close(); |
---|
| 28 | } |
---|
| 29 | |
---|
| 30 | function sauver() |
---|
| 31 | { |
---|
| 32 | document.myform.action="/ether/servlet/SearchServlet?action=2"; |
---|
| 33 | document.myform.submit(); |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | function ouvrir() |
---|
| 37 | { |
---|
| 38 | //document.myform.action="/ether/servlet/SearchServlet?action=3"; |
---|
| 39 | //document.myform.target = "main"; |
---|
| 40 | //document.myform.submit(); |
---|
| 41 | //self.close(); |
---|
| 42 | var index = document.myform.critId.selectedIndex ; |
---|
| 43 | if ( index != -1 ) |
---|
| 44 | { |
---|
| 45 | self.opener.parent.location = "/ether/servlet/SearchServlet?action=3&" + "critId=" + document.myform.critId.options[index].value; |
---|
| 46 | self.close(); |
---|
| 47 | } |
---|
| 48 | else |
---|
| 49 | { |
---|
| 50 | window.alert( "<%= ml.get("sauverCrit.aucuneSel")%> "); |
---|
| 51 | } |
---|
| 52 | |
---|
| 53 | } |
---|
| 54 | |
---|
| 55 | function supprimer() |
---|
| 56 | { |
---|
| 57 | document.myform.action="/ether/servlet/SearchServlet?action=6"; |
---|
| 58 | document.myform.submit(); |
---|
| 59 | } |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | |
---|
| 63 | </SCRIPT> |
---|
| 64 | </head> |
---|
| 65 | |
---|
| 66 | <body> |
---|
| 67 | <%Config.getConfig();%> |
---|
| 68 | <form name="myform" method="post" action=""> |
---|
| 69 | <div align="center"> |
---|
| 70 | <table width="100%" border="0" cellspacing="0" cellpadding="0"> |
---|
| 71 | <tr> |
---|
| 72 | <td colspan="2" class="libelleChamp"> |
---|
| 73 | <p align="center"><b class="texte"><%= ml.get("sauverCrit.contexte")%></b></p> |
---|
| 74 | </td> |
---|
| 75 | </tr> |
---|
| 76 | <tr class="lignePaire"> |
---|
| 77 | <td width="50%"> |
---|
| 78 | <p class="petit"><%= ml.get("sauverCrit.SelContexte")%></p> |
---|
| 79 | </td> |
---|
| 80 | <td width="50%"> |
---|
| 81 | <select name="critId"> |
---|
| 82 | <%while ( critBean.hasNext() ) |
---|
| 83 | { |
---|
| 84 | SearchData data = (SearchData)critBean.next(); |
---|
| 85 | %> |
---|
| 86 | <option value="<%=data.getId()%>"><%=data.getName()%> |
---|
| 87 | <%}%> |
---|
| 88 | </select> |
---|
| 89 | </td> |
---|
| 90 | </tr> |
---|
| 91 | <tr class="ligneImpaire"> |
---|
| 92 | <td width="50%"> |
---|
| 93 | <p align="center"><a href="javascript:ouvrir();"><%= Config.getButton(Config.bouton_ouvrir,"bouton_ouvrir_src","bouton_ouvrir",ml) %></a></p> |
---|
| 94 | </td> |
---|
| 95 | <td width="50%"> |
---|
| 96 | <p align="center"><a href="javascript:supprimer();"><%= Config.getButton(Config.bouton_supprimer,"bouton_supprimer_src","bouton_supprimer",ml) %></a></p> |
---|
| 97 | </td> |
---|
| 98 | </tr> |
---|
| 99 | <tr> |
---|
| 100 | <td width="50%"> </td> |
---|
| 101 | <td width="50%"> </td> |
---|
| 102 | </tr> |
---|
| 103 | <tr> |
---|
| 104 | <td colspan="2" class="libelleChamp"> |
---|
| 105 | <p class="texte" align="center"><b><%= ml.get("sauverCrit.SauverContexte")%></b></p> |
---|
| 106 | </td> |
---|
| 107 | </tr> |
---|
| 108 | <tr class="lignePaire"> |
---|
| 109 | <td width="50%"> |
---|
| 110 | <p class="petit"><%= ml.get("sauverCrit.Saisir")%></p> |
---|
| 111 | </td> |
---|
| 112 | <td width="50%"> |
---|
| 113 | <input type="text" name="crit" size="25" maxlength="25"> |
---|
| 114 | </td> |
---|
| 115 | </tr> |
---|
| 116 | <tr class="ligneImpaire"> |
---|
| 117 | <td width="50%"> |
---|
| 118 | <p align="center"><a href="javascript:sauver();"><%= Config.getButton(Config.bouton_sauver,"bouton_sauver_src","bouton_sauver",ml) %></a></p> |
---|
| 119 | </td> |
---|
| 120 | <td width="50%"> |
---|
| 121 | <p align="center"><a href="javascript:fermer();"><%= Config.getButton(Config.bouton_fermer,"bouton_fermer_src","bouton_fermer",ml) %></a></p> |
---|
| 122 | </td> |
---|
| 123 | </tr> |
---|
| 124 | </table> |
---|
| 125 | <p> </p> |
---|
| 126 | <p> </p> |
---|
| 127 | </div> |
---|
| 128 | </form> |
---|
| 129 | </body> |
---|
| 130 | </html> |
---|