source: ether_core/trunk/src/jsp/admin/experience_gestion.jsp

Last change on this file was 5, checked in by cbipsl, 18 years ago

ajout rep. src

  • Property svn:executable set to *
File size: 4.0 KB
Line 
1<!-- Projet Ether - $Id: experience_gestion.jsp,v 1.18 2003/10/23 14:08:07 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.tools.*"%>
9<%@ page import="fr.alcatel.ether.app.common.* "%>
10<%@ page import="org.apache.ecs.html.*" %>
11<%@ page import="java.util.Locale" %>
12
13
14<jsp:useBean scope="request" id="expBean" class = "fr.alcatel.ether.bean.ContainerBean">
15</jsp:useBean>
16
17
18<head>
19<% MultiLanguage ml = MultiLanguage.instance((Locale) JSPUtils.getSessionParameter(request, "langue")); %>
20
21<title><%= ml.get("gestionExp.titre")%></title>
22
23
24<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
25<link rel="stylesheet" href="/ether/ether.css">
26</head>
27
28
29<script language="JavaScript">
30
31function help(url)
32{
33 newWindow = window.open(url,'Help',' <%=Config.winParam %> ');
34 newWindow.focus();
35}
36
37function proprietes( expId )
38{
39        window.open("/ether/servlet/ExperimentServlet?action=6&id=" + expId,"","scrollbars=yes,resizable=yes,width=750,height=620");
40}
41
42function supprimer( expId )
43{
44        window.open("/ether/servlet/ExperimentServlet?action=5&id=" + expId,"","width=400,height=100,resizable=yes");
45}
46
47function creer()
48{
49        window.open("/ether/servlet/ExperimentServlet?action=6","","scrollbars=yes,resizable=yes,width=750,height=520");
50}
51
52function attributs( id )
53{
54        window.open("/ether/servlet/ExperimentServlet?action=7&id="+id,"attributes","scrollbars=yes,resizable=yes,width=750,height=520");
55}
56
57function droits( id )
58{
59        window.open('/ether/servlet/ExperimentServlet?action=10&id=' + id,'groupService','scrollbars=yes,resizable=yes,width=600,height=385');
60}
61
62function valider( id )
63{
64        window.open("/ether/servlet/ExperimentServlet?action=9&id="+id,"","scrollbars=yes,resizable=yes,width=600,height=420");
65}
66
67</script>
68
69
70
71
72<body>
73<p class="titrePage" align="left"><%= ml.get("gestionExp.titre")%></p>
74<p class="titrePage" align="left"><%= Config.tag_image_ligne %></p>
75&nbsp;<br>
76
77<%
78// Creer le tableau des experiences
79EtherHTMLTable table = new EtherHTMLTable(expBean.size()+1 , 6 );
80
81table.setAlign ("center");
82table.setWidth ("100%");
83table.setCellContent( 0, 0, "<a href=\"javascript:creer();\">" + Config.getIcone( Config.icone_experience, "icone_experience", ml) + "</a>" );
84table.setTitles( new String[]{ml.get("commun.Experience"),"&nbsp;","&nbsp;","&nbsp;","&nbsp;","&nbsp;"});
85
86int i = 0;
87while ( expBean.hasNext() )
88{
89        Experiment experiment = (Experiment)expBean.next();
90        String name = experiment.getName();
91        int id = experiment.getId();
92       
93        table.setCellContent( i+1 , 0 , name );
94        table.setCellContent( i+1 , 1 , "<a href=\"javascript:proprietes(" + id + ");\">" + Config.getIcone( Config.icone_proprietes, "icone_proprietes", ml) + "</a>");
95        table.setCellContent( i+1 , 2 , "<a href=\"javascript:supprimer(" + id + ");\" >" + Config.getIcone( Config.icone_supprimer, "icone_supprimer", ml) + "</a>" );
96        table.setCellContent( i+1 , 3 , "<a href=\"javascript:attributs(" + id + ");\" >" + Config.getIcone( Config.icone_criteres, "icone_criteres", ml) + "</a>" );
97        table.setCellContent( i+1 , 4 , "<a href=\"javascript:droits(" + id + ");\" >" + Config.getIcone( Config.icone_droits, "icone_droits", ml) + "</a>" );
98        table.setCellContent( i+1 , 5 , "<a href=\"javascript:valider(" + id + ");\" >" + Config.getIcone( Config.icone_valider_exp, "icone_valider_exp", ml) + "</a>" );
99        i++; // Incrementer l'index
100}
101
102out.println( table.generate() );
103
104%>
105
106&nbsp;<br>
107<td class="petit"> <b><%= Config.tag_image_ligne %></b></td>
108&nbsp;<br>
109
110<a href=<%= ml.get("commun.adresseHomeAdmin") %> Target="_top"> <%= Config.getIcone( Config.icone_home, "icone_home", ml) %></a>&nbsp;
111
112<a href=mailto:<%= Config.mailAdmin %>><%= Config.getIcone( Config.icone_mail, "icone_mail", ml) %></a>&nbsp;
113
114<a href="javascript:help('<%=ml.get("commun.adresseHelp_Gest_Exp")%>')" >
115<%=Config.getIcone(Config.icone_help,"icone_help",ml) %></a>
116
117<br> <span class="petit"><%= ml.get("commun.CopyRight") %>
118
119</body>
120</html>
Note: See TracBrowser for help on using the repository browser.