source: ether_megapoli/trunk/web/data/access/files.jsp @ 200

Last change on this file since 200 was 200, checked in by vmipsl, 13 years ago

Livraison _ confs + extrations path /resources + visualisation images/bouton

File size: 3.4 KB
Line 
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"%>
8
9<tiles:insert page="/resources/templates/template.jsp" flush="true">
10
11        <bean:define type="java.lang.String" id="relativePath" value="<%=Context.getRelativePath(request)%>"/>
12
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
22        <tiles:put name="bodytitle" type="string">
23                <bean:message arg0="${nomJeu}" key="data.access.files"/>
24        </tiles:put>
25
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>
63
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       
88</tiles:insert>
Note: See TracBrowser for help on using the repository browser.