Rev 992 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 992 | Rev 1003 | ||
---|---|---|---|
1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
2 | <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> |
2 | <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> |
3 | <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> |
3 | <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> |
4 | <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> |
4 | <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> |
5 | <%@ taglib uri="/WEB-INF/ak-backpath.tld" prefix="backpath" %> |
5 | <%@ taglib uri="/WEB-INF/ak-backpath.tld" prefix="backpath" %> |
6 | <%@ taglib uri="/WEB-INF/ak-strutsx.tld" prefix="strutsx" %> |
6 | <%@ taglib uri="/WEB-INF/ak-strutsx.tld" prefix="strutsx" %> |
7 | <%@ taglib uri="/WEB-INF/ak-kickup.tld" prefix="kickup" %> |
7 | <%@ taglib uri="/WEB-INF/ak-kickup.tld" prefix="kickup" %> |
8 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
8 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
9 | <html> |
9 | <html> |
10 | 10 | ||
11 | <head> |
11 | <head> |
12 | <meta http-equiv="expires" content="0"> |
12 | <meta http-equiv="expires" content="0"> |
13 | <title>Пьянка XP - Администрирование - Участники пьянки "<bean:write name="event" property="name" />"</title> |
13 | <title>Пьянка XP - Администрирование - Участники пьянки "<bean:write name="event" property="name" />"</title> |
14 | <link rel="stylesheet" type="text/css" href="<strutsx:root />/style/general.css"> |
14 | <link rel="stylesheet" type="text/css" href="<strutsx:root />/style/general.css"> |
15 | <script type="text/javascript"> |
15 | <script type="text/javascript"> |
16 | function confirmDelete() |
16 | function confirmDelete() |
17 | { |
17 | { |
18 | return confirm("Вы уверены, что хотите удалить этого участника?"); |
18 | return confirm("Вы уверены, что хотите удалить этого участника?"); |
19 | } |
19 | } |
20 | </script> |
20 | </script> |
21 | </head> |
21 | </head> |
22 | 22 | ||
23 | <body> |
23 | <body> |
24 | 24 | ||
25 | <h1>Пьянка XP - Администрирование - Участники пьянки "<bean:write name="event" property="name" />"</h1> |
25 | <h1>Пьянка XP - Администрирование - Участники пьянки "<bean:write name="event" property="name" />"</h1> |
26 | 26 | ||
27 | <strutsx:errorsIterator id="errors" /> |
27 | <strutsx:errorsIterator id="errors" /> |
28 | <strutsx:notEmpty name="errors"> |
28 | <strutsx:notEmpty name="errors"> |
29 | <div class="error">Ошибки: |
29 | <div class="error">Ошибки: |
30 | <ul> |
30 | <ul> |
31 | <logic:iterate name="errors" id="error"> |
31 | <logic:iterate name="errors" id="error"> |
32 | <li><strutsx:message name="error" property="key" valuesProperty="values" /></li> |
32 | <li><strutsx:message name="error" property="key" valuesProperty="values" /></li> |
33 | </logic:iterate> |
33 | </logic:iterate> |
34 | </ul> |
34 | </ul> |
35 | </div> |
35 | </div> |
36 | </strutsx:notEmpty> |
36 | </strutsx:notEmpty> |
37 | 37 | ||
38 | <div style="float:right; width:200px; background-color:#EDD9F1; padding: 1em; "> |
38 | <div style="float:right; width:200px; background-color:#EDD9F1; padding: 1em; "> |
39 | <!-- legend begin --> |
39 | <!-- legend begin --> |
40 | <logic:empty name="event" property="price"> |
40 | <logic:empty name="event" property="price"> |
41 | <div>Размер оплаты участия в этой пьянке еще не определен, поэтому статус оплаты не показан.</div> |
41 | <div>Размер оплаты участия в этой пьянке еще не определен, поэтому статус оплаты не показан.</div> |
42 | </logic:empty> |
42 | </logic:empty> |
43 | <logic:notEmpty name="event" property="price"> |
43 | <logic:notEmpty name="event" property="price"> |
44 | <table border=0 width="100%"> |
44 | <table border=0 width="100%"> |
45 | <tr><th colspan=2>Легенда</th></tr> |
45 | <tr><th colspan=2>Легенда</th></tr> |
46 | <tr><td class="payedNone" style="width:50px;"> </td><td>Не заплатил</td></tr> |
46 | <tr><td class="payedNone" style="width:50px;"> </td><td>Не заплатил</td></tr> |
47 | <tr><td class="payedLess"> </td><td>Недоплатил</td></tr> |
47 | <tr><td class="payedLess"> </td><td>Недоплатил</td></tr> |
48 | <tr><td class="payedExactly"> </td><td>Все точно</td></tr> |
48 | <tr><td class="payedExactly"> </td><td>Все точно</td></tr> |
49 | <tr><td class="payedMore"> </td><td>Переплатил</td></tr> |
49 | <tr><td class="payedMore"> </td><td>Переплатил</td></tr> |
50 | <tr><td colspan=2> </td></tr> |
50 | <tr><td colspan=2> </td></tr> |
51 | </table> |
51 | </table> |
52 | </logic:notEmpty> |
52 | </logic:notEmpty> |
53 | <!-- legend end --> |
53 | <!-- legend end --> |
54 | 54 | ||
55 | <table border=0 width="100%"> |
55 | <table border=0 width="100%"> |
56 | <tr><th colspan=2>Статистика</th></tr> |
56 | <tr><th colspan=2>Статистика</th></tr> |
57 | <tr><td>Всего заявок</td><td><bean:write name="event" property="participantCount" /></td></tr> |
57 | <tr><td>Всего заявок</td><td><bean:write name="event" property="participantCount" /></td></tr> |
58 | <tr><td>Всего участников</td><td><bean:write name="event" property="personCount" /></td></tr> |
58 | <tr><td>Всего участников</td><td><bean:write name="event" property="personCount" /></td></tr> |
59 | </table> |
59 | </table> |
60 | </div> |
60 | </div> |
61 | 61 | ||
62 | <table border=0 cellspacing=0 cellpadding=4> |
62 | <table border=0 cellspacing=0 cellpadding=4> |
63 | <tr> |
63 | <tr> |
64 | <th class="subHeader">Кодовый номер</th> |
64 | <th class="subHeader">Кодовый номер</th> |
65 | <th class="subHeader">Ник</th> |
65 | <th class="subHeader">Ник</th> |
66 | <th class="subHeader">e-mail</th> |
66 | <th class="subHeader">e-mail</th> |
67 | <th class="subHeader">Имя</th> |
67 | <th class="subHeader">Имя</th> |
68 | <th class="subHeader">Количество</th> |
68 | <th class="subHeader">Количество</th> |
69 | <th class="subHeader">Оплачено, евро</th> |
69 | <th class="subHeader">Оплачено, евро</th> |
70 | <th class="subHeader" width=50> </th> |
70 | <th class="subHeader" width=50> </th> |
71 | <th class="subHeader"> </th> |
71 | <th class="subHeader"> </th> |
72 | <th class="subHeader"> </th> |
72 | <th class="subHeader"> </th> |
73 | </tr> |
73 | </tr> |
74 | 74 | ||
75 | <logic:iterate name="participants" id="p"> |
75 | <logic:iterate name="participants" id="p"> |
76 | <tr> |
76 | <tr> |
77 | <td class="<logic:equal name="p" property="payedStatus" value="0" |
77 | <td class="<logic:equal name="p" property="payedStatus" value="0" |
78 | >payedNull</logic:equal><logic:equal name="p" property="payedStatus" value="1" |
78 | >payedNull</logic:equal><logic:equal name="p" property="payedStatus" value="1" |
79 | >payedNone</logic:equal><logic:equal name="p" property="payedStatus" value="2" |
79 | >payedNone</logic:equal><logic:equal name="p" property="payedStatus" value="2" |
80 | >payedLess</logic:equal><logic:equal name="p" property="payedStatus" value="3" |
80 | >payedLess</logic:equal><logic:equal name="p" property="payedStatus" value="3" |
81 | >payedExactly</logic:equal><logic:equal name="p" property="payedStatus" value="4" |
81 | >payedExactly</logic:equal><logic:equal name="p" property="payedStatus" value="4" |
82 | >payedMore</logic:equal>" style="border-bottom: 1px solid #C0C0C0; "> |
82 | >payedMore</logic:equal>" style="border-bottom: 1px solid #C0C0C0; "> |
83 | <bean:write name="p" property="ident" /> |
83 | <bean:write name="p" property="ident" /> |
84 | </td> |
84 | </td> |
85 | <td class="listCell"> |
85 | <td class="listCell"> |
86 | <bean:write name="p" property="nick" /> |
86 | <bean:write name="p" property="nick" /> |
87 | </td> |
87 | </td> |
88 | <td class="listCell"> |
88 | <td class="listCell"> |
89 | <a href="mailto:<bean:write name="p" property="email" />"><bean:write name="p" property="email" /></a> |
89 | <a href="mailto:<bean:write name="p" property="email" />"><bean:write name="p" property="email" /></a> |
90 | </td> |
90 | </td> |
91 | <td class="listCell"> |
91 | <td class="listCell"> |
92 | <bean:write name="p" property="name" /> |
92 | <bean:write name="p" property="name" /> |
93 | </td> |
93 | </td> |
94 | <td class="listCell"> |
94 | <td class="listCell"> |
95 | <bean:write name="p" property="persons" /> |
95 | <bean:write name="p" property="persons" /> |
96 | </td> |
96 | </td> |
97 | <td class="listCell"> |
97 | <td class="listCell"> |
98 | <bean:write name="p" property="payed" format="0.00" /> |
98 | <bean:write name="p" property="payed" format="0.00" /> |
99 | </td> |
99 | </td> |
100 | 100 | ||
101 | <td class="listCell"> </td> |
101 | <td class="listCell"> </td> |
102 | <td class="listCell"> |
102 | <td class="listCell"> |
103 | <kickup:link action="/admin/participant/edit" paramId="id" paramName="p" paramProperty="id" paramId2="event" paramName2="event" paramProperty2="id" backpath="true"><img src="<strutsx:root />/images/edit.gif" alt="Редактировать" border=0></kickup:link> |
103 | <kickup:link action="/admin/participant/edit" paramId="id" paramName="p" paramProperty="id" paramId2="event" paramName2="event" paramProperty2="id" backpath="true"><img src="<strutsx:root />/images/edit.gif" alt="Редактировать" border=0></kickup:link> |
104 | </td> |
104 | </td> |
105 | <td class="listCell"> |
105 | <td class="listCell"> |
106 | <backpath:link action="/admin/participant/delete" paramId="id" paramName="p" paramProperty="id" onclick="return confirmDelete();"><img src="<strutsx:root />/images/delete.gif" alt="Удалить" border=0></backpath:link> |
106 | <backpath:link action="/admin/participant/delete" paramId="id" paramName="p" paramProperty="id" onclick="return confirmDelete();"><img src="<strutsx:root />/images/delete.gif" alt="Удалить" border=0></backpath:link> |
107 | </td> |
107 | </td> |
108 | </tr> |
108 | </tr> |
109 | </logic:iterate> |
109 | </logic:iterate> |
110 | <tr> |
110 | <tr> |
111 | <td colspan=9> </td> |
111 | <td colspan=9> </td> |
112 | </tr> |
112 | </tr> |
113 | </table> |
113 | </table> |
114 | 114 | ||
115 | <div> |
115 | <div> |
116 | <backpath:link action="/admin/participant/edit" paramId="event" paramName="event" paramProperty="id"><img src="<strutsx:root />/images/add.gif" alt="Добавить участника" border=0></backpath:link> |
116 | <backpath:link action="/admin/participant/edit" paramId="event" paramName="event" paramProperty="id"><img src="<strutsx:root />/images/add.gif" alt="Добавить участника" border=0></backpath:link> |
117 | <backpath:notEmpty><backpath:backlink><img src="<strutsx:root />/images/back-small.gif" alt="Назад" border=0></backpath:backlink></backpath:notEmpty> |
117 | <backpath:notEmpty><backpath:backlink><img src="<strutsx:root />/images/back-small.gif" alt="Назад" border=0></backpath:backlink></backpath:notEmpty> |
118 | </div> |
118 | </div> |
119 | 119 | ||
120 | <%@ include file="/admin/footer.jsp" %> |
120 | <%@ include file="/admin/footer.jsp" %> |
121 | 121 | ||
122 | </body> |
122 | </body> |
123 | 123 | ||
124 | </html> |
124 | </html> |