Rev 975 | Rev 979 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/ak-backpath.tld" prefix="backpath" %>
<%@ taglib uri="/WEB-INF/ak-strutsx.tld" prefix="strutsx" %>
<%@ taglib uri="/WEB-INF/ak-kickup.tld" prefix="kickup" %>
<html>
<head>
<meta http-equiv="expires" content="0">
<title>Пьянка XP - Администрирование - Участники пьянки "<bean:write name="event" property="name" />"</title>
<link rel="stylesheet" type="text/css" href="<strutsx:root />/style/general.css">
<script>
function confirmDelete()
{
return confirm("Вы уверены, что хотите удалить этого участника?");
}
</script>
</head>
<body>
<h1>Пьянка XP - Администрирование - Участники пьянки "<bean:write name="event" property="name" />"</h1>
<strutsx:errorsIterator id="errors" />
<strutsx:notEmpty name="errors">
<div class="error">Ошибки:
<ul>
<logic:iterate name="errors" id="error">
<li><strutsx:message name="error" property="key" valuesProperty="values" /></li>
</logic:iterate>
</ul>
</div>
</strutsx:notEmpty>
<div style="float:right; width:200px; background-color:#EDD9F1; padding: 1em; ">
<!-- legend begin -->
<logic:empty name="event" property="price">
<div>Размер оплаты участия в этой пьянке еще не определен, поэтому статус оплаты не показан.</div>
</logic:empty>
<logic:notEmpty name="event" property="price">
<table border=0 width=100%>
<tr><th colspan=2>Легенда</th><tr>
<tr><td class="payedNone" style="width:50px;"> </td><td>Не заплатил</td></tr>
<tr><td class="payedLess"> </td><td>Недоплатил</td></tr>
<tr><td class="payedExactly"> </td><td>Все точно</td></tr>
<tr><td class="payedMore"> </td><td>Переплатил</td></tr>
<tr><td colspan=2> </td></tr>
</table>
</logic:notEmpty>
<!-- legend end -->
<table border=0 width=100%>
<tr><th colspan=2>Статистика</th><tr>
<tr><td>Всего заявок</td><td><bean:write name="event" property="participantCount" /></td></tr>
<tr><td>Всего участников</td><td><bean:write name="event" property="personCount" /></td></tr>
</table>
</div>
<table border=0 cellspacing=0 cellpadding=4>
<tr>
<th class="subHeader">Кодовый номер</th>
<th class="subHeader">Ник</th>
<th class="subHeader">e-mail</th>
<th class="subHeader">Имя</th>
<th class="subHeader">Количество</th>
<th class="subHeader">Оплачено, евро</th>
<th class="subHeader" width=50> </th>
<th class="subHeader"> </th>
<th class="subHeader"> </th>
</tr>
<logic:iterate name="participants" id="p">
<tr>
<td class="<logic:equal name="p" property="payedStatus" value="0"
>payedNull</logic:equal><logic:equal name="p" property="payedStatus" value="1"
>payedNone</logic:equal><logic:equal name="p" property="payedStatus" value="2"
>payedLess</logic:equal><logic:equal name="p" property="payedStatus" value="3"
>payedExactly</logic:equal><logic:equal name="p" property="payedStatus" value="4"
>payedMore</logic:equal>" class="listCell">
<bean:write name="p" property="ident" />
</td>
<td class="listCell">
<bean:write name="p" property="nick" />
</td>
<td class="listCell">
<a href="mailto:<bean:write name="p" property="email" />"><bean:write name="p" property="email" /></a>
</td>
<td class="listCell">
<bean:write name="p" property="name" />
</td>
<td class="listCell">
<bean:write name="p" property="persons" />
</td>
<td class="listCell">
<bean:write name="p" property="payed" format="0.00" />
</td>
<td class="listCell"> </td>
<td class="listCell">
<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>
</td>
<td class="listCell">
<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>
</td>
</tr>
</logic:iterate>
<tr>
<td colspan=9> </td>
</tr>
</table>
<div>
<backpath:link action="/admin/participant/edit" paramId="event" paramName="event" paramProperty="id"><img src="<strutsx:root />/images/add.gif" alt="Добавить участника" border=0></backpath:link>
<backpath:notEmpty><backpath:backlink><img src="<strutsx:root />/images/back-small.gif" alt="Назад" border=0></backpath:backlink></backpath:notEmpty>
</div>
<%@ include file="/admin/footer.jsp" %>
</body>
</html>