Ignore:
Timestamp:
11/21/11 15:05:30 (13 years ago)
Author:
vmipsl
Message:

refonte des pages medias

File:
1 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" %> 
    88 
    9 <tiles:insert page="/resources/templates/template.jsp" flush="true"> 
     9<tiles:insert page="/resources/templates/templateMegapoli.jsp" flush="true"> 
    1010 
    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> 
    1213 
    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> 
    2114 
    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>&nbsp;&gt; 
     18        <html:link page="/data?methodName=viewCatalogResume"><bean:message key="data.access"/></html:link>&nbsp;&gt; 
     19        <html:link page="/JeuxAccess.do"><bean:message key="data.access.jeux"/></html:link> 
     20    </tiles:put> 
    2521 
    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> 
    6324 
    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 
    8875</tiles:insert> 
Note: See TracChangeset for help on using the changeset viewer.