[5] | 1 | <!-- Projet Ether - $Id: experience_proprietes.jsp,v 1.14 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.tools.*"%> |
---|
| 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.Date" %> |
---|
| 13 | |
---|
| 14 | |
---|
| 15 | <jsp:useBean scope="request" id="userBean" class = "fr.alcatel.ether.bean.ContainerBean"> |
---|
| 16 | </jsp:useBean> |
---|
| 17 | |
---|
| 18 | <SCRIPT language="JavaScript"> |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | function fermer() |
---|
| 22 | { |
---|
| 23 | window.close(); |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | function sauver() |
---|
| 27 | { |
---|
| 28 | <% |
---|
| 29 | // Experience precedemment selectionnee? |
---|
| 30 | if ( session.getAttribute( Config.SELECTED_EXPERIMENT ) == null ) |
---|
| 31 | { // Si non, c'est une creation |
---|
| 32 | %> |
---|
| 33 | document.expForm.action = "/ether/servlet/ExperimentServlet?action=2"; |
---|
| 34 | <% |
---|
| 35 | } |
---|
| 36 | else |
---|
| 37 | { // Si oui, c'est une mise a jour |
---|
| 38 | %> |
---|
| 39 | document.expForm.action = "/ether/servlet/ExperimentServlet?action=3" |
---|
| 40 | <% |
---|
| 41 | } |
---|
| 42 | %> |
---|
| 43 | |
---|
| 44 | document.expForm.target= "_self"; |
---|
| 45 | document.expForm.submit(); |
---|
| 46 | // window.close(); |
---|
| 47 | |
---|
| 48 | } |
---|
| 49 | |
---|
| 50 | </SCRIPT> |
---|
| 51 | |
---|
| 52 | <head> |
---|
| 53 | <title>Propriété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 | Config.getConfig(); |
---|
| 60 | |
---|
| 61 | // initialisation des zones |
---|
| 62 | String name = ""; |
---|
| 63 | String mission = ""; |
---|
| 64 | String url = ""; |
---|
| 65 | double minLon = Constants.NO_DOUBLE; |
---|
| 66 | double maxLon = Constants.NO_DOUBLE; |
---|
| 67 | double minLat = Constants.NO_DOUBLE; |
---|
| 68 | double maxLat = Constants.NO_DOUBLE; |
---|
| 69 | double minAlt = Constants.NO_DOUBLE; |
---|
| 70 | double maxAlt = Constants.NO_DOUBLE; |
---|
| 71 | String firstDate = Constants.dateFormatter.format( new Date(Constants.NO_DATE) ); |
---|
| 72 | String lastDate = Constants.dateFormatter.format( new Date(Constants.NO_DATE) ); |
---|
| 73 | boolean pub = false; |
---|
| 74 | String readme = ""; |
---|
| 75 | String coright = ""; |
---|
| 76 | |
---|
| 77 | |
---|
| 78 | Experiment experiment = null; |
---|
| 79 | if ( ( experiment = (Experiment)session.getAttribute( Config.SELECTED_EXPERIMENT ) ) != null ) |
---|
| 80 | { |
---|
| 81 | %> |
---|
| 82 | <p class="titrePage" align="center">Propriétés de l'expérience </p> |
---|
| 83 | <% |
---|
| 84 | |
---|
| 85 | |
---|
| 86 | name = experiment.getName(); |
---|
| 87 | mission = experiment.getMission(); |
---|
| 88 | url = experiment.getUrlInfo(); |
---|
| 89 | minLon = experiment.getMinLon(); |
---|
| 90 | maxLon = experiment.getMaxLon(); |
---|
| 91 | minLat = experiment.getMinLat(); |
---|
| 92 | maxLat = experiment.getMaxLat(); |
---|
| 93 | minAlt = experiment.getMinAlt(); |
---|
| 94 | maxAlt = experiment.getMaxAlt(); |
---|
| 95 | firstDate = experiment.getFirstObservationUTCDate(); |
---|
| 96 | lastDate = experiment.getLastObservationUTCDate(); |
---|
| 97 | pub = experiment.isPublic(); |
---|
| 98 | readme = experiment.getReadMe(); |
---|
| 99 | coright = experiment.getCoRight(); |
---|
| 100 | |
---|
| 101 | if ( name == null ) name = ""; |
---|
| 102 | if ( mission == null ) mission = ""; |
---|
| 103 | if ( url == null ) url = ""; |
---|
| 104 | if ( readme == null ) readme = ""; |
---|
| 105 | if ( coright == null ) coright = ""; |
---|
| 106 | } |
---|
| 107 | else |
---|
| 108 | {%> |
---|
| 109 | <p class="titrePage" align="center">Création d'une expérience</p> |
---|
| 110 | <%} |
---|
| 111 | %> |
---|
| 112 | |
---|
| 113 | <p class="titrePage" align="center"><%=Config.tag_image_ligne%></p> |
---|
| 114 | <p class="titrePage" align="center"> </p> |
---|
| 115 | |
---|
| 116 | <form name="expForm" method="post"> |
---|
| 117 | <table width="90%" align="center" border="0" cellspacing="0" cellpadding="0"> |
---|
| 118 | <tr> |
---|
| 119 | <td width="22%" class="libelleChamp"> |
---|
| 120 | <p class="petit"><b>Nom</b> </p> |
---|
| 121 | </td> |
---|
| 122 | <td width="52%" class="valeurChamp"> |
---|
| 123 | <input type="text" name="name" value="<%=name%>"> |
---|
| 124 | </td> |
---|
| 125 | <td width="26%" class="libelleChamp"> </td> |
---|
| 126 | </tr> |
---|
| 127 | <tr> |
---|
| 128 | <td width="22%" class="libelleChamp"> |
---|
| 129 | <p class="petit"><b>Mission</b> </p> |
---|
| 130 | </td> |
---|
| 131 | <td width="52%" class="valeurChamp"> |
---|
| 132 | <input type="text" name="mission" value="<%=mission%>"> |
---|
| 133 | </td> |
---|
| 134 | <td width="26%" class="libelleChamp"> </td> |
---|
| 135 | </tr> |
---|
| 136 | <tr> |
---|
| 137 | <td width="22%" class="libelleChamp"> |
---|
| 138 | <p class="petit"><b>URL info</b> </p> |
---|
| 139 | </td> |
---|
| 140 | <td width="52%" class="valeurChamp"> |
---|
| 141 | <input type="text" name="url" value="<%=url%>" size="40"> |
---|
| 142 | </td> |
---|
| 143 | <td width="26%" class="libelleChamp"> </td> |
---|
| 144 | </tr> |
---|
| 145 | <tr> |
---|
| 146 | <td width="22%" class="libelleChamp"> |
---|
| 147 | <p class="petit"><b>Longitude min</b> </p> |
---|
| 148 | </td> |
---|
| 149 | <td width="52%" class="valeurChamp"> |
---|
| 150 | <input type="text" name="minLon" value="<%=minLon%>"> |
---|
| 151 | </td> |
---|
| 152 | <td width="26%" class="libelleChamp"> </td> |
---|
| 153 | </tr> |
---|
| 154 | <tr> |
---|
| 155 | <td width="22%" class="libelleChamp"> |
---|
| 156 | <p class="petit"><b>Longitude max</b></p> |
---|
| 157 | </td> |
---|
| 158 | <td width="52%" class="valeurChamp"> |
---|
| 159 | <input type="text" name="maxLon" value="<%=maxLon%>"> |
---|
| 160 | </td> |
---|
| 161 | <td width="26%" class="libelleChamp"> </td> |
---|
| 162 | </tr> |
---|
| 163 | <tr> |
---|
| 164 | <td width="22%" class="libelleChamp"> |
---|
| 165 | <p class="petit"><b>Latitude min</b></p> |
---|
| 166 | </td> |
---|
| 167 | <td width="52%" class="valeurChamp"> |
---|
| 168 | <input type="text" name="minLat" value="<%=minLat%>"> |
---|
| 169 | </td> |
---|
| 170 | <td width="26%" class="libelleChamp"> </td> |
---|
| 171 | </tr> |
---|
| 172 | <tr> |
---|
| 173 | <td width="22%" class="libelleChamp"> |
---|
| 174 | <p class="petit"><b>Latitude max</b></p> |
---|
| 175 | </td> |
---|
| 176 | <td width="52%" class="valeurChamp"> |
---|
| 177 | <input type="text" name="maxLat" value="<%=maxLat%>"> |
---|
| 178 | </td> |
---|
| 179 | <td width="26%" class="libelleChamp"> </td> |
---|
| 180 | </tr> |
---|
| 181 | <tr> |
---|
| 182 | <td width="22%" class="libelleChamp"> |
---|
| 183 | <p class="petit"><b>Altitude min</b></p> |
---|
| 184 | </td> |
---|
| 185 | <td width="52%" class="valeurChamp"> |
---|
| 186 | <input type="text" name="minAlt" value="<%=minAlt%>"> |
---|
| 187 | </td> |
---|
| 188 | <td width="26%" class="libelleChamp"> </td> |
---|
| 189 | </tr> |
---|
| 190 | |
---|
| 191 | <tr> |
---|
| 192 | <td width="22%" class="libelleChamp"> |
---|
| 193 | <p class="petit"><b>Altitude max</b></p> |
---|
| 194 | </td> |
---|
| 195 | <td width="52%" class="valeurChamp"> |
---|
| 196 | <input type="text" name="maxAlt" value="<%=maxAlt%>"> |
---|
| 197 | </td> |
---|
| 198 | <td width="26%" class="libelleChamp"> </td> |
---|
| 199 | </tr> |
---|
| 200 | |
---|
| 201 | <tr> |
---|
| 202 | <td width="22%" class="libelleChamp"> |
---|
| 203 | <p class="petit"><b>Date début</b></p> |
---|
| 204 | </td> |
---|
| 205 | <td width="52%" class="valeurChamp"> |
---|
| 206 | <input type="text" name="firstDate" value="<%=firstDate%>" size="40"> |
---|
| 207 | </td> |
---|
| 208 | <td width="26%" class="libelleChamp"> |
---|
| 209 | <p class="petit"> AAAA/MM/DD HH:MM:SS.SSS</p> |
---|
| 210 | </td> |
---|
| 211 | </tr> |
---|
| 212 | |
---|
| 213 | <tr> |
---|
| 214 | <td width="22%" class="libelleChamp"> |
---|
| 215 | <p class="petit"><b>Date fin</b></p> |
---|
| 216 | </td> |
---|
| 217 | <td width="52%" class="valeurChamp"> |
---|
| 218 | <input type="text" name="lastDate" value="<%=lastDate%>" size="40"> |
---|
| 219 | </td> |
---|
| 220 | <td width="26%" class="libelleChamp"> |
---|
| 221 | <p class="petit"> AAAA/MM/DD HH:MM:SS.SSS</p> |
---|
| 222 | </td> |
---|
| 223 | </tr> |
---|
| 224 | <tr> |
---|
| 225 | <td width="22%" class="libelleChamp"> |
---|
| 226 | <p class="petit"><b>Accès public</b></p> |
---|
| 227 | </td> |
---|
| 228 | <td width="52%" class="valeurChamp"> |
---|
| 229 | <input type="checkbox" name="pub" <%=(pub?"checked":"")%>> |
---|
| 230 | </td> |
---|
| 231 | <td width="26%" class="libelleChamp"> |
---|
| 232 | <p class="petit"> </p> |
---|
| 233 | </td> |
---|
| 234 | </tr> |
---|
| 235 | |
---|
| 236 | <tr> |
---|
| 237 | <td width="22%" class="libelleChamp"> |
---|
| 238 | <p class="petit"><b>ReadMe</b> </p> |
---|
| 239 | </td> |
---|
| 240 | <td width="52%" class="valeurChamp"> |
---|
| 241 | <input type="text" name="readMe" value="<%=readme%>" size="40"> |
---|
| 242 | </td> |
---|
| 243 | <td width="26%" class="libelleChamp"> |
---|
| 244 | <p class="petit"> </p> |
---|
| 245 | </td> |
---|
| 246 | </tr> |
---|
| 247 | <tr> |
---|
| 248 | <td width="22%" class="libelleChamp"> |
---|
| 249 | <p class="petit"><b>Right</b> </p> |
---|
| 250 | </td> |
---|
| 251 | <td width="52%" class="valeurChamp"> |
---|
| 252 | <input type="text" name="coRight" value="<%=coright%>" size="40"> |
---|
| 253 | </td> |
---|
| 254 | <td width="26%" class="libelleChamp"> |
---|
| 255 | <p class="petit"> </p> |
---|
| 256 | </td> |
---|
| 257 | </tr> |
---|
| 258 | |
---|
| 259 | </table> |
---|
| 260 | <table width="14%" border="3" cellspacing="0" cellpadding="0" align="center"> |
---|
| 261 | <tr> |
---|
| 262 | <td width="78%"> |
---|
| 263 | <p align="center"><a href="javascript:sauver()"><%= Config.bouton_sauver.toString() %></a></p> |
---|
| 264 | </td> |
---|
| 265 | <td width="22%"> |
---|
| 266 | <p align="center"><a href="javascript:fermer()"><%= Config.bouton_fermer.toString() %></a></p> |
---|
| 267 | </td> |
---|
| 268 | </tr> |
---|
| 269 | </table> |
---|
| 270 | </form> |
---|
| 271 | </body> |
---|
| 272 | </html> |
---|