source: ether_megapoli/web/data/upload/newSetMails.jsp @ 89

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

Import du projet MEGAPOLI

File size: 2.3 KB
Line 
1<%@ page language="java" import="org.medias.utils.*" %>
2<%@ page import="com.medias.Context" %>
3<%@ page import="com.medias.Calcul" %>
4<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles"%>
5<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html"%>
6<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean"%>
7<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic"%>
8<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested"%>
9
10<tiles:insert page="/resources/templates/template.jsp" flush="true">
11
12        <bean:define type="java.lang.String" id="relativePath" value="<%=Context.getRelativePath(request)%>"/>
13
14        <tiles:put name="nav" value='<%=relativePath+"/nav.jsp"%>'/>
15
16        <tiles:put name="title" type="string">
17                <bean:message key="app.title"/> - <bean:message key="data.upload"/>
18        </tiles:put>
19
20        <tiles:put name="bodytitle" type="string">
21                <bean:message key="data.upload.newSet.title"/>
22        </tiles:put>
23
24        <tiles:put name="body" type="string">
25                <html:form action="/NewSetMails">
26
27                        <div id="messages">
28                                <html:messages id="mess2" property="warning" message="true">
29                                        <bean:write name="mess2"/><br/>
30                                </html:messages>
31                                <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true">
32                                        <bean:write name="mess"/>
33                                </html:messages>
34                        </div>
35                        <div id="errors"><html:errors/></div>
36               
37                        <nested:iterate property="mails" indexId="mailId">
38                                <bean:define type="java.lang.String" id="parite" value="<%=Calcul.getParite(mailId.intValue())%>"/>
39                                        <logic:equal name="parite" value="pair"><bean:define id="idP" value="pair"/></logic:equal>
40                                        <logic:equal name="parite" value="impair"><bean:define id="idP" value="impair"/></logic:equal>
41                                        <table class="${idP}">
42                                        <tr>
43                                                <th>Subject : </th>
44                                                <th><nested:write property="subject"/></th>
45                                        </tr>
46                                        <tr>
47                                                <td>From : </td>
48                                                <td><nested:write property="from"/></td>
49                                        </tr>
50                                        <tr>
51                                                <td>To : </td>
52                                                <td><nested:write property="to"/></td>
53                                        </tr>
54                                        <tr>
55                                                <td colspan="2"><nested:textarea cols="100" rows="10" property="content"/></td>
56                                        </tr>
57                                        <tr>
58                                                <td colspan="2">&nbsp;</td>
59                                        </tr>
60                                </table>
61                        </nested:iterate>
62                        <br>
63                        <div class="submit">
64                                <html:submit>OK</html:submit>
65                        </div> 
66
67                </html:form>
68                <br><br>
69        </tiles:put>
70</tiles:insert>
71       
Note: See TracBrowser for help on using the repository browser.