Rev 975 | Rev 979 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
9 | dev | 1 | <%@ 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-logic.tld" prefix="logic" %> |
||
4 | <%@ 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-strutsx.tld" prefix="strutsx" %> |
||
16 | dev | 7 | <%@ taglib uri="/WEB-INF/ak-kickup.tld" prefix="kickup" %> |
9 | dev | 8 | <html> |
9 | |||
10 | <head> |
||
11 | <meta http-equiv="expires" content="0"> |
||
10 | dev | 12 | <title>Пьянка XP - Администрирование - Участники пьянки "<bean:write name="event" property="name" />"</title> |
9 | dev | 13 | <link rel="stylesheet" type="text/css" href="<strutsx:root />/style/general.css"> |
972 | dev | 14 | <script> |
15 | function confirmDelete() |
||
16 | { |
||
17 | return confirm("Вы уверены, что хотите удалить этого участника?"); |
||
18 | } |
||
19 | </script> |
||
9 | dev | 20 | </head> |
21 | |||
22 | <body> |
||
23 | |||
10 | dev | 24 | <h1>Пьянка XP - Администрирование - Участники пьянки "<bean:write name="event" property="name" />"</h1> |
9 | dev | 25 | |
26 | <strutsx:errorsIterator id="errors" /> |
||
27 | <strutsx:notEmpty name="errors"> |
||
10 | dev | 28 | <div class="error">Ошибки: |
9 | dev | 29 | <ul> |
30 | <logic:iterate name="errors" id="error"> |
||
31 | <li><strutsx:message name="error" property="key" valuesProperty="values" /></li> |
||
32 | </logic:iterate> |
||
33 | </ul> |
||
34 | </div> |
||
35 | </strutsx:notEmpty> |
||
36 | |||
972 | dev | 37 | <div style="float:right; width:200px; background-color:#EDD9F1; padding: 1em; "> |
38 | <!-- legend begin --> |
||
39 | <logic:empty name="event" property="price"> |
||
40 | <div>Размер оплаты участия в этой пьянке еще не определен, поэтому статус оплаты не показан.</div> |
||
41 | </logic:empty> |
||
42 | <logic:notEmpty name="event" property="price"> |
||
43 | <table border=0 width=100%> |
||
44 | <tr><th colspan=2>Легенда</th><tr> |
||
45 | <tr><td class="payedNone" style="width:50px;"> </td><td>Не заплатил</td></tr> |
||
46 | <tr><td class="payedLess"> </td><td>Недоплатил</td></tr> |
||
47 | <tr><td class="payedExactly"> </td><td>Все точно</td></tr> |
||
48 | <tr><td class="payedMore"> </td><td>Переплатил</td></tr> |
||
49 | <tr><td colspan=2> </td></tr> |
||
50 | </table> |
||
51 | </logic:notEmpty> |
||
52 | <!-- legend end --> |
||
53 | |||
54 | <table border=0 width=100%> |
||
55 | <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="personCount" /></td></tr> |
||
58 | </table> |
||
969 | dev | 59 | </div> |
60 | |||
972 | dev | 61 | <table border=0 cellspacing=0 cellpadding=4> |
9 | dev | 62 | <tr> |
972 | dev | 63 | <th class="subHeader">Кодовый номер</th> |
64 | <th class="subHeader">Ник</th> |
||
65 | <th class="subHeader">e-mail</th> |
||
66 | <th class="subHeader">Имя</th> |
||
67 | <th class="subHeader">Количество</th> |
||
68 | <th class="subHeader">Оплачено, евро</th> |
||
69 | <th class="subHeader" width=50> </th> |
||
70 | <th class="subHeader"> </th> |
||
71 | <th class="subHeader"> </th> |
||
9 | dev | 72 | </tr> |
73 | |||
74 | <logic:iterate name="participants" id="p"> |
||
972 | dev | 75 | <tr> |
76 | <td class="<logic:equal name="p" property="payedStatus" value="0" |
||
969 | dev | 77 | >payedNull</logic:equal><logic:equal name="p" property="payedStatus" value="1" |
78 | >payedNone</logic:equal><logic:equal name="p" property="payedStatus" value="2" |
||
79 | >payedLess</logic:equal><logic:equal name="p" property="payedStatus" value="3" |
||
80 | >payedExactly</logic:equal><logic:equal name="p" property="payedStatus" value="4" |
||
973 | dev | 81 | >payedMore</logic:equal>" class="listCell"> |
972 | dev | 82 | <bean:write name="p" property="ident" /> |
9 | dev | 83 | </td> |
973 | dev | 84 | <td class="listCell"> |
972 | dev | 85 | <bean:write name="p" property="nick" /> |
9 | dev | 86 | </td> |
973 | dev | 87 | <td class="listCell"> |
972 | dev | 88 | <a href="mailto:<bean:write name="p" property="email" />"><bean:write name="p" property="email" /></a> |
89 | </td> |
||
973 | dev | 90 | <td class="listCell"> |
972 | dev | 91 | <bean:write name="p" property="name" /> |
92 | </td> |
||
973 | dev | 93 | <td class="listCell"> |
972 | dev | 94 | <bean:write name="p" property="persons" /> |
95 | </td> |
||
973 | dev | 96 | <td class="listCell"> |
972 | dev | 97 | <bean:write name="p" property="payed" format="0.00" /> |
98 | </td> |
||
99 | |||
973 | dev | 100 | <td class="listCell"> </td> |
101 | <td class="listCell"> |
||
976 | dev | 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> |
972 | dev | 103 | </td> |
973 | dev | 104 | <td class="listCell"> |
972 | dev | 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 | </td> |
||
9 | dev | 107 | </tr> |
108 | </logic:iterate> |
||
972 | dev | 109 | <tr> |
110 | <td colspan=9> </td> |
||
111 | </tr> |
||
9 | dev | 112 | </table> |
113 | |||
972 | dev | 114 | <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:notEmpty><backpath:backlink><img src="<strutsx:root />/images/back-small.gif" alt="Назад" border=0></backpath:backlink></backpath:notEmpty> |
||
117 | </div> |
||
19 | dev | 118 | |
975 | dev | 119 | <%@ include file="/admin/footer.jsp" %> |
120 | |||
9 | dev | 121 | </body> |
122 | |||
123 | </html> |