1 | <%@ page import="com.medias.Context" contentType="text/html; charset=UTF-8"%> |
---|
2 | <%@ page language="java" contentType="text/html; charset=UTF-8"%> |
---|
3 | <%@ page import="com.medias.Calcul"%> |
---|
4 | <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles"%> |
---|
5 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html"%> |
---|
6 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean"%> |
---|
7 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic"%> |
---|
8 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested"%> |
---|
9 | |
---|
10 | <tiles:insert page="/resources/templates/template.jsp" flush="true"> |
---|
11 | |
---|
12 | <bean:define type="java.lang.String" id="relativePath" value="<%=Context.getRelativePath(request)%>"/> |
---|
13 | |
---|
14 | <tiles:put name="nav" value='<%=relativePath+"/navJeux.jsp"%>'/> |
---|
15 | |
---|
16 | <tiles:put name="title" type="string"> |
---|
17 | <bean:message key="app.title"/> - <bean:message key="data.access.jeux"/> |
---|
18 | </tiles:put> |
---|
19 | |
---|
20 | <tiles:put name="bodytitle" type="string"> |
---|
21 | <bean:message key="data.access.jeux"/> |
---|
22 | </tiles:put> |
---|
23 | |
---|
24 | <tiles:put name="body" type="string"> |
---|
25 | <div id="errors"><html:errors/></div> |
---|
26 | <div id="messages"> |
---|
27 | <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> |
---|
28 | <bean:write name="mess"/> |
---|
29 | </html:messages> |
---|
30 | </div> |
---|
31 | |
---|
32 | <%--div class="submit"> |
---|
33 | <html:link page="/data/access/access.jsp"><bean:message key="data.access"/></html:link> |
---|
34 | </div --%> |
---|
35 | |
---|
36 | <%--jsp:include page="arborescence.jsp"/--%> |
---|
37 | <bean:define id="download" value="download"/> |
---|
38 | <nested:root name="jeuxForm"> |
---|
39 | <table> |
---|
40 | <tr><th/> |
---|
41 | <nested:size id="nbJeux" property="jeux"/> |
---|
42 | <bean:write name="nbJeux"/> |
---|
43 | <logic:equal name="nbJeux" value="1"> |
---|
44 | <bean:message key="data.access.jeux3"/> |
---|
45 | </logic:equal> |
---|
46 | <logic:notEqual name="nbJeux" value="1"> |
---|
47 | <bean:message key="data.access.jeux4"/> |
---|
48 | </logic:notEqual> |
---|
49 | </th></tr> |
---|
50 | <tr><td> |
---|
51 | <html:img page="/resources/images/utils/folder.png" alt="folder"/> |
---|
52 | <bean:message key="data.categ1"/> |
---|
53 | </td></tr> |
---|
54 | <tr><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" value="<%=Calcul.getParite(jId.intValue())%>"/> |
---|
62 | <logic:equal name="parite" value="pair"><bean:define id="idP" value="pair"/></logic:equal> |
---|
63 | <logic:equal name="parite" value="impair"><bean:define id="idP" value="impair"/></logic:equal> |
---|
64 | <tr class="${idP}"><td width="300px"> |
---|
65 | <nested:link page="/MetadataInfo.do" paramProperty="jeuId" paramId="idJeu" titleKey="data.access.metadata.link"> |
---|
66 | <nested:write property="jeuNom"/> |
---|
67 | </nested:link> |
---|
68 | </td><td width="160px" align="right"> |
---|
69 | <nested:size id="nbFiles" property="fichiers"/> |
---|
70 | <logic:greaterThan name="nbFiles" value="0"> |
---|
71 | <%--html:link page="/PrepareFileListAccess.do" titleKey="data.access.download.file" paramId="setPath" paramName="path"--%> |
---|
72 | <logic:notPresent name="SES_USER" scope="session"> |
---|
73 | <html:link page="/InitLogonAccess.do" paramName="download" paramId="source"> |
---|
74 | <%-- html:img page="/images/utils/text.png" altKey="data.access.download.file"/--%> |
---|
75 | <i><bean:write name="nbFiles"/> |
---|
76 | <logic:equal name="nbFiles" value="1"> |
---|
77 | <bean:message key="data.access.metadata.file" arg0=""/> |
---|
78 | </logic:equal> |
---|
79 | <logic:notEqual name="nbFiles" value="1"> |
---|
80 | <bean:message key="data.access.metadata.file" arg0="s"/> |
---|
81 | </logic:notEqual></i> |
---|
82 | </html:link> |
---|
83 | </logic:notPresent> |
---|
84 | <logic:present name="SES_USER" scope="session"> |
---|
85 | <nested:link page="/FichiersAccess.do" titleKey="data.access.download.file" paramId="idJeu" paramProperty="jeuId"> |
---|
86 | <%-- html:img page="/images/utils/text.png" altKey="data.access.download.file"/--%> |
---|
87 | <i><bean:write name="nbFiles"/> |
---|
88 | <logic:equal name="nbFiles" value="1"> |
---|
89 | <bean:message key="data.access.metadata.file" arg0=""/> |
---|
90 | </logic:equal> |
---|
91 | <logic:notEqual name="nbFiles" value="1"> |
---|
92 | <bean:message key="data.access.metadata.file" arg0="s"/> |
---|
93 | </logic:notEqual> |
---|
94 | <%--logic:equal name="dateD" value="<%=dateF%>"> |
---|
95 | <bean:message arg0="<%=dateD%>" key="data.access.metadata.file.sameDate"/> |
---|
96 | </logic:equal> |
---|
97 | <logic:notEqual name="dateD" value="<%=dateF%>"> |
---|
98 | <bean:message arg0="<%=dateD%>" arg1="<%=dateF%>" key="data.access.metadata.file.differentDate"/> |
---|
99 | </logic:notEqual--%></i> |
---|
100 | </nested:link> |
---|
101 | </logic:present> |
---|
102 | </logic:greaterThan> |
---|
103 | <logic:equal name="nbFiles" value="0"> |
---|
104 | <bean:message key="data.access.files.zero"/> |
---|
105 | </logic:equal> |
---|
106 | </td> |
---|
107 | </tr> |
---|
108 | </nested:equal> |
---|
109 | </nested:iterate> |
---|
110 | </table> |
---|
111 | </td></tr> |
---|
112 | <tr><td> </td></tr> |
---|
113 | <tr><td> |
---|
114 | <html:img page="/resources/images/utils/folder.png" alt="folder"/> |
---|
115 | <bean:message key="data.categ2"/> |
---|
116 | </td></tr> |
---|
117 | <tr><td> |
---|
118 | <table style="margin-left:30px"> |
---|
119 | <nested:iterate property="jeux" indexId="jId"> |
---|
120 | <nested:nest property="categorie"> |
---|
121 | <nested:define id="catNom" property="categorieNom"/> |
---|
122 | </nested:nest> |
---|
123 | <nested:equal name="catNom" value="SURF_FIXE"> |
---|
124 | <bean:define type="java.lang.String" id="parite" value="<%=Calcul.getParite(jId.intValue())%>"/> |
---|
125 | <logic:equal name="parite" value="pair"><bean:define id="idP" value="pair"/></logic:equal> |
---|
126 | <logic:equal name="parite" value="impair"><bean:define id="idP" value="impair"/></logic:equal> |
---|
127 | <tr class="${idP}"><td width="300px"> |
---|
128 | <nested:link page="/MetadataInfo.do" paramProperty="jeuId" paramId="idJeu" titleKey="data.access.metadata.link"> |
---|
129 | <nested:write property="jeuNom"/> |
---|
130 | </nested:link> |
---|
131 | </td><td width="160px" align="right"> |
---|
132 | <nested:size id="nbFiles" property="fichiers"/> |
---|
133 | <logic:greaterThan name="nbFiles" value="0"> |
---|
134 | <%--html:link page="/PrepareFileListAccess.do" titleKey="data.access.download.file" paramId="setPath" paramName="path"--%> |
---|
135 | <logic:notPresent name="SES_USER" scope="session"> |
---|
136 | <html:link page="/InitLogonAccess.do" paramName="download" paramId="source"> |
---|
137 | <%-- html:img page="/images/utils/text.png" altKey="data.access.download.file"/--%> |
---|
138 | <i><bean:write name="nbFiles"/> |
---|
139 | <logic:equal name="nbFiles" value="1"> |
---|
140 | <bean:message key="data.access.metadata.file" arg0=""/> |
---|
141 | </logic:equal> |
---|
142 | <logic:notEqual name="nbFiles" value="1"> |
---|
143 | <bean:message key="data.access.metadata.file" arg0="s"/> |
---|
144 | </logic:notEqual></i> |
---|
145 | </html:link> |
---|
146 | </logic:notPresent> |
---|
147 | <logic:present name="SES_USER" scope="session"> |
---|
148 | <nested:link page="/FichiersAccess.do" titleKey="data.access.download.file" paramId="idJeu" paramProperty="jeuId"> |
---|
149 | <%-- html:img page="/images/utils/text.png" altKey="data.access.download.file"/--%> |
---|
150 | <i><bean:write name="nbFiles"/> |
---|
151 | <logic:equal name="nbFiles" value="1"> |
---|
152 | <bean:message key="data.access.metadata.file" arg0=""/> |
---|
153 | </logic:equal> |
---|
154 | <logic:notEqual name="nbFiles" value="1"> |
---|
155 | <bean:message key="data.access.metadata.file" arg0="s"/> |
---|
156 | </logic:notEqual> |
---|
157 | <%--logic:equal name="dateD" value="<%=dateF%>"> |
---|
158 | <bean:message arg0="<%=dateD%>" key="data.access.metadata.file.sameDate"/> |
---|
159 | </logic:equal> |
---|
160 | <logic:notEqual name="dateD" value="<%=dateF%>"> |
---|
161 | <bean:message arg0="<%=dateD%>" arg1="<%=dateF%>" key="data.access.metadata.file.differentDate"/> |
---|
162 | </logic:notEqual--%></i> |
---|
163 | </nested:link> |
---|
164 | </logic:present> |
---|
165 | </logic:greaterThan> |
---|
166 | <logic:equal name="nbFiles" value="0"> |
---|
167 | <bean:message key="data.access.files.zero"/> |
---|
168 | </logic:equal> |
---|
169 | </td></tr> |
---|
170 | </nested:equal> |
---|
171 | </nested:iterate> |
---|
172 | </table> |
---|
173 | </td></tr> |
---|
174 | <tr><td> </td></tr> |
---|
175 | <tr><td> |
---|
176 | <html:img page="/resources/images/utils/folder.png" alt="folder"/> |
---|
177 | <bean:message key="data.categ3"/> |
---|
178 | </td></tr> |
---|
179 | <tr><td> |
---|
180 | <table style="margin-left:30px"> |
---|
181 | <nested:iterate property="jeux" indexId="jId"> |
---|
182 | <nested:nest property="categorie"> |
---|
183 | <nested:define id="catNom" property="categorieNom"/> |
---|
184 | </nested:nest> |
---|
185 | <nested:equal name="catNom" value="SURF_MOBILE"> |
---|
186 | <bean:define type="java.lang.String" id="parite" value="<%=Calcul.getParite(jId.intValue())%>"/> |
---|
187 | <logic:equal name="parite" value="pair"><bean:define id="idP" value="pair"/></logic:equal> |
---|
188 | <logic:equal name="parite" value="impair"><bean:define id="idP" value="impair"/></logic:equal> |
---|
189 | <tr class="${idP}"><td width="300px"> |
---|
190 | <nested:link page="/MetadataInfo.do" paramProperty="jeuId" paramId="idJeu" titleKey="data.access.metadata.link"> |
---|
191 | <nested:write property="jeuNom"/> |
---|
192 | </nested:link> |
---|
193 | </td><td width="160px" align="right"> |
---|
194 | <nested:size id="nbFiles" property="fichiers"/> |
---|
195 | <logic:greaterThan name="nbFiles" value="0"> |
---|
196 | <%--html:link page="/PrepareFileListAccess.do" titleKey="data.access.download.file" paramId="setPath" paramName="path"--%> |
---|
197 | <logic:notPresent name="SES_USER" scope="session"> |
---|
198 | <html:link page="/InitLogonAccess.do" paramName="download" paramId="source"> |
---|
199 | <%--html:img page="/images/utils/text.png" altKey="data.access.download.file"/--%> |
---|
200 | <i><bean:write name="nbFiles"/> |
---|
201 | <logic:equal name="nbFiles" value="1"> |
---|
202 | <bean:message key="data.access.metadata.file" arg0=""/> |
---|
203 | </logic:equal> |
---|
204 | <logic:notEqual name="nbFiles" value="1"> |
---|
205 | <bean:message key="data.access.metadata.file" arg0="s"/> |
---|
206 | </logic:notEqual></i> |
---|
207 | </html:link> |
---|
208 | </logic:notPresent> |
---|
209 | <logic:present name="SES_USER" scope="session"> |
---|
210 | <nested:link page="/FichiersAccess.do" titleKey="data.access.download.file" paramId="idJeu" paramProperty="jeuId"> |
---|
211 | <%-- html:img page="/images/utils/text.png" altKey="data.access.download.file"/--%> |
---|
212 | <i><bean:write name="nbFiles"/> |
---|
213 | <logic:equal name="nbFiles" value="1"> |
---|
214 | <bean:message key="data.access.metadata.file" arg0=""/> |
---|
215 | </logic:equal> |
---|
216 | <logic:notEqual name="nbFiles" value="1"> |
---|
217 | <bean:message key="data.access.metadata.file" arg0="s"/> |
---|
218 | </logic:notEqual> |
---|
219 | <%--logic:equal name="dateD" value="<%=dateF%>"> |
---|
220 | <bean:message arg0="<%=dateD%>" key="data.access.metadata.file.sameDate"/> |
---|
221 | </logic:equal> |
---|
222 | <logic:notEqual name="dateD" value="<%=dateF%>"> |
---|
223 | <bean:message arg0="<%=dateD%>" arg1="<%=dateF%>" key="data.access.metadata.file.differentDate"/> |
---|
224 | </logic:notEqual--%></i> |
---|
225 | </nested:link> |
---|
226 | </logic:present> |
---|
227 | </logic:greaterThan> |
---|
228 | <logic:equal name="nbFiles" value="0"> |
---|
229 | <bean:message key="data.access.files.zero"/> |
---|
230 | </logic:equal> |
---|
231 | </td></tr> |
---|
232 | </nested:equal> |
---|
233 | </nested:iterate> |
---|
234 | </table> |
---|
235 | </td></tr> |
---|
236 | </table> |
---|
237 | </nested:root> |
---|
238 | |
---|
239 | <div class="hdp" align="right"> |
---|
240 | <html:link page="/data/access/jeux.jsp" anchor="top" titleKey="app.hdp"> |
---|
241 | <html:img page="/resources/images/utils/hdp1.png"/> |
---|
242 | </html:link> |
---|
243 | </div> |
---|
244 | <%--div class="submit"> |
---|
245 | <html:link page="/data/access/access.jsp"><bean:message key="data.access"/></html:link> |
---|
246 | </div--%> |
---|
247 | |
---|
248 | </tiles:put> |
---|
249 | </tiles:insert> |
---|