Changeset 259
- Timestamp:
- 11/21/11 15:05:30 (13 years ago)
- Location:
- ether_megapoli/trunk/web
- Files:
-
- 1 deleted
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
ether_megapoli/trunk/web/data/access/files.jsp
r200 r259 1 <%@ page import="com.medias.Context" contentType="text/html; charset=UTF-8"%>2 <%@ page language="java" contentType="text/html; charset=UTF-8" %>3 <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>4 <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>5 <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>6 <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>7 <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %>1 <%@ page contentType="text/html; charset=UTF-8" %> 2 <%@ page language="java" contentType="text/html; charset=UTF-8" %> 3 <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> 4 <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> 5 <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> 6 <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> 7 <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> 8 8 9 <tiles:insert page="/resources/templates/template .jsp" flush="true">9 <tiles:insert page="/resources/templates/templateMegapoli.jsp" flush="true"> 10 10 11 <bean:define type="java.lang.String" id="relativePath" value="<%=Context.getRelativePath(request)%>"/> 11 <tiles:put name="insertCss" type="string"></tiles:put> 12 <tiles:put name="insertJsOrJsp" type="string"></tiles:put> 12 13 13 <tiles:put name="nav" value='<%=relativePath+"/navFiles.jsp"%>'/>14 <nested:root name="fichiersForm">15 <nested:define id="nomJeu" property="nomJeu"/>16 <nested:define id="nomCateg" property="nomCategorie"/>17 <bean:define id="path" value="${nomCateg}/${nomJeu}"/>18 <tiles:put name="title" type="string">19 <bean:message key="app.title"/> - <bean:message key="data.access.files2" arg0="${nomJeu}"/>20 </tiles:put>21 14 22 <tiles:put name="bodytitle" type="string"> 23 <bean:message arg0="${nomJeu}" key="data.access.files"/> 24 </tiles:put> 15 <tiles:put name="title" type="string"><bean:message key="app.title"/> - <bean:message key="data.access.files2" arg0="${nomJeu}"/></tiles:put> 16 <tiles:put name="nav" type="string"> 17 <html:link page="/index.jsp"><bean:message key="app.home"/></html:link> > 18 <html:link page="/data?methodName=viewCatalogResume"><bean:message key="data.access"/></html:link> > 19 <html:link page="/JeuxAccess.do"><bean:message key="data.access.jeux"/></html:link> 20 </tiles:put> 25 21 26 <tiles:put name="body" type="string"> 27 <div id="errors"><html:errors/></div> 28 <div id="messages"> 29 <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> 30 <bean:write name="mess"/> 31 </html:messages> 32 </div> 33 34 <%--div class="submit"> 35 <html:link page="/JeuxAccess.do"><bean:message key="data.access.jeux"/></html:link> 36 </div--%> 37 38 <table> 39 <tr><th> 40 <nested:size id="nbFiles" property="fichiers"/> 41 <bean:write name="nbFiles"/> 42 <logic:equal name="nbFiles" value="1"> 43 <bean:message key="data.access.files3" arg0=""/> 44 </logic:equal> 45 <logic:notEqual name="nbFiles" value="1"> 46 <bean:message key="data.access.files3" arg0="s"/> 47 </logic:notEqual> 48 </th></tr> 49 <tr><td> 50 <%--logic:present name="SES_USER" scope="session"--%> 51 <html:link titleKey="data.access.downloading" page="/ZipGame.do" paramId="path" paramName="path"> 52 <html:img page="/resources/images/utils/text.png" alt="file"/> 53 <bean:message arg0="${nomJeu}" key="data.access.files.dowload.zip"/> 54 </html:link> 55 <%--/logic:present> 56 <logic:notPresent name="SES_USER" scope="session"> 57 <html:link titleKey="data.access.downloading.logon" page="/InitLogonAccess.do" paramName="access" paramId="source"> 58 <html:img page="/images/utils/text.png" alt="file"/> 59 <bean:message arg0="${nomJeu}" key="data.access.files.dowload.zip"/> 60 </html:link> 61 </logic:notPresent--%> 62 </td></tr> 22 <%--****************** CONTENT ****************** --%> 23 <tiles:put name="bodytitle" type="string"><bean:message arg0="${nomJeu}" key="data.access.files"/></tiles:put> 63 24 64 <nested:iterate property="fichiers" indexId="fId"> 65 <tr><td> 66 <html:img page="/resources/images/utils/text.png" alt="file"/> 67 <nested:define id="file" property="fichierNom"/> 68 <bean:define id="pathFile" value="${path}/${file}"/> 69 <html:link titleKey="data.access.downloading" page="/SendFileToClient.do" paramId="path" paramName="pathFile"> 70 <nested:write property="fichierNom"/> 71 </html:link> 72 </td></tr> 73 </nested:iterate> 74 </table> 75 76 <div class="hdp" align="right"> 77 <html:link page="/data/access/files.jsp" anchor="top" titleKey="app.hdp"> 78 <html:img page="/resources/images/utils/hdp1.png"/> 79 </html:link> 80 </div> 81 <div class="submit"> 82 <html:link page="/JeuxAccess.do"><bean:message key="data.access.jeux"/></html:link> 83 </div> 84 85 </tiles:put> 86 </nested:root> 87 25 <nested:root name="fichiersForm"> 26 <nested:define id="nomJeu" property="nomJeu"/> 27 <nested:define id="nomCateg" property="nomCategorie"/> 28 <bean:define id="path" value="${nomCateg}/${nomJeu}"/> 29 30 <tiles:put name="body" type="string"> 31 <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 32 <div id="errors"><html:errors/></div> 33 </logic:present> 34 35 <div id="messages"> 36 <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> 37 <bean:write name="mess"/> 38 </html:messages> 39 </div> 40 41 <div class="title2" style="float:left"> 42 <nested:size id="nbFiles" property="fichiers"/> 43 <bean:write name="nbFiles"/> 44 <logic:equal name="nbFiles" value="1"><bean:message key="data.access.files3"/></logic:equal> 45 <logic:notEqual name="nbFiles" value="1"><bean:message key="data.access.files3" arg0="s"/></logic:notEqual> 46 </div> 47 48 <div style="float:right"> 49 <a onclick='javascript:neededLogin("/ZipGame.do?path=<nested:write name="path"/>")' title='<bean:message key="data.access.downloading"/>'> 50 <html:img page="/resources/images/utils/text.png" alt="file"/> 51 <bean:message arg0="${nomJeu}" key="data.access.files.dowload.zip"/> 52 </a> 53 </div> 54 <BR/><BR/> 55 56 <nested:iterate property="fichiers" indexId="fId"> 57 <div> 58 <nested:define id="file" property="fichierNom"/> 59 <bean:define id="pathFile" value="${path}/${file}"/> 60 <a onclick='javascript:neededLogin("/SendFileToClient.do?path=<nested:write name="pathFile"/>")' title='<bean:message key="data.access.downloading"/>'> 61 <html:img page="/resources/images/utils/text.png" alt="file"/> 62 <nested:write property="fichierNom"/> 63 </a> 64 </div> 65 </nested:iterate> 66 67 <div class="hdp" align="right"> 68 <html:link href="#top" titleKey="app.hdp"> 69 <html:img page="/resources/images/utils/fleche_haut.gif" width="20px" height="20px"/> 70 </html:link> 71 </div> 72 </tiles:put> 73 </nested:root> 74 88 75 </tiles:insert> -
ether_megapoli/trunk/web/data/desc_parameter.jsp
r254 r259 28 28 29 29 <tiles:put name="body" type="string"> 30 <div id="errors"><html:errors/></div> 30 <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 31 <div id="errors"><html:errors/></div> 32 </logic:present> 33 31 34 <div id="messages"> 32 35 <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> -
ether_megapoli/trunk/web/data/desc_plateform.jsp
r254 r259 29 29 30 30 <tiles:put name="body" type="string"> 31 <div id="errors"><html:errors/></div> 31 <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 32 <div id="errors"><html:errors/></div> 33 </logic:present> 34 32 35 <div id="messages"> 33 36 <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> -
ether_megapoli/trunk/web/data/desc_sensor.jsp
r254 r259 41 41 42 42 <tiles:put name="body" type="string"> 43 <div id="errors"><html:errors/></div> 43 <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 44 <div id="errors"><html:errors/></div> 45 </logic:present> 46 44 47 <div id="messages"> 45 48 <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> -
ether_megapoli/trunk/web/data/jeux.jsp
r254 r259 1 1 <%@ page language="java" contentType="text/html; charset=UTF-8" %> 2 <%@ page import="com.medias.Calcul" %>3 2 <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> 4 3 <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> … … 24 23 25 24 <tiles:put name="body" type="string"> 26 <div id="errors"><html:errors/></div> 27 <div id="messages"> 28 <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> 29 <bean:write name="mess"/> 30 </html:messages> 31 </div> 25 <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 26 <div id="errors"><html:errors/></div> 27 </logic:present> 32 28 33 <bean:define id="download" value="download"/> 34 <nested:root name="jeuxForm"> 35 <table> 36 <tr> 37 <th/> 38 <nested:size id="nbJeux" property="jeux"/> 39 <bean:write name="nbJeux"/> 40 <logic:equal name="nbJeux" value="1"> 41 <bean:message key="data.access.jeux3"/> 42 </logic:equal> 43 <logic:notEqual name="nbJeux" value="1"> 44 <bean:message key="data.access.jeux4"/> 45 </logic:notEqual> 46 </th></tr> 47 <tr> 48 <td> 49 <html:img page="/resources/images/utils/folder.png" alt="folder"/> 50 <bean:message key="data.categ1"/> 51 </td> 52 </tr> 53 <tr> 54 <td> 55 <table style="margin-left:30px"> 56 <nested:iterate property="jeux" indexId="jId"> 57 <nested:nest property="categorie"> 58 <nested:define id="catNom" property="categorieNom"/> 59 </nested:nest> 60 <nested:equal name="catNom" value="AVION"> 61 <bean:define type="java.lang.String" id="parite" 62 value="<%=Calcul.getParite(jId.intValue())%>"/> 63 <logic:equal name="parite" value="pair"><bean:define id="idP" value="pair"/></logic:equal> 64 <logic:equal name="parite" value="impair"><bean:define id="idP" 65 value="impair"/></logic:equal> 66 <tr class="${idP}"> 67 <td width="300px"> 68 <nested:link page="/MetadataInfo.do" paramProperty="jeuId" paramId="idJeu" 69 titleKey="data.access.metadata.link"> 70 <nested:write property="jeuNom"/> 71 </nested:link> 72 </td> 73 <td width="160px" align="right"> 74 <nested:size id="nbFiles" property="fichiers"/> 75 <logic:greaterThan name="nbFiles" value="0"> 76 <%--html:link page="/PrepareFileListAccess.do" titleKey="data.access.download.file" paramId="setPath" paramName="path"--%> 77 <logic:notPresent name="SES_USER" scope="session"> 78 <html:link page="/InitLogonAccess.do" paramName="download" paramId="source"> 79 <%-- html:img page="/images/utils/text.png" altKey="data.access.download.file"/--%> 80 <i><bean:write name="nbFiles"/> 81 <logic:equal name="nbFiles" value="1"> 82 <bean:message key="data.access.metadata.file" arg0=""/> 83 </logic:equal> 84 <logic:notEqual name="nbFiles" value="1"> 85 <bean:message key="data.access.metadata.file" arg0="s"/> 86 </logic:notEqual></i> 87 </html:link> 88 </logic:notPresent> 89 <logic:present name="SES_USER" scope="session"> 90 <nested:link page="/FichiersAccess.do" titleKey="data.access.download.file" 91 paramId="idJeu" paramProperty="jeuId"> 92 <%-- html:img page="/images/utils/text.png" altKey="data.access.download.file"/--%> 93 <i><bean:write name="nbFiles"/> 94 <logic:equal name="nbFiles" value="1"> 95 <bean:message key="data.access.metadata.file" arg0=""/> 96 </logic:equal> 97 <logic:notEqual name="nbFiles" value="1"> 98 <bean:message key="data.access.metadata.file" arg0="s"/> 99 </logic:notEqual> 100 <%--logic:equal name="dateD" value="<%=dateF%>"> 101 <bean:message arg0="<%=dateD%>" key="data.access.metadata.file.sameDate"/> 102 </logic:equal> 103 <logic:notEqual name="dateD" value="<%=dateF%>"> 104 <bean:message arg0="<%=dateD%>" arg1="<%=dateF%>" key="data.access.metadata.file.differentDate"/> 105 </logic:notEqual--%></i> 106 </nested:link> 107 </logic:present> 108 </logic:greaterThan> 109 <logic:equal name="nbFiles" value="0"> 110 <bean:message key="data.access.files.zero"/> 111 </logic:equal> 112 </td> 113 </tr> 114 </nested:equal> 115 </nested:iterate> 116 </table> 117 </td> 118 </tr> 119 <tr> 120 <td> </td> 121 </tr> 122 <tr> 123 <td> 124 <html:img page="/resources/images/utils/folder.png" alt="folder"/> 125 <bean:message key="data.categ2"/> 126 </td> 127 </tr> 128 <tr> 129 <td> 130 <table style="margin-left:30px"> 131 <nested:iterate property="jeux" indexId="jId"> 132 <nested:nest property="categorie"> 133 <nested:define id="catNom" property="categorieNom"/> 134 </nested:nest> 135 <nested:equal name="catNom" value="SURF_FIXE"> 136 <bean:define type="java.lang.String" id="parite" 137 value="<%=Calcul.getParite(jId.intValue())%>"/> 138 <logic:equal name="parite" value="pair"><bean:define id="idP" value="pair"/></logic:equal> 139 <logic:equal name="parite" value="impair"><bean:define id="idP" 140 value="impair"/></logic:equal> 141 <tr class="${idP}"> 142 <td width="300px"> 143 <nested:link page="/MetadataInfo.do" paramProperty="jeuId" paramId="idJeu" 144 titleKey="data.access.metadata.link"> 145 <nested:write property="jeuNom"/> 146 </nested:link> 147 </td> 148 <td width="160px" align="right"> 149 <nested:size id="nbFiles" property="fichiers"/> 150 <logic:greaterThan name="nbFiles" value="0"> 151 <%--html:link page="/PrepareFileListAccess.do" titleKey="data.access.download.file" paramId="setPath" paramName="path"--%> 152 <logic:notPresent name="SES_USER" scope="session"> 153 <html:link page="/InitLogonAccess.do" paramName="download" paramId="source"> 154 <%-- html:img page="/images/utils/text.png" altKey="data.access.download.file"/--%> 155 <i><bean:write name="nbFiles"/> 156 <logic:equal name="nbFiles" value="1"> 157 <bean:message key="data.access.metadata.file" arg0=""/> 158 </logic:equal> 159 <logic:notEqual name="nbFiles" value="1"> 160 <bean:message key="data.access.metadata.file" arg0="s"/> 161 </logic:notEqual></i> 162 </html:link> 163 </logic:notPresent> 164 <logic:present name="SES_USER" scope="session"> 165 <nested:link page="/FichiersAccess.do" titleKey="data.access.download.file" 166 paramId="idJeu" paramProperty="jeuId"> 167 <%-- html:img page="/images/utils/text.png" altKey="data.access.download.file"/--%> 168 <i><bean:write name="nbFiles"/> 169 <logic:equal name="nbFiles" value="1"> 170 <bean:message key="data.access.metadata.file" arg0=""/> 171 </logic:equal> 172 <logic:notEqual name="nbFiles" value="1"> 173 <bean:message key="data.access.metadata.file" arg0="s"/> 174 </logic:notEqual> 175 <%--logic:equal name="dateD" value="<%=dateF%>"> 176 <bean:message arg0="<%=dateD%>" key="data.access.metadata.file.sameDate"/> 177 </logic:equal> 178 <logic:notEqual name="dateD" value="<%=dateF%>"> 179 <bean:message arg0="<%=dateD%>" arg1="<%=dateF%>" key="data.access.metadata.file.differentDate"/> 180 </logic:notEqual--%></i> 181 </nested:link> 182 </logic:present> 183 </logic:greaterThan> 184 <logic:equal name="nbFiles" value="0"> 185 <bean:message key="data.access.files.zero"/> 186 </logic:equal> 187 </td> 188 </tr> 189 </nested:equal> 190 </nested:iterate> 191 </table> 192 </td> 193 </tr> 194 <tr> 195 <td> </td> 196 </tr> 197 <tr> 198 <td> 199 <html:img page="/resources/images/utils/folder.png" alt="folder"/> 200 <bean:message key="data.categ3"/> 201 </td> 202 </tr> 203 <tr> 204 <td> 205 <table style="margin-left:30px"> 206 <nested:iterate property="jeux" indexId="jId"> 207 <nested:nest property="categorie"> 208 <nested:define id="catNom" property="categorieNom"/> 209 </nested:nest> 210 <nested:equal name="catNom" value="SURF_MOBILE"> 211 <bean:define type="java.lang.String" id="parite" 212 value="<%=Calcul.getParite(jId.intValue())%>"/> 213 <logic:equal name="parite" value="pair"><bean:define id="idP" value="pair"/></logic:equal> 214 <logic:equal name="parite" value="impair"><bean:define id="idP" 215 value="impair"/></logic:equal> 216 <tr class="${idP}"> 217 <td width="300px"> 218 <nested:link page="/MetadataInfo.do" paramProperty="jeuId" paramId="idJeu" 219 titleKey="data.access.metadata.link"> 220 <nested:write property="jeuNom"/> 221 </nested:link> 222 </td> 223 <td width="160px" align="right"> 224 <nested:size id="nbFiles" property="fichiers"/> 225 <logic:greaterThan name="nbFiles" value="0"> 226 <%--html:link page="/PrepareFileListAccess.do" titleKey="data.access.download.file" paramId="setPath" paramName="path"--%> 227 <logic:notPresent name="SES_USER" scope="session"> 228 <html:link page="/InitLogonAccess.do" paramName="download" paramId="source"> 229 <%--html:img page="/images/utils/text.png" altKey="data.access.download.file"/--%> 230 <i><bean:write name="nbFiles"/> 231 <logic:equal name="nbFiles" value="1"> 232 <bean:message key="data.access.metadata.file" arg0=""/> 233 </logic:equal> 234 <logic:notEqual name="nbFiles" value="1"> 235 <bean:message key="data.access.metadata.file" arg0="s"/> 236 </logic:notEqual></i> 237 </html:link> 238 </logic:notPresent> 239 <logic:present name="SES_USER" scope="session"> 240 <nested:link page="/FichiersAccess.do" titleKey="data.access.download.file" 241 paramId="idJeu" paramProperty="jeuId"> 242 <%-- html:img page="/images/utils/text.png" altKey="data.access.download.file"/--%> 243 <i><bean:write name="nbFiles"/> 244 <logic:equal name="nbFiles" value="1"> 245 <bean:message key="data.access.metadata.file" arg0=""/> 246 </logic:equal> 247 <logic:notEqual name="nbFiles" value="1"> 248 <bean:message key="data.access.metadata.file" arg0="s"/> 249 </logic:notEqual> 250 <%--logic:equal name="dateD" value="<%=dateF%>"> 251 <bean:message arg0="<%=dateD%>" key="data.access.metadata.file.sameDate"/> 252 </logic:equal> 253 <logic:notEqual name="dateD" value="<%=dateF%>"> 254 <bean:message arg0="<%=dateD%>" arg1="<%=dateF%>" key="data.access.metadata.file.differentDate"/> 255 </logic:notEqual--%></i> 256 </nested:link> 257 </logic:present> 258 </logic:greaterThan> 259 <logic:equal name="nbFiles" value="0"> 260 <bean:message key="data.access.files.zero"/> 261 </logic:equal> 262 </td> 263 </tr> 264 </nested:equal> 265 </nested:iterate> 266 </table> 267 </td> 268 </tr> 269 </table> 270 </nested:root> 29 <div id="messages"> 30 <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> 31 <bean:write name="mess"/> 32 </html:messages> 33 </div> 271 34 272 <div class="hdp" align="right"> 273 <html:link href="#top" titleKey="app.hdp"> 274 <html:img page="/resources/images/utils/fleche_haut.gif" width="20px" height="20px"/> 275 </html:link> 276 </div> 35 <bean:define id="download" value="download"/> 36 <nested:root name="jeuxForm"> 37 38 <div class="title2"> 39 <nested:size id="nbJeux" property="jeux"/> 40 <bean:write name="nbJeux"/> 41 <logic:equal name="nbJeux" value="1"><bean:message key="data.access.jeux3"/></logic:equal> 42 <logic:notEqual name="nbJeux" value="1"><bean:message key="data.access.jeux4"/></logic:notEqual> 43 </div> 44 45 <%--****************** AVION ****************** --%> 46 <div class="title2"> 47 <html:img page="/resources/images/utils/folder.png" alt="folder"/> 48 <bean:message key="data.categ1"/> 49 </div> 50 51 <%--TODO : Revoir cet affichage, 3 fois la boucle sur jId, c'est moche !! --%> 52 <nested:iterate property="jeux" indexId="jId"> 53 54 <nested:nest property="categorie"> 55 <nested:define id="catNom" property="categorieNom"/> 56 </nested:nest> 57 58 <nested:equal name="catNom" value="AVION"> 59 <div class="containerElement" style="width:550px"> 60 <div class="jeuxElement" style="width:300px"> 61 <nested:link page="/MetadataInfo.do" paramProperty="jeuId" paramId="idJeu" titleKey="data.access.metadata.link"> 62 <nested:write property="jeuNom"/> 63 </nested:link> 64 </div> 65 66 <div class="jeuxElement" style="width:160px"> 67 <nested:size id="nbFiles" property="fichiers"/> 68 <logic:greaterThan name="nbFiles" value="0"> 69 <a onclick='javascript:neededLogin("/FichiersAccess.do?idJeu=<nested:write property="jeuId"/>")' title='<bean:message key="data.access.download.file"/>'> 70 <bean:write name="nbFiles"/> <bean:message key="data.access.metadata.files"/> 71 </a> 72 </logic:greaterThan> 73 74 <logic:equal name="nbFiles" value="0"><bean:message key="data.access.files.zero"/></logic:equal> 75 </div> 76 </div> 77 </nested:equal> 78 </nested:iterate> 79 80 <BR/> 81 <%--**************** SURFACE FIXE *************** --%> 82 <div class="title2"> 83 <html:img page="/resources/images/utils/folder.png" alt="folder"/> 84 <bean:message key="data.categ2"/> 85 </div> 86 87 <nested:iterate property="jeux" indexId="jId"> 88 89 <nested:nest property="categorie"> 90 <nested:define id="catNom" property="categorieNom"/> 91 </nested:nest> 92 93 <nested:equal name="catNom" value="SURF_FIXE"> 94 <div class="containerElement" style="width:550px"> 95 <div class="jeuxElement" style="width:300px"> 96 <nested:link page="/MetadataInfo.do" paramProperty="jeuId" paramId="idJeu" titleKey="data.access.metadata.link"> 97 <nested:write property="jeuNom"/> 98 </nested:link> 99 </div> 100 101 <div class="jeuxElement" style="width:160px"> 102 <nested:size id="nbFiles" property="fichiers"/> 103 <logic:greaterThan name="nbFiles" value="0"> 104 <a onclick='javascript:neededLogin("/FichiersAccess.do?idJeu=<nested:write property="jeuId"/>")' title='<bean:message key="data.access.download.file"/>'> 105 <bean:write name="nbFiles"/> <bean:message key="data.access.metadata.files"/> 106 </a> 107 </logic:greaterThan> 108 109 <logic:equal name="nbFiles" value="0"><bean:message key="data.access.files.zero"/></logic:equal> 110 </div> 111 </div> 112 </nested:equal> 113 </nested:iterate> 114 115 <BR/> 116 <%--**************** SURFACE MOBILE *************** --%> 117 <div class="title2"> 118 <html:img page="/resources/images/utils/folder.png" alt="folder"/> 119 <bean:message key="data.categ3"/> 120 </div> 121 122 <nested:iterate property="jeux" indexId="jId"> 123 124 <nested:nest property="categorie"> 125 <nested:define id="catNom" property="categorieNom"/> 126 </nested:nest> 127 128 <nested:equal name="catNom" value="SURF_MOBILE"> 129 <div class="containerElement" style="width:550px"> 130 <div class="jeuxElement" style="width:300px"> 131 <nested:link page="/MetadataInfo.do" paramProperty="jeuId" paramId="idJeu" titleKey="data.access.metadata.link"> 132 <nested:write property="jeuNom"/> 133 </nested:link> 134 </div> 135 136 <div class="jeuxElement" style="width:160px"> 137 <nested:size id="nbFiles" property="fichiers"/> 138 <logic:greaterThan name="nbFiles" value="0"> 139 <a onclick='javascript:neededLogin("/FichiersAccess.do?idJeu=<nested:write property="jeuId"/>")' title='<bean:message key="data.access.download.file"/>'> 140 <bean:write name="nbFiles"/> <bean:message key="data.access.metadata.files"/> 141 </a> 142 </logic:greaterThan> 143 144 <logic:equal name="nbFiles" value="0"><bean:message key="data.access.files.zero"/></logic:equal> 145 </div> 146 </div> 147 </nested:equal> 148 </nested:iterate> 149 </nested:root> 150 151 <div class="hdp" align="right"> 152 <html:link href="#top" titleKey="app.hdp"> 153 <html:img page="/resources/images/utils/fleche_haut.gif" width="20px" height="20px"/> 154 </html:link> 155 </div> 277 156 278 157 </tiles:put> -
ether_megapoli/trunk/web/data/logon.jsp
r161 r259 23 23 <tiles:put name="body" type="string"> 24 24 <bean:message key="data.authentification.intro"/> 25 <div id="errors"><html:errors/></div> 26 <hr/> 25 <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 26 <div id="errors"><html:errors/></div> 27 </logic:present> 28 29 <hr/> 27 30 <div id="login"> 28 31 <html:form action="/Logon"> -
ether_megapoli/trunk/web/data/metadataInfo.jsp
r254 r259 34 34 35 35 <bean:message key="data.access.metadata.intro"/> 36 <div id="errors"><html:errors/></div> 36 <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 37 <div id="errors"><html:errors/></div> 38 </logic:present> 39 37 40 38 41 <html:form action="/UpdateMetadata" enctype="multipart/form-data"> -
ether_megapoli/trunk/web/data/parameter.jsp
r254 r259 24 24 25 25 <tiles:put name="body" type="string"> 26 27 <div id="errors"><html:errors/></div> 28 <div id="messages"> 26 27 <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 28 <div id="errors"><html:errors/></div> 29 </logic:present> 30 31 <div id="messages"> 29 32 <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> 30 33 <bean:write name="mess"/> -
ether_megapoli/trunk/web/data/plateform.jsp
r254 r259 24 24 25 25 <tiles:put name="body" type="string"> 26 27 <div id="errors"><html:errors/></div> 28 <div id="messages"> 26 27 <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 28 <div id="errors"><html:errors/></div> 29 </logic:present> 30 31 <div id="messages"> 29 32 <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> 30 33 <bean:write name="mess"/> -
ether_megapoli/trunk/web/data/sensor.jsp
r254 r259 25 25 26 26 <tiles:put name="body" type="string"> 27 28 <div id="errors"><html:errors/></div> 29 <div id="messages"> 27 28 <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 29 <div id="errors"><html:errors/></div> 30 </logic:present> 31 32 <div id="messages"> 30 33 <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> 31 34 <bean:write name="mess"/> -
ether_megapoli/trunk/web/data/upload/metadata.jsp
r200 r259 77 77 78 78 <bean:message key="data.upload.metadata.intro"/> 79 <div id="errors"><html:errors/></div> 80 81 <ul> 79 <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 80 <div id="errors"><html:errors/></div> 81 </logic:present> 82 83 84 <ul> 82 85 <li><a href="#presentation_gen"><bean:message key="data.upload.metadata.presentation.link"/></a></li> 83 86 <li><a href="#desc_jeu"><bean:message key="data.upload.metadata.description.link"/></a></li> -
ether_megapoli/trunk/web/data/upload/newSet.jsp
r200 r259 27 27 </html:messages> 28 28 </div> 29 <div id="errors"><html:errors/></div> 30 31 <html:form action="/NewSet"> 29 <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 30 <div id="errors"><html:errors/></div> 31 </logic:present> 32 33 34 <html:form action="/NewSet"> 32 35 33 36 <nested:nest property="metadata"> -
ether_megapoli/trunk/web/data/upload/newSetMails.jsp
r161 r259 31 31 </html:messages> 32 32 </div> 33 <div id="errors"><html:errors/></div> 34 35 <nested:iterate property="mails" indexId="mailId"> 33 <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 34 <div id="errors"><html:errors/></div> 35 </logic:present> 36 37 38 <nested:iterate property="mails" indexId="mailId"> 36 39 <bean:define type="java.lang.String" id="parite" value="<%=Calcul.getParite(mailId.intValue())%>"/> 37 40 <logic:equal name="parite" value="pair"><bean:define id="idP" value="pair"/></logic:equal> -
ether_megapoli/trunk/web/data/upload/upload.jsp
r200 r259 28 28 <bean:message key="data.upload.howto" arg0="${webmaster}"/> 29 29 <hr/> 30 31 <div id="errors"><html:errors/></div> 32 <div id="messages"> 30 31 <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 32 <div id="errors"><html:errors/></div> 33 </logic:present> 34 35 <div id="messages"> 33 36 <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> 34 37 <bean:write name="mess"/> -
ether_megapoli/trunk/web/project/login.jsp
r253 r259 26 26 window.onload = function() 27 27 { 28 $( "fieldset#signin_menu" ).toggle(); 29 $( ".signin" ).toggleClass( "menu-open" ); 28 showLogin( "<bean:message key="data.authentification.text"/>" ); 30 29 } 31 30 </script> -
ether_megapoli/trunk/web/resources/css/ether.css
r254 r259 53 53 } 54 54 55 .pair, .impair { 56 width: 210px; 57 /*padding-top: 3px;*/ 58 /*padding-bottom: 3px;*/ 55 .pair:hover, .impair:hover { 56 -moz-border-radius: 4px 4px 4px 4px; 57 background: none repeat scroll 0 0 #70739C; 58 color: #E1DEF1; 59 text-decoration: none; 59 60 } 60 61 -
ether_megapoli/trunk/web/resources/css/megapoli.css
r254 r259 161 161 .containerErrors { 162 162 display: none; 163 } 164 165 .containerElement { 166 color: #6178BC; 167 } 168 169 .containerElement:hover { 170 -moz-border-radius: 4px 4px 4px 4px; 171 -webkit-border-radius: 4px 4px 4px 4px; 172 text-decoration: none; 173 background: #70739C; 174 color: #FFFFFF; 163 175 } 164 176 … … 278 290 279 291 } 292 293 .title2 { 294 color: #165076; 295 font-weight: bold; 296 } 297 298 .jeuxElement { 299 position: relative; 300 float: left; 301 margin-left:30px 302 } -
ether_megapoli/trunk/web/resources/css/visu_parameter_by_pf.css
r241 r259 6 6 .containerParameter { 7 7 width: 250px; 8 }9 10 .containerPlateform, .containerParameter {11 color: #6178BC;12 }13 14 .containerPlateform:hover, .containerParameter:hover {15 -moz-border-radius: 4px 4px 4px 4px;16 -webkit-border-radius: 4px 4px 4px 4px;17 text-decoration: none;18 background: #70739C;19 color: #FFFFFF;20 8 } 21 9 -
ether_megapoli/trunk/web/resources/js/classesForJQuery/etherClasses.js
r246 r259 12 12 // var subItems = new ListItem( jsonElement, new Object() ); 13 13 // else 14 14 this.addItem( jsonElement, objectParameter ); 15 15 }, this ) ); 16 16 }, … … 43 43 }, 44 44 45 display : function( parentNode, idIfNoItem, textIfNoItem ) 46 { 47 if( 0 >= this.array.size() ) 48 this.displayNoItem( parentNode, idIfNoItem, textIfNoItem ); 49 else 50 jQuery.each( this.array, function( item ) 51 { 52 item.jsonElement.display( parentNode ); 53 } ); 54 }, 55 56 displayWithPairImpair : function( parentNode, idIfNoItem, textIfNoItem ) 45 display : function( parentNode, idIfNoItem, textIfNoItem, className ) 57 46 { 58 47 parentNode.empty(); … … 60 49 this.displayNoItem( parentNode, idIfNoItem, textIfNoItem ); 61 50 else 62 {63 var rowNumber = 0;64 51 jQuery.each( this.array, function( i, item ) 65 52 { 66 if( 0 == rowNumber % 2 ) 53 if( className ) 54 item.divItem.display( parentNode, className ); 55 else 56 item.divItem.display( parentNode ); 57 } ); 58 }, 59 60 displayWithPairImpair : function( parentNode, idIfNoItem, textIfNoItem ) 61 { 62 parentNode.empty(); 63 if( 0 >= this.array.length ) 64 this.displayNoItem( parentNode, idIfNoItem, textIfNoItem ); 65 else 66 { 67 jQuery.each( this.array, function( i, item ) 68 { 69 if( 0 == i % 2 ) 67 70 item.divItem.display( parentNode, "pair" ); 68 71 else 69 72 item.divItem.display( parentNode, "impair" ); 70 rowNumber++;71 73 } ); 72 74 } -
ether_megapoli/trunk/web/resources/jsp/megapoliHead.jsp
r253 r259 14 14 this.isLanguageFr = <%=Context.getLangue(request).equals( "fr" )%>; 15 15 this.path = "<%=request.getContextPath()%>"; 16 setPath( this.path ); 16 17 this.webmaster = "<%=Context.getWebmaster(request)%>"; 17 18 this.relativePageUri = <%=request.getQueryString() != null%> ? "<%=Context.getRelativePath( request )%>?<%=request.getQueryString()%>" : "<%=Context.getRelativePageURI(request)%>"; … … 334 335 } 335 336 337 function neededLogin( href ) 338 { 339 $( "#signin_menu" ).ready( function() 340 { 341 if( !getJSONUser() ) 342 showLogin( templateTexts["data.authentification.text"] ); 343 else 344 document.location.href = getPath() + href; 345 } ); 346 } 347 336 348 /** *********************************************** **/ 337 349 /** ******************** USER ********************* **/ … … 346 358 InterfaceTemplate.jSONUser = user; 347 359 } 360 361 function getPath() 362 { 363 return InterfaceTemplate.path; 364 } 365 366 function setPath( path ) 367 { 368 InterfaceTemplate.path = path; 369 } 370 348 371 </script> -
ether_megapoli/trunk/web/src/ApplicationResources.properties
r251 r259 269 269 data.access.metadata.presentation.contact.role.scientifique=Responsable scientifique 270 270 data.access.metadata.presentation.contact.role.technique=Responsable technique 271 data.access.metadata.files=fichier(s) d'origine 271 272 data.access.metadata.file=fichier{0} d'origine 272 273 data.access.metadata.file2=fichier{0} valid\u00E9{0} -
ether_megapoli/trunk/web/src/ApplicationResources_en.properties
r251 r259 269 269 data.access.metadata.presentation.contact.role.scientifique=Principal investigator 270 270 data.access.metadata.presentation.contact.role.technique=Technical manager 271 data.access.metadata.files=original file(s) 271 272 data.access.metadata.file=original file{0} 272 273 data.access.metadata.file2=file{0} validated … … 429 430 errors.access.date.bigger=You must enter a begin date greater or equal than the end date 430 431 errors.access.failed.sel=You must select at least 1 parameter or 1 sensor or 1 platform or 1 data set 431 errors.access.novalues=No 432 errors.access.novalues=No download possible 432 433 errors.access.login=You lost your session, please click on "Data access" to enter again your login and your password. 433 434 -
ether_megapoli/trunk/web/visualization/visu_parameter_by_pf-classes.jsp
r246 r259 28 28 display : function( parentNode, className ) 29 29 { 30 this.createContainer( "containerPlateform", "containerPlateform " + className ); 30 if( className ) 31 this.createContainer( "containerPlateform", "containerElement " + className ); 32 else 33 this.createContainer( "containerPlateform", "containerElement" ); 31 34 this.addName( "plateform_name" ); 32 35 this.appendContainer( parentNode ); … … 49 52 display : function( parentNode, className ) 50 53 { 51 this.createContainer( "containerParameter", "containerParameter " + className ); 54 if( className ) 55 this.createContainer( "containerParameter", "containerElement " + className ); 56 else 57 this.createContainer( "containerParameter", "containerElement"); 52 58 this.addNameWithMenus( "parameter_name" ); 53 59 this.appendContainer( parentNode ); -
ether_megapoli/trunk/web/visualization/visu_parameter_by_pf-script.jsp
r251 r259 166 166 this.plateforms.addOpenListener( jQuery.proxy( this.onSelectPlateform, this ) ); 167 167 this.loadingPlateforms.hide(); 168 this.plateforms.display WithPairImpair( this.containerPlateforms, "NoPlateform", interfaceTexts["data.visualization.noPlateform"] );168 this.plateforms.display( this.containerPlateforms, "NoPlateform", interfaceTexts["data.visualization.noPlateform"] ); 169 169 170 170 // Select the first plateform by default … … 183 183 this.parameters.addOpenListener( jQuery.proxy( this.onSelectParameter, this ) ); 184 184 this.loadingParameters.hide(); 185 this.parameters.display WithPairImpair( this.containerParameters, "NoParameter", interfaceTexts["data.visualization.noParameter"]);185 this.parameters.display( this.containerParameters, "NoParameter", interfaceTexts["data.visualization.noParameter"], "containerParameter" ); 186 186 }, 187 187
Note: See TracChangeset
for help on using the changeset viewer.