Changeset 259


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

refonte des pages medias

Location:
ether_megapoli/trunk/web
Files:
1 deleted
24 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> 
  • ether_megapoli/trunk/web/data/desc_parameter.jsp

    r254 r259  
    2828 
    2929        <tiles:put name="body" type="string"> 
    30                 <div id="errors"><html:errors/></div> 
     30                    <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 
     31        <div id="errors"><html:errors/></div> 
     32    </logic:present> 
     33 
    3134                <div id="messages"> 
    3235                        <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> 
  • ether_megapoli/trunk/web/data/desc_plateform.jsp

    r254 r259  
    2929 
    3030        <tiles:put name="body" type="string"> 
    31                 <div id="errors"><html:errors/></div> 
     31                    <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 
     32        <div id="errors"><html:errors/></div> 
     33    </logic:present> 
     34 
    3235                <div id="messages"> 
    3336                        <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> 
  • ether_megapoli/trunk/web/data/desc_sensor.jsp

    r254 r259  
    4141 
    4242        <tiles:put name="body" type="string"> 
    43                 <div id="errors"><html:errors/></div> 
     43                    <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 
     44        <div id="errors"><html:errors/></div> 
     45    </logic:present> 
     46 
    4447                <div id="messages"> 
    4548                        <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> 
  • ether_megapoli/trunk/web/data/jeux.jsp

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

    r161 r259  
    2323        <tiles:put name="body" type="string"> 
    2424                <bean:message key="data.authentification.intro"/> 
    25                 <div id="errors"><html:errors/></div> 
    26                 <hr/> 
     25        <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 
     26            <div id="errors"><html:errors/></div> 
     27        </logic:present> 
     28 
     29        <hr/> 
    2730                <div id="login"> 
    2831                        <html:form action="/Logon"> 
  • ether_megapoli/trunk/web/data/metadataInfo.jsp

    r254 r259  
    3434 
    3535    <bean:message key="data.access.metadata.intro"/> 
    36     <div id="errors"><html:errors/></div> 
     36    <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 
     37        <div id="errors"><html:errors/></div> 
     38    </logic:present> 
     39 
    3740 
    3841    <html:form action="/UpdateMetadata" enctype="multipart/form-data"> 
  • ether_megapoli/trunk/web/data/parameter.jsp

    r254 r259  
    2424 
    2525        <tiles:put name="body" type="string"> 
    26                  
    27                 <div id="errors"><html:errors/></div> 
    28                 <div id="messages"> 
     26 
     27        <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 
     28            <div id="errors"><html:errors/></div> 
     29        </logic:present> 
     30 
     31        <div id="messages"> 
    2932                        <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> 
    3033                                <bean:write name="mess"/> 
  • ether_megapoli/trunk/web/data/plateform.jsp

    r254 r259  
    2424 
    2525        <tiles:put name="body" type="string"> 
    26                  
    27                 <div id="errors"><html:errors/></div> 
    28                 <div id="messages"> 
     26 
     27        <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 
     28            <div id="errors"><html:errors/></div> 
     29        </logic:present> 
     30 
     31        <div id="messages"> 
    2932                        <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> 
    3033                                <bean:write name="mess"/> 
  • ether_megapoli/trunk/web/data/sensor.jsp

    r254 r259  
    2525 
    2626        <tiles:put name="body" type="string"> 
    27                  
    28                 <div id="errors"><html:errors/></div> 
    29                 <div id="messages"> 
     27 
     28        <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 
     29            <div id="errors"><html:errors/></div> 
     30        </logic:present> 
     31 
     32        <div id="messages"> 
    3033                        <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> 
    3134                                <bean:write name="mess"/> 
  • ether_megapoli/trunk/web/data/upload/metadata.jsp

    r200 r259  
    7777         
    7878                <bean:message key="data.upload.metadata.intro"/> 
    79                 <div id="errors"><html:errors/></div> 
    80                  
    81                 <ul> 
     79        <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 
     80            <div id="errors"><html:errors/></div> 
     81        </logic:present> 
     82 
     83 
     84        <ul> 
    8285                <li><a href="#presentation_gen"><bean:message key="data.upload.metadata.presentation.link"/></a></li> 
    8386                <li><a href="#desc_jeu"><bean:message key="data.upload.metadata.description.link"/></a></li> 
  • ether_megapoli/trunk/web/data/upload/newSet.jsp

    r200 r259  
    2727                        </html:messages> 
    2828                </div> 
    29                 <div id="errors"><html:errors/></div> 
    30                  
    31                 <html:form action="/NewSet"> 
     29        <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 
     30            <div id="errors"><html:errors/></div> 
     31        </logic:present> 
     32 
     33 
     34        <html:form action="/NewSet"> 
    3235                        &nbsp; 
    3336                        <nested:nest property="metadata"> 
  • ether_megapoli/trunk/web/data/upload/newSetMails.jsp

    r161 r259  
    3131                                </html:messages> 
    3232                        </div> 
    33                         <div id="errors"><html:errors/></div> 
    34                  
    35                         <nested:iterate property="mails" indexId="mailId"> 
     33            <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>"> 
     34                <div id="errors"><html:errors/></div> 
     35            </logic:present> 
     36 
     37 
     38            <nested:iterate property="mails" indexId="mailId"> 
    3639                                <bean:define type="java.lang.String" id="parite" value="<%=Calcul.getParite(mailId.intValue())%>"/> 
    3740                                        <logic:equal name="parite" value="pair"><bean:define id="idP" value="pair"/></logic:equal> 
  • ether_megapoli/trunk/web/data/upload/upload.jsp

    r200 r259  
    2828                <bean:message key="data.upload.howto" arg0="${webmaster}"/>              
    2929                <hr/> 
    30                  
    31                 <div id="errors"><html:errors/></div> 
    32                 <div id="messages"> 
     30 
     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"> 
    3336                        <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> 
    3437                                <bean:write name="mess"/> 
  • ether_megapoli/trunk/web/project/login.jsp

    r253 r259  
    2626            window.onload = function() 
    2727            { 
    28                 $( "fieldset#signin_menu" ).toggle(); 
    29                 $( ".signin" ).toggleClass( "menu-open" ); 
     28                showLogin( "<bean:message key="data.authentification.text"/>" ); 
    3029            } 
    3130        </script> 
  • ether_megapoli/trunk/web/resources/css/ether.css

    r254 r259  
    5353} 
    5454 
    55 .pair, .impair { 
    56     width: 210px; 
    57     /*padding-top: 3px;*/ 
    58     /*padding-bottom: 3px;*/ 
     55.pair:hover, .impair:hover { 
     56    -moz-border-radius: 4px 4px 4px 4px; 
     57    background: none repeat scroll 0 0 #70739C; 
     58    color: #E1DEF1; 
     59    text-decoration: none; 
    5960} 
    6061 
  • ether_megapoli/trunk/web/resources/css/megapoli.css

    r254 r259  
    161161.containerErrors { 
    162162    display: none; 
     163} 
     164 
     165.containerElement { 
     166    color: #6178BC; 
     167} 
     168 
     169.containerElement:hover { 
     170    -moz-border-radius: 4px 4px 4px 4px; 
     171    -webkit-border-radius: 4px 4px 4px 4px; 
     172    text-decoration: none; 
     173    background: #70739C; 
     174    color: #FFFFFF; 
    163175} 
    164176 
     
    278290 
    279291} 
     292 
     293.title2 { 
     294    color: #165076; 
     295    font-weight: bold; 
     296} 
     297 
     298.jeuxElement { 
     299    position: relative; 
     300    float: left; 
     301    margin-left:30px 
     302} 
  • ether_megapoli/trunk/web/resources/css/visu_parameter_by_pf.css

    r241 r259  
    66.containerParameter { 
    77    width: 250px; 
    8 } 
    9  
    10 .containerPlateform, .containerParameter { 
    11     color: #6178BC; 
    12 } 
    13  
    14 .containerPlateform:hover, .containerParameter:hover { 
    15     -moz-border-radius: 4px 4px 4px 4px; 
    16     -webkit-border-radius: 4px 4px 4px 4px; 
    17     text-decoration: none; 
    18     background: #70739C; 
    19     color: #FFFFFF; 
    208} 
    219 
  • ether_megapoli/trunk/web/resources/js/classesForJQuery/etherClasses.js

    r246 r259  
    1212//                var subItems = new ListItem( jsonElement, new Object() ); 
    1313//            else 
    14                 this.addItem( jsonElement, objectParameter ); 
     14            this.addItem( jsonElement, objectParameter ); 
    1515        }, this ) ); 
    1616    }, 
     
    4343    }, 
    4444 
    45     display : function( parentNode, idIfNoItem, textIfNoItem ) 
    46     { 
    47         if( 0 >= this.array.size() ) 
    48             this.displayNoItem( parentNode, idIfNoItem, textIfNoItem ); 
    49         else 
    50             jQuery.each( this.array, function( item ) 
    51             { 
    52                 item.jsonElement.display( parentNode ); 
    53             } ); 
    54     }, 
    55  
    56     displayWithPairImpair : function( parentNode, idIfNoItem, textIfNoItem ) 
     45    display : function( parentNode, idIfNoItem, textIfNoItem, className ) 
    5746    { 
    5847        parentNode.empty(); 
     
    6049            this.displayNoItem( parentNode, idIfNoItem, textIfNoItem ); 
    6150        else 
    62         { 
    63             var rowNumber = 0; 
    6451            jQuery.each( this.array, function( i, item ) 
    6552            { 
    66                 if( 0 == rowNumber % 2 ) 
     53                if( className ) 
     54                    item.divItem.display( parentNode, className ); 
     55                else 
     56                    item.divItem.display( parentNode ); 
     57            } ); 
     58    }, 
     59 
     60    displayWithPairImpair : function( parentNode, idIfNoItem, textIfNoItem ) 
     61    { 
     62        parentNode.empty(); 
     63        if( 0 >= this.array.length ) 
     64            this.displayNoItem( parentNode, idIfNoItem, textIfNoItem ); 
     65        else 
     66        { 
     67            jQuery.each( this.array, function( i, item ) 
     68            { 
     69                if( 0 == i % 2 ) 
    6770                    item.divItem.display( parentNode, "pair" ); 
    6871                else 
    6972                    item.divItem.display( parentNode, "impair" ); 
    70                 rowNumber++; 
    7173            } ); 
    7274        } 
  • ether_megapoli/trunk/web/resources/jsp/megapoliHead.jsp

    r253 r259  
    1414        this.isLanguageFr = <%=Context.getLangue(request).equals( "fr" )%>; 
    1515        this.path = "<%=request.getContextPath()%>"; 
     16        setPath( this.path ); 
    1617        this.webmaster = "<%=Context.getWebmaster(request)%>"; 
    1718        this.relativePageUri = <%=request.getQueryString() != null%> ? "<%=Context.getRelativePath( request )%>?<%=request.getQueryString()%>" : "<%=Context.getRelativePageURI(request)%>"; 
     
    334335} 
    335336 
     337function neededLogin( href ) 
     338{ 
     339    $( "#signin_menu" ).ready( function() 
     340    { 
     341        if( !getJSONUser() ) 
     342            showLogin( templateTexts["data.authentification.text"] ); 
     343        else 
     344            document.location.href = getPath() + href; 
     345    } ); 
     346} 
     347 
    336348/** *********************************************** **/ 
    337349/** ******************** USER ********************* **/ 
     
    346358    InterfaceTemplate.jSONUser = user; 
    347359} 
     360 
     361function getPath() 
     362{ 
     363    return InterfaceTemplate.path; 
     364} 
     365 
     366function setPath( path ) 
     367{ 
     368    InterfaceTemplate.path = path; 
     369} 
     370 
    348371</script> 
  • ether_megapoli/trunk/web/src/ApplicationResources.properties

    r251 r259  
    269269data.access.metadata.presentation.contact.role.scientifique=Responsable scientifique 
    270270data.access.metadata.presentation.contact.role.technique=Responsable technique 
     271data.access.metadata.files=fichier(s) d'origine 
    271272data.access.metadata.file=fichier{0} d'origine 
    272273data.access.metadata.file2=fichier{0} valid\u00E9{0} 
  • ether_megapoli/trunk/web/src/ApplicationResources_en.properties

    r251 r259  
    269269data.access.metadata.presentation.contact.role.scientifique=Principal investigator 
    270270data.access.metadata.presentation.contact.role.technique=Technical manager 
     271data.access.metadata.files=original file(s) 
    271272data.access.metadata.file=original file{0} 
    272273data.access.metadata.file2=file{0} validated 
     
    429430errors.access.date.bigger=You must enter a begin date greater or equal than the end date 
    430431errors.access.failed.sel=You must select at least 1 parameter or 1 sensor or 1 platform or 1 data set 
    431 errors.access.novalues=No  download possible 
     432errors.access.novalues=No download possible 
    432433errors.access.login=You lost your session, please click on "Data access" to enter again your login and your password. 
    433434 
  • ether_megapoli/trunk/web/visualization/visu_parameter_by_pf-classes.jsp

    r246 r259  
    2828        display : function( parentNode, className ) 
    2929        { 
    30             this.createContainer( "containerPlateform", "containerPlateform " + className ); 
     30            if( className ) 
     31                this.createContainer( "containerPlateform", "containerElement " + className ); 
     32            else 
     33                this.createContainer( "containerPlateform", "containerElement" ); 
    3134            this.addName( "plateform_name" ); 
    3235            this.appendContainer( parentNode ); 
     
    4952        display : function( parentNode, className ) 
    5053        { 
    51             this.createContainer( "containerParameter", "containerParameter " + className ); 
     54            if( className ) 
     55                this.createContainer( "containerParameter", "containerElement " + className ); 
     56            else 
     57                this.createContainer( "containerParameter", "containerElement"); 
    5258            this.addNameWithMenus( "parameter_name" ); 
    5359            this.appendContainer( parentNode ); 
  • ether_megapoli/trunk/web/visualization/visu_parameter_by_pf-script.jsp

    r251 r259  
    166166        this.plateforms.addOpenListener( jQuery.proxy( this.onSelectPlateform, this ) ); 
    167167        this.loadingPlateforms.hide(); 
    168         this.plateforms.displayWithPairImpair( this.containerPlateforms, "NoPlateform", interfaceTexts["data.visualization.noPlateform"] ); 
     168        this.plateforms.display( this.containerPlateforms, "NoPlateform", interfaceTexts["data.visualization.noPlateform"] ); 
    169169 
    170170        // Select the first plateform by default 
     
    183183        this.parameters.addOpenListener( jQuery.proxy( this.onSelectParameter, this ) ); 
    184184        this.loadingParameters.hide(); 
    185         this.parameters.displayWithPairImpair( this.containerParameters, "NoParameter", interfaceTexts["data.visualization.noParameter"] ); 
     185        this.parameters.display( this.containerParameters, "NoParameter", interfaceTexts["data.visualization.noParameter"], "containerParameter" ); 
    186186    }, 
    187187 
Note: See TracChangeset for help on using the changeset viewer.