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