Subversion Repositories general

Rev

Rev 990 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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