/kickup/tags/release-1.0/webapp/admin/participant/list.jsp |
---|
0,0 → 1,124 |
<%@ 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;"> </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>" style="border-bottom: 1px solid #C0C0C0; "> |
<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> |
/kickup/tags/release-1.0/webapp/admin/participant/edit.jsp |
---|
0,0 → 1,146 |
<%@ 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" %> |
<!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"> |
</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> |
<html:form action="/admin/participant/submit"> |
<backpath:current /> |
<html:hidden property="id" /> |
<html:hidden property="event" /> |
<table border=0 cellspacing=0 cellpadding=4> |
<tr class="even"> |
<th>Кодовый номер</th> |
<td colspan=2 width=300><bean:write name="participant" property="ident" /> </td> |
</tr> |
<tr class="odd"> |
<th>Ник</th> |
<td colspan=2><html:text property="nick" style="width:100%" maxlength="255" /></td> |
</tr> |
<tr class="even"> |
<th>e-mail</th> |
<td colspan=2><html:text property="email" style="width:100%" maxlength="255" /></td> |
</tr> |
<tr class="odd"> |
<th>Показ e-mail разрешен</th> |
<td colspan=2><html:checkbox property="emailPublic" /></td> |
</tr> |
<tr class="even"> |
<th>Имя</th> |
<td colspan=2><html:text property="name" style="width:100%" maxlength="255" /></td> |
</tr> |
<tr class="odd"> |
<th>Телефон</th> |
<td colspan=2><html:text property="phone" style="width:100%" maxlength="255" /></td> |
</tr> |
<tr class="even"> |
<th>Количество человек</th> |
<td colspan=2><html:text property="persons" style="width:100%" maxlength="10" /></td> |
</tr> |
<tr class="odd"> |
<th>Выезд из PLZ</th> |
<td colspan=2><html:text property="fromZip" style="width:100%" maxlength="10" /></td> |
</tr> |
<tr class="even"> |
<th>Выезд из города</th> |
<td colspan=2><html:text property="fromCity" style="width:100%" maxlength="100" /></td> |
</tr> |
<tr class="odd"> |
<th>Время отправления</th> |
<td colspan=2><html:text property="departure" style="width:100%" maxlength="100" /></td> |
</tr> |
<tr class="even"> |
<th>Свободных мест в машине</th> |
<td colspan=2><html:text property="freeTransport" style="width:100%" maxlength="10" /></td> |
</tr> |
<tr class="odd"> |
<th>Условия транспортировки</th> |
<td colspan=2><html:textarea property="transportComment" cols="40" rows="8" style="width:100%" /></td> |
</tr> |
<tr class="even"> |
<th>Свободных спальных мест</th> |
<td colspan=2><html:text property="freeSleep" style="width:100%" maxlength="10" /></td> |
</tr> |
<tr class="odd"> |
<th>Условия ночевки</th> |
<td colspan=2><html:textarea property="sleepComment" cols="40" rows="8" style="width:100%" /></td> |
</tr> |
<tr class="even"> |
<th>Дополнительная информация</th> |
<td colspan=2><html:textarea property="comment" cols="40" rows="8" style="width:100%" /></td> |
</tr> |
<tr class="odd"> |
<th>Оплачено, евро</th> |
<td><html:text property="payed" style="width:100%" maxlength="10" /></td> |
<td> |
<logic:notEmpty name="participant" property="mustPay"> |
(должен заплатить: <bean:write name="participant" property="mustPay" format="0.00" />) |
</logic:notEmpty> |
</td> |
</tr> |
<tr class="even"> |
<th>Комментарии организаторов</th> |
<td colspan=2><html:textarea property="privateComment" cols="40" rows="8" style="width:100%" /></td> |
</tr> |
<logic:notEmpty name="actList" property="objects"> |
<tr> |
<th colspan=3><div class="smallHeader">Участвует в</div></th> |
</tr> |
<tr> |
<td class="subHeader">Название</td> |
<td class="subHeader">Включить</td> |
<td class="subHeader">Дополнительно</td> |
</tr> |
<logic:iterate name="ParticipantEditForm" property="acts" id="acts" indexId="iid"> |
<tr> |
<td> |
<bean:write name="actList" property='<%= "objects[" + iid + "].act.name" %>' /> |
<html:hidden name="acts" property="actId" indexed="true" /> |
</td> |
<td><html:checkbox name="acts" property="selected" indexed="true" /></td> |
<td><html:text name="acts" property="comment" indexed="true" style="width:100%" /></td> |
</tr> |
</logic:iterate> |
</logic:notEmpty> |
<tr> |
<td colspan=3> |
<html:submit>Сохранить</html:submit> |
<backpath:notEmpty><backpath:backlink>Отменить</backpath:backlink></backpath:notEmpty> |
</td> |
</tr> |
</table> |
</html:form> |
<%@ include file="/admin/footer.jsp" %> |
</body> |
</html> |