1 | <!-- Projet Ether - $Id: experiment_group.jsp,v 1.6 2002/07/18 12:45:46 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.experiment.*" %> |
---|
8 | <%@ page import="fr.alcatel.ether.app.right.*" %> |
---|
9 | <%@ page import="fr.alcatel.ether.tools.*"%> |
---|
10 | <%@ page import="fr.alcatel.ether.app.common.* "%> |
---|
11 | <%@ page import="fr.alcatel.ether.app.user.*"%> |
---|
12 | <%@ page import="org.apache.ecs.html.*" %> |
---|
13 | <%@ page import="java.util.Locale" %> |
---|
14 | <%@ page import="java.util.Iterator" %> |
---|
15 | <%@ page import="java.util.Collection" %> |
---|
16 | |
---|
17 | |
---|
18 | <jsp:useBean id="groupExperimentBean" scope= "request" class = "fr.alcatel.ether.bean.HashMapBean"> |
---|
19 | </jsp:useBean> |
---|
20 | |
---|
21 | <jsp:useBean id="allGroupExperimentBean" scope= "request" class = "fr.alcatel.ether.bean.ContainerBean"> |
---|
22 | </jsp:useBean> |
---|
23 | |
---|
24 | <head> |
---|
25 | <% MultiLanguage ml = MultiLanguage.instance((Locale) JSPUtils.getSessionParameter(request, "langue")); %> |
---|
26 | |
---|
27 | |
---|
28 | <title></title> |
---|
29 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
30 | <link rel="stylesheet" href="/ether/ether.css"> |
---|
31 | </head> |
---|
32 | |
---|
33 | <SCRIPT language="JavaScript"> |
---|
34 | |
---|
35 | function fermer() |
---|
36 | { |
---|
37 | window.close(); |
---|
38 | } |
---|
39 | |
---|
40 | function sauver() |
---|
41 | { |
---|
42 | document.experimentGroupForm.action = "/ether/servlet/ExperimentServlet?action=13"; |
---|
43 | document.experimentGroupForm.target= self.name; |
---|
44 | document.experimentGroupForm.submit(); |
---|
45 | } |
---|
46 | |
---|
47 | function ajouterGroup() |
---|
48 | { |
---|
49 | document.experimentGroupForm.action = "/ether/servlet/ExperimentServlet?action=11"; |
---|
50 | document.experimentGroupForm.target= self.name; |
---|
51 | document.experimentGroupForm.submit(); |
---|
52 | } // ajouter |
---|
53 | |
---|
54 | function supprimerGroup() |
---|
55 | { |
---|
56 | document.experimentGroupForm.action = "/ether/servlet/ExperimentServlet?action=12"; |
---|
57 | document.experimentGroupForm.target= self.name; |
---|
58 | document.experimentGroupForm.submit(); |
---|
59 | } |
---|
60 | |
---|
61 | </SCRIPT> |
---|
62 | |
---|
63 | |
---|
64 | |
---|
65 | <body background="/images/Ether_Fond1.gif"> |
---|
66 | |
---|
67 | <%Config.getConfig(); |
---|
68 | %> |
---|
69 | |
---|
70 | <% |
---|
71 | // Avenant 2 modification du 2/05/01 Tache 2.4 |
---|
72 | // rajout du nom experience |
---|
73 | String name = ( ( (Experiment)session.getAttribute( Config.SELECTED_EXPERIMENT ) ).getName() ); |
---|
74 | |
---|
75 | %> |
---|
76 | |
---|
77 | <p class="titrePage" align="left"><%=ml.get("commun.Experience")%> <%=name%></p> |
---|
78 | |
---|
79 | |
---|
80 | <p class="titrePage" align="center"><%=Config.tag_image_ligne%></p> |
---|
81 | <% |
---|
82 | // fin modification Avenant 2 |
---|
83 | %> |
---|
84 | <form method="post" action="" name="experimentGroupForm"> |
---|
85 | <table width="80%" border="0" cellspacing="0" cellpadding="0" align="center" height="50%"> |
---|
86 | <tr> |
---|
87 | <td width="42%" class="libelleChamp">Groupes Ether: |
---|
88 | </td> |
---|
89 | <td width="15%" class="libelleChamp"> |
---|
90 | </td> |
---|
91 | <td width="43%" class="libelleChamp" align ="right" >Groupes Autorisés: |
---|
92 | </td> |
---|
93 | </tr> |
---|
94 | <tr> |
---|
95 | <td width="42%" rowspan="6" class="libelleChamp"> |
---|
96 | <select name="etherGroups" size="10" multiple> |
---|
97 | <% |
---|
98 | // Tous les groupes Ether |
---|
99 | allGroupExperimentBean.reinitIterator(); |
---|
100 | Group tempGroup; |
---|
101 | while (allGroupExperimentBean.hasNext()) |
---|
102 | { |
---|
103 | tempGroup = (Group) allGroupExperimentBean.next() ; |
---|
104 | %> |
---|
105 | <option value="<%= tempGroup.getId()%>"><%=tempGroup.getName()%> |
---|
106 | <%}%> |
---|
107 | </select> |
---|
108 | </td> |
---|
109 | <td width="1%" bordercolor="ffffff" height="1%" class="libelleChamp"> |
---|
110 | <div align="center"> |
---|
111 | <input type="button" value=">>" |
---|
112 | onClick="javascript:ajouterGroup();"> |
---|
113 | </div> |
---|
114 | </td> |
---|
115 | <td width="43%" rowspan="6" class="libelleChamp" align="right"> |
---|
116 | <select name="experimentGroups" size="10" multiple > |
---|
117 | <% |
---|
118 | // groupExperimentBean contient les groupes de l'experience |
---|
119 | Collection col = groupExperimentBean.getElements(); |
---|
120 | Iterator ite = col.iterator(); |
---|
121 | while (ite.hasNext()) |
---|
122 | { |
---|
123 | tempGroup = (Group) ite.next(); |
---|
124 | %> |
---|
125 | <option value="<%= tempGroup.getId()%>"><%=tempGroup.getName()%> |
---|
126 | <%}%> |
---|
127 | </select> |
---|
128 | </td> |
---|
129 | </tr> |
---|
130 | <tr> |
---|
131 | <td width="1%" height="1%" class="libelleChamp"> |
---|
132 | <div align="center"> |
---|
133 | <input type="button" value="<<" onClick="javascript:supprimerGroup();"> |
---|
134 | </div> |
---|
135 | </td> |
---|
136 | </tr> |
---|
137 | <tr> |
---|
138 | <td width="5%" class="libelleChamp"> </td> |
---|
139 | </tr> |
---|
140 | <tr> |
---|
141 | <td width="5%" class="libelleChamp"> </td> |
---|
142 | </tr> |
---|
143 | <tr> |
---|
144 | <td width="5%" class="libelleChamp"> </td> |
---|
145 | </tr> |
---|
146 | <tr> |
---|
147 | <td width="5%" class="libelleChamp"> |
---|
148 | |
---|
149 | </td> |
---|
150 | </tr> |
---|
151 | </table> |
---|
152 | </form> |
---|
153 | |
---|
154 | |
---|
155 | |
---|
156 | <table width="14%" border="3" cellspacing="0" cellpadding="0" align="center"> |
---|
157 | <tr> |
---|
158 | <td width="78%"> |
---|
159 | <p align="center"><a href="javascript:sauver();"><%= Config.bouton_sauver.toString() %></a></p> |
---|
160 | </td> |
---|
161 | <td width="22%"> |
---|
162 | <p align="center"><a href="javascript:fermer();"><%= Config.bouton_fermer.toString() %></a></p> |
---|
163 | </td> |
---|
164 | </tr> |
---|
165 | </table> |
---|
166 | |
---|
167 | </form> |
---|
168 | |
---|
169 | </body> |
---|
170 | </html> |
---|