source: ether_core/trunk/src/jsp/admin/zone_proprietes.jsp @ 7

Last change on this file since 7 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: zone_proprietes.jsp,v 1.2 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.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
14<jsp:useBean scope="request" id="zoneBean" class = "fr.alcatel.ether.bean.HashMapBean">
15</jsp:useBean>
16
17<%
18// recuperation de l'index
19// s'il n'existe pas, c'est un creation, sinon, un update
20String param = request.getParameter( Constants.INDEX );
21GeographicalZone zone;
22
23if  ( param != null )
24{
25        // update
26        int id = Integer.valueOf(param).intValue();
27        zone = (GeographicalZone) zoneBean.getElement(id);
28}
29else
30{
31        // create
32        zone = new GeographicalZone();
33}
34%>
35
36<SCRIPT language="JavaScript">
37
38function fermer()
39{
40        window.close();
41}
42 
43function sauver()
44{
45        document.zoneForm.action = '/ether/servlet/GeoServlet?<%= Config.ACTION %>=<%= Config.ZONE_UPDATE_VALIDATION %>&<%= Constants.INDEX %>=<%= zone.getId() %>' ;
46        document.zoneForm.target= "_self";
47        document.zoneForm.submit();
48}
49
50</SCRIPT>
51
52<head>
53<title>Propri&eacute;t&eacute;s</title>
54<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
55<link rel="stylesheet" href="/ether/ether.css"></head>
56
57<body background="/images/Ether_Fond1.gif">
58
59<% if ( zone.getId() != -1 ) { %>
60<p class="titrePage" align="center">Propri&eacute;t&eacute;s de la zone </p>
61<% } else { %>
62<p class="titrePage" align="center">Cr&eacute;ation d'une zone</p>
63<% } %>
64<p class="titrePage" align="center"><%=Config.tag_image_ligne%></p>
65<p class="titrePage" align="center">&nbsp;</p>
66<form name="zoneForm" method="post">
67<table width="90%" align="center" border="0" cellspacing="0" cellpadding="0">
68        <tr> 
69      <td width="22%" class="libelleChamp"> 
70        <p class="petit"><b>Nom</b> </p>
71      </td>
72      <td width="52%" class="valeurChamp"> 
73        <input type="text" name="<%= Constants.ZONE_NAME %>" value="<%= zone.getName() %>" maxlength="30" size="30">
74      </td>
75      <td width="26%" class="libelleChamp">&nbsp; </td>
76    </tr>
77    <td width="22%" class="libelleChamp"> 
78        <p class="petit"><b>Longitude min</b> </p>
79      </td>
80      <td width="52%" class="valeurChamp"> 
81        <input type="text" name="<%= Constants.ZONE_MIN_LONGITUDE %>" value="<%= zone.getMinLongitude() %>">
82      </td>
83      <td width="26%" class="libelleChamp">&nbsp; </td>
84    </tr>
85    <tr> 
86      <td width="22%" class="libelleChamp"> 
87        <p class="petit"><b>Longitude max</b></p>
88      </td>
89      <td width="52%" class="valeurChamp"> 
90        <input type="text" name="<%= Constants.ZONE_MAX_LONGITUDE %>" value="<%= zone.getMaxLongitude() %>">
91      </td>
92      <td width="26%" class="libelleChamp">&nbsp; </td>
93    </tr>
94    <tr> 
95      <td width="22%" class="libelleChamp"> 
96        <p class="petit"><b>Latitude min</b></p>
97      </td>
98      <td width="52%" class="valeurChamp"> 
99        <input type="text" name="<%= Constants.ZONE_MIN_LATITUDE %>" value="<%= zone.getMinLatitude() %>">
100      </td>
101      <td width="26%" class="libelleChamp">&nbsp; </td> 
102    </tr>
103    <tr> 
104      <td width="22%" class="libelleChamp"> 
105        <p class="petit"><b>Latitude max</b></p>
106      </td>
107      <td width="52%" class="valeurChamp"> 
108        <input type="text" name="<%= Constants.ZONE_MAX_LATITUDE %>" value="<%= zone.getMaxLatitude() %>">
109      </td>
110      <td width="26%" class="libelleChamp">&nbsp; </td>
111    </tr>
112</table>
113<p class="titrePage" align="center">&nbsp;</p>
114<table width="14%" border="3" cellspacing="0" cellpadding="0" align="center">
115  <tr>
116    <td width="78%"> 
117        <p align="center"><a href="javascript:sauver()"><%= Config.bouton_sauver.toString() %></a></p>
118    </td>
119    <td width="22%">
120       <p align="center"><a href="javascript:fermer()"><%= Config.bouton_fermer.toString() %></a></p>
121    </td>
122  </tr>
123</table>
124</form>     
125</body>
126</html>
Note: See TracBrowser for help on using the repository browser.