Subversion Repositories general

Rev

Rev 992 | 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" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<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 type="text/javascript">
                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;">&nbsp;</td><td>Не заплатил</td></tr>
                <tr><td class="payedLess">&nbsp;</td><td>Недоплатил</td></tr>
                <tr><td class="payedExactly">&nbsp;</td><td>Все точно</td></tr>
                <tr><td class="payedMore">&nbsp;</td><td>Переплатил</td></tr>
                <tr><td colspan=2>&nbsp;</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">Оплачено, евро</th>
                <th class="subHeader" width=50>&nbsp;</th>
                <th class="subHeader">&nbsp;</th>
                <th class="subHeader">&nbsp;</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>" style="border-bottom: 1px solid #C0C0C0; ">
                                <bean:write name="p" property="ident"   />
                </td>
                <td class="listCell">
                        <bean:write name="p" property="nick"    />&nbsp;
                </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"    />&nbsp;
                </td>
                <td class="listCell">
      <bean:write name="p" property="fromCity" />&nbsp;
    </td>
    <td class="listCell">
      <bean:write name="p" property="persons"  />&nbsp;
                </td>
                <td class="listCell">
                        <bean:write name="p" property="payed" format="0.00" />&nbsp;
                </td>

                <td class="listCell">&nbsp;</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>&nbsp;</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>