source: ether_core/trunk/src/jsp/admin/service_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: 5.6 KB
Line 
1<!-- Projet Ether - $Id: service_gestion.jsp,v 1.12 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.tools.*" %>
8<%@ page import="fr.alcatel.ether.app.common.*" %>
9<%@ page import="org.apache.ecs.html.*" %>
10<%@ page import="java.util.Locale" %>
11
12
13<jsp:useBean scope="request" id="serviceListBean" class = "fr.alcatel.ether.bean.ServiceBean">
14</jsp:useBean>
15
16<head> 
17
18<% MultiLanguage ml = MultiLanguage.instance((Locale) JSPUtils.getSessionParameter(request, "langue")); %>
19
20<title>Gestion des services</title>
21<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
22<link rel="stylesheet" href="/ether/ether.css"></head>
23
24<SCRIPT language="JavaScript">
25
26function help(url)
27{
28 newWindow = window.open(url,'Help',' <%=Config.winParam %> ');
29 newWindow.focus();
30}
31
32function next()
33{
34        self.document.location='/ether/servlet/ServiceServlet?<%= Config.ACTION %>=<%= Config.SERVICE_NEXT%>';
35}
36
37function previous()
38{
39        self.document.location='/ether/servlet/ServiceServlet?<%= Config.ACTION %>=<%= Config.SERVICE_PREV%>';
40}
41
42function proprietes(index)
43{
44        window.open('/ether/servlet/ServiceServlet?<%= Config.ACTION %>=<%= Config.SERVICE_UPDATE%>&<%= Constants.INDEX %>=' + index,'propService','scrollbars=yes,resizable=yes,width=700,height=670');
45}
46
47function cut(index)
48{
49        window.open('/ether/servlet/ServiceServlet?<%= Config.ACTION %>=<%= Config.SERVICE_DELETE%>&<%= Constants.INDEX %>=' + index,'confSup','width=300,height=150,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0')
50}
51
52function create()
53{
54        window.open('/ether/servlet/ServiceServlet?<%= Config.ACTION %>=<%= Config.SERVICE_CREATE%>','propService','scrollbars=yes,resizable=yes,width=700,height=670');
55}
56
57function selectGroup(index)
58{
59        window.open('/ether/servlet/ServiceServlet?<%= Config.ACTION %>=<%= Config.SERVICE_INIT_SERVICE_RIGHT%>&<%= Constants.INDEX %>=' + index,'groupService','scrollbars=yes,resizable=yes,width=600,height=385');
60}
61
62</SCRIPT>
63
64<body>
65<%Config.getConfig();%>
66<p class="titrePage" align="left">Gestion des services </p>
67<p class="titrePage" align="left"><b><%= Config.tag_image_ligne %></b></p>
68&nbsp;<br>
69<FORM NAME="firstform" METHOD="POST" ACTION="">
70<%
71
72// Creer le tableau des services
73EtherHTMLTable table = new EtherHTMLTable( serviceListBean.getNextIndex() - serviceListBean.getFirstIndex() + 1, 4 );
74
75table.setAlign( "center" );
76table.setWidth( "100%" );
77table.setTitles( new String[]{"Services","&nbsp;","&nbsp;","&nbsp;"});
78int index ;
79int indexTable = 1;
80
81table.setCellContent( 0, 0,"<a href=\"javascript:create();\">" + Config.icone_service.toString()+ "</a>" );
82
83
84for ( index = serviceListBean.getFirstIndex() ; index < serviceListBean.getNextIndex() ; index ++ )
85{
86
87        table.setCellContent( indexTable,0,serviceListBean.getName(index) );
88        table.setCellContent( indexTable,1,"<a href=\"javascript:proprietes(" + index + ");\">" + Config.icone_proprietes.toString()+ "</a>" );
89        table.setCellContent( indexTable,2,"<a href=\"javascript:cut(" + index + ");\">" + Config.icone_supprimer.toString()+ "</a>" );
90        table.setCellContent( indexTable,3,"<a href=\"javascript:selectGroup(" + index + ");\">" + Config.icone_groupe.toString()+ "</a>" );
91        indexTable++;
92}
93
94out.println( table.generate() );
95out.println("&nbsp;<br>");
96
97// mise en place des boutons prev and next
98Integer actionToPermit = serviceListBean.getActionToPermit( );
99
100if ( actionToPermit != null)
101{
102        out.println("<CENTER> <table width=\"90%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\"><TR>");
103        if ( actionToPermit.intValue() == Config.ACTION_NEXT )
104        {
105                out.println("<td width=\"50%\" class=\"libelleChamp\" align=\"right\"><p class=\"petit\">&nbsp;</p></td>");
106                out.println("<td width=\"50%\" class=\"libelleChamp\" align=\"left\">");
107                out.println("<p class=\"petit\"><a href=\"javascript:next();\">" + Config.icone_suivant.toString() + "</a>");
108                out.println("page suivante</p></td>");
109        }
110        else if ( actionToPermit.intValue() == Config.ACTION_PREVIOUS)
111        {
112                out.println("<td width=\"50%\" class=\"libelleChamp\" align=\"right\">");
113                out.println("<p class=\"petit\">page pr&eacute;c&eacute;dente <a href=\"javascript:previous();\">" + Config.icone_precedent.toString()+ "</a></p></td>");
114                out.println("<td width=\"50%\" class=\"libelleChamp\" align=\"left\"><p class=\"petit\">&nbsp;</p></td>");
115        }
116        else if (actionToPermit.intValue() == Config.ACTION_NEXT_AND_PREVIOUS)
117        {
118                out.println("<td width=\"50%\" class=\"libelleChamp\" align=\"right\">");
119                out.println("<p class=\"petit\">page pr&eacute;c&eacute;dente <a href=\"javascript:previous();\">" + Config.icone_precedent.toString()+ "</a>&nbsp;</p></td>");
120                out.println("<td width=\"50%\" class=\"libelleChamp\" align=\"left\">");
121                out.println("<p class=\"petit\">&nbsp;<a href=\"javascript:next();\">" + Config.icone_suivant.toString() + "</a>");
122                out.println("page suivante</p></td>");
123        }
124        out.println("</TR>");
125        out.println("</TABLE>");
126        out.println("</CENTER>");
127}
128
129%>
130</form>
131&nbsp;<br>
132<p class="petit" align="left"> <b><%= Config.tag_image_ligne %></b>
133&nbsp;<br>
134
135<a href=<%= ml.get("commun.adresseHomeAdmin") %> Target="_top"> <%= Config.getIcone( Config.icone_home, "icone_home", ml) %></a>&nbsp;
136
137<a href=mailto:<%= Config.mailAdmin %>><%= Config.getIcone( Config.icone_mail, "icone_mail", ml) %></a>&nbsp;
138
139<a href="javascript:help('<%=ml.get("commun.adresseHelp_Gest_Service")%>')" >
140<%=Config.getIcone(Config.icone_help,"icone_help",ml) %></a>
141<br> <span class="petit"><%= ml.get("commun.CopyRight") %></p>
142</body>
143</html>
Note: See TracBrowser for help on using the repository browser.