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 | |
---|
9 | <tiles:insert page="/resources/templates/templateMegapoli.jsp" flush="true"> |
---|
10 | |
---|
11 | <tiles:put name="insertCss" type="string"></tiles:put> |
---|
12 | <tiles:put name="insertJsOrJsp" type="string"></tiles:put> |
---|
13 | |
---|
14 | |
---|
15 | <tiles:put name="title" type="string"><bean:message key="app.title"/> - <bean:message key="data.access.files"/></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> |
---|
21 | |
---|
22 | <%--****************** CONTENT ****************** --%> |
---|
23 | <tiles:put name="bodytitle" type="string"><bean:message key="data.access.files"/></tiles:put> |
---|
24 | |
---|
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 | <% path = path.replaceAll( "\\+", "%2B" ); %> |
---|
30 | |
---|
31 | <tiles:put name="body" type="string"> |
---|
32 | <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> |
---|
33 | <div id="errors"><html:errors/></div> |
---|
34 | </logic:present> |
---|
35 | |
---|
36 | <div id="messages"> |
---|
37 | <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> |
---|
38 | <bean:write name="mess"/> |
---|
39 | </html:messages> |
---|
40 | </div> |
---|
41 | |
---|
42 | <div class="title2" style="float:left"> |
---|
43 | <nested:size id="nbFiles" property="fichiers"/> |
---|
44 | <bean:write name="nbFiles"/> |
---|
45 | <logic:equal name="nbFiles" value="1"><bean:message key="data.access.files3"/></logic:equal> |
---|
46 | <logic:notEqual name="nbFiles" value="1"><bean:message key="data.access.files3" arg0="s"/></logic:notEqual> |
---|
47 | </div> |
---|
48 | |
---|
49 | <div style="float:right"> |
---|
50 | <a onclick='javascript:neededLogin("/ZipGame.do?path=<%=path%>")' title='<bean:message key="data.access.downloading"/>'> |
---|
51 | <html:img page="/resources/images/utils/text.png" alt="file"/> |
---|
52 | <bean:message arg0="${nomJeu}" key="data.access.files.dowload.zip"/> |
---|
53 | </a> |
---|
54 | </div> |
---|
55 | <BR/><BR/> |
---|
56 | |
---|
57 | <nested:iterate property="fichiers" indexId="fId"> |
---|
58 | <div> |
---|
59 | <nested:define id="file" property="fichierNom"/> |
---|
60 | <bean:define id="pathFile" value="${path}/${file}"/> |
---|
61 | <% pathFile = pathFile.replaceAll( "\\+", "%2B" ); %> |
---|
62 | |
---|
63 | <a onclick='javascript:neededLogin("/SendFileToClient.do?path=<%=pathFile%>")' title='<bean:message key="data.access.downloading"/>'> |
---|
64 | <html:img page="/resources/images/utils/text.png" alt="file"/> |
---|
65 | <nested:write property="fichierNom"/> |
---|
66 | </a> |
---|
67 | </div> |
---|
68 | </nested:iterate> |
---|
69 | |
---|
70 | <div class="hdp" align="right"> |
---|
71 | <html:link href="#top" titleKey="app.hdp"> |
---|
72 | <html:img page="/resources/images/utils/fleche_haut.gif" width="20px" height="20px"/> |
---|
73 | </html:link> |
---|
74 | </div> |
---|
75 | </tiles:put> |
---|
76 | </nested:root> |
---|
77 | |
---|
78 | </tiles:insert> |
---|