1 | <!-- Projet Ether - $Id: theme_gestion.jsp,v 1.2 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.data.Theme" %> |
---|
9 | <%@ page import="fr.alcatel.ether.app.common.*" %> |
---|
10 | <%@ page import="org.apache.ecs.html.*" %> |
---|
11 | <%@ page import="java.util.Locale" %> |
---|
12 | <%@ page import="java.util.Collection" %> |
---|
13 | <%@ page import="java.util.Iterator" %> |
---|
14 | |
---|
15 | |
---|
16 | <jsp:useBean scope="request" id="themeBean" class = "fr.alcatel.ether.bean.HashMapBean"> |
---|
17 | </jsp:useBean> |
---|
18 | |
---|
19 | <head> |
---|
20 | |
---|
21 | <% MultiLanguage ml = MultiLanguage.instance((Locale) JSPUtils.getSessionParameter(request, "langue")); %> |
---|
22 | |
---|
23 | <title>Gestion des theèmes</title> |
---|
24 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
25 | <link rel="stylesheet" href="/ether/ether.css"></head> |
---|
26 | |
---|
27 | <SCRIPT language="JavaScript"> |
---|
28 | |
---|
29 | function help(url) |
---|
30 | { |
---|
31 | newWindow = window.open(url,'Help',' <%=Config.winParam %> '); |
---|
32 | newWindow.focus(); |
---|
33 | } |
---|
34 | |
---|
35 | function proprietes(id) |
---|
36 | { |
---|
37 | window.open('/ether/servlet/ThemeServlet?<%= Config.ACTION %>=<%= Config.THEME_UPDATE%>&<%= Constants.INDEX %>=' + id,'propTheme','scrollbars=yes,resizable=yes,width=550,height=400'); |
---|
38 | } |
---|
39 | |
---|
40 | function cut(id) |
---|
41 | { |
---|
42 | window.open('/ether/servlet/ThemeServlet?<%= Config.ACTION %>=<%= Config.THEME_DELETE%>&<%= Constants.INDEX %>=' + id,'confSup','width=300,height=150,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0') |
---|
43 | } |
---|
44 | |
---|
45 | function create() |
---|
46 | { |
---|
47 | window.open('/ether/servlet/ThemeServlet?<%= Config.ACTION %>=<%= Config.THEME_CREATE%>','propTheme','scrollbars=yes,resizable=yes,width=550,height=400'); |
---|
48 | } |
---|
49 | |
---|
50 | </SCRIPT> |
---|
51 | |
---|
52 | <body> |
---|
53 | <%Config.getConfig();%> |
---|
54 | <p class="titrePage" align="left">Gestion des thèmes</p> |
---|
55 | <p class="titrePage" align="left"><b><%= Config.tag_image_ligne %></b></p> |
---|
56 | <br> |
---|
57 | <FORM NAME="firstform" METHOD="POST" ACTION=""> |
---|
58 | <% |
---|
59 | |
---|
60 | // Creer le tableau des services |
---|
61 | EtherHTMLTable table = new EtherHTMLTable( themeBean.size() + 1, 4 ); |
---|
62 | |
---|
63 | table.setAlign( "center" ); |
---|
64 | table.setWidth( "100%" ); |
---|
65 | table.setTitles( new String[]{"Thèmes",ml.get("commun.Description")," "," "}); |
---|
66 | int indexTable = 1; |
---|
67 | |
---|
68 | table.setCellContent( 0, 0,"<a href=\"javascript:create();\">" + Config.getIcone("icone_creer_theme", ml) + "</a>" ); |
---|
69 | |
---|
70 | Theme theme ; |
---|
71 | |
---|
72 | Collection col = themeBean.getElements(); |
---|
73 | Iterator ite = col.iterator(); |
---|
74 | while (ite.hasNext()) |
---|
75 | { |
---|
76 | theme = (Theme) ite.next(); |
---|
77 | table.setCellContent( indexTable,0,theme.getName() ); |
---|
78 | table.setCellContent( indexTable,1,theme.getDescription() ); |
---|
79 | table.setCellContent( indexTable,2,"<a href=\"javascript:proprietes(" + theme.getId() + ");\">" + Config.getIcone( Config.icone_proprietes, "icone_proprietes", ml) + "</a>" ); |
---|
80 | table.setCellContent( indexTable,3,"<a href=\"javascript:cut(" + theme.getId() + ");\">" + Config.getIcone( Config.icone_supprimer, "icone_supprimer", ml)+ "</a>" ); |
---|
81 | indexTable++; |
---|
82 | } |
---|
83 | |
---|
84 | out.println( table.generate() ); |
---|
85 | %> |
---|
86 | </form> |
---|
87 | |
---|
88 | <br> |
---|
89 | <p class="petit" align="left"> <b><%= Config.tag_image_ligne %></b></p> |
---|
90 | <br> |
---|
91 | |
---|
92 | <a href=<%= ml.get("commun.adresseHomeAdmin") %> Target="_top"> <%= Config.getIcone( Config.icone_home, "icone_home", ml) %></a> |
---|
93 | |
---|
94 | <a href=mailto:<%= Config.mailAdmin %>><%= Config.getIcone( Config.icone_mail, "icone_mail", ml) %></a> |
---|
95 | |
---|
96 | <a href="javascript:help('<%=ml.get("commun.adresseHelp_Gest_Theme")%>')" > |
---|
97 | <%=Config.getIcone(Config.icone_help,"icone_help",ml) %></a> |
---|
98 | |
---|
99 | <br> <span class="petit"><%= ml.get("commun.CopyRight") %> |
---|
100 | |
---|
101 | </p> |
---|
102 | |
---|
103 | </body> |
---|
104 | </html> |
---|