source: ether_statistics/web/data/jeux.jsp @ 569

Last change on this file since 569 was 569, checked in by vmipsl, 12 years ago

Nouveau projet

File size: 7.8 KB
Line 
1<%@ page language="java" contentType="text/html; charset=UTF-8" %>
2<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
3<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
4<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
5<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
6<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %>
7
8<tiles:insert page="/resources/templates/templateMegapoli.jsp" flush="true">
9
10    <tiles:put name="insertCss" type="string"></tiles:put>
11    <tiles:put name="insertJsOrJsp" type="string"></tiles:put>
12
13
14    <tiles:put name="title" type="string"><bean:message key="app.title"/> - <bean:message key="data.access.jeux"/></tiles:put>
15    <tiles:put name="nav" type="string">
16        <html:link page="/index.jsp"><bean:message key="app.home"/></html:link>&nbsp;&gt;
17        <html:link page="/data?methodName=viewCatalogResume"><bean:message key="data.access"/></html:link>&nbsp;&gt;
18        <html:link page="/JeuxAccess.do"><bean:message key="data.access.jeux"/></html:link>
19    </tiles:put>
20
21    <%--****************** CONTENT ****************** --%>
22    <tiles:put name="bodytitle" type="string"><bean:message key="data.access.jeux"/></tiles:put>
23
24    <tiles:put name="body" type="string">
25        <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>">
26            <div id="errors"><html:errors/></div>
27        </logic:present>
28
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>
34
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">&nbsp;
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"/>&nbsp;<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">&nbsp;
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"/>&nbsp;<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">&nbsp;
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"/>&nbsp;<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>
156
157    </tiles:put>
158</tiles:insert>
Note: See TracBrowser for help on using the repository browser.