Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 990 → Rev 1003

/kickup/tags/release-1.0/webapp/admin/event/edit.jsp
0,0 → 1,153
<%@ 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 - Администрирование - Редактирование пьянки</title>
<link rel="stylesheet" type="text/css" href="<strutsx:root />/style/general.css">
</head>
 
<body>
 
<h1>Пьянка XP - Администрирование - Редактирование пьянки</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/event/submit">
<backpath:current />
<html:hidden property="id" />
 
<table border=0 cellspacing=0 cellpadding=4>
<tr class="even">
<th>Название</th>
<td colspan=3><html:text property="name" style="width:100%" maxlength="255" /></td>
</tr>
<tr class="odd">
<th>Контактный e-mail</th>
<td colspan=3><html:text property="email" style="width:100%" maxlength="255" /></td>
</tr>
<tr class="even">
<th>Организаторы</th>
<td colspan=3><html:text property="admins" style="width:100%" maxlength="255" /></td>
</tr>
<tr class="odd">
<th>Контактные телефоны</th>
<td colspan=3><html:text property="phones" style="width:100%" maxlength="255" /></td>
</tr>
<tr class="even">
<th>Место/город</th>
<td colspan=3><html:text property="place" style="width:100%" maxlength="255" /></td>
</tr>
<tr class="odd">
<th>Точный адрес</th>
<td colspan=3><html:textarea property="address" cols="40" cols="40" rows="8" style="width:100%" /></td>
</tr>
<tr class="even">
<th>Описание проезда</th>
<td colspan=3><html:textarea property="transport" cols="40" rows="8" style="width:100%" /></td>
</tr>
<tr class="odd">
<th>Начало</th>
<td colspan=3><html:text property="start" style="width:100%" maxlength="100" /></td>
</tr>
<tr class="even">
<th>Окончание</th>
<td colspan=3><html:text property="stop" style="width:100%" maxlength="100" /></td>
</tr>
<tr class="odd">
<th>Дата окончания регистрации</th>
<td colspan=3><html:text property="lastreg" style="width:100%" maxlength="100" /></td>
</tr>
<tr class="even">
<th>Последний срок отказа</th>
<td colspan=3><html:text property="lastunreg" style="width:100%" maxlength="100" /></td>
</tr>
<tr class="odd">
<th>Цена с человека</th>
<td colspan=3><html:text property="price" style="width:100%" maxlength="10" /></td>
</tr>
<tr class="even">
<th>Счет для перевода денег</th>
<td colspan=3><html:textarea property="account" cols="40" rows="8" style="width:100%" /></td>
</tr>
<tr class="odd">
<th>Открыть доступ</th>
<td colspan=3><html:checkbox property="enabled" /></td>
</tr>
<tr class="even">
<th>Описание</th>
<td colspan=3><html:textarea property="comment" cols="40" rows="8" style="width:100%" /></td>
</tr>
 
<tr>
<th colspan=4><div class="smallHeader">Планируемые мероприятия</div></th>
</tr>
<tr>
<td class="subHeader">Название</td>
<td class="subHeader">Включить</td>
<td class="subHeader">Дополнительная информация</td>
<td class="subHeader">&nbsp;</td>
</tr>
<logic:iterate name="EventEditForm" property="acts" id="acts" indexId="iid">
<tr>
<td>
<bean:write name="actList" property='<%= "objects[" + iid + "].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>
<td>&nbsp;</td>
</tr>
</logic:iterate>
 
<tr>
<th colspan=4><div class="smallHeader">Ближайшие гостиницы</div></th>
</tr>
<tr>
<td class="subHeader">Название</td>
<td class="subHeader">Включить</td>
<td class="subHeader">Дополнительная информация</td>
<td class="subHeader">Расстояние до местa (км)</td>
</tr>
<logic:iterate name="EventEditForm" property="apartments" id="apartments" indexId="iid2">
<tr>
<td>
<bean:write name="apartmentList" property='<%= "objects[" + iid2 + "].name" %>' />
<html:hidden name="apartments" property="apartmentId" indexed="true" />
</td>
<td><html:checkbox name="apartments" property="selected" indexed="true" /></td>
<td><html:text name="apartments" property="comment" indexed="true" style="width:100%" /></td>
<td><html:text name="apartments" property="distance" indexed="true" style="width:100%" maxlength="10" /></td>
</tr>
</logic:iterate>
 
<tr>
<td colspan=4>
<html:submit>Сохранить</html:submit>
<backpath:notEmpty><backpath:backlink>Отменить</backpath:backlink></backpath:notEmpty>
</td>
</tr>
</table>
 
</html:form>
 
<%@ include file="/admin/footer.jsp" %>
 
</body>
 
</html>
/kickup/tags/release-1.0/webapp/admin/event/list.jsp
0,0 → 1,91
<%@ 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 - Администрирование - Пьянки</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 - Администрирование - Пьянки</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>
 
<table border=0 cellspacing=0 cellpadding=4>
<tr>
<th class="subHeader">Название</th>
<th class="subHeader">Место/город</th>
<th class="subHeader">Начало</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>
<th class="subHeader">&nbsp;</th>
</tr>
 
<logic:iterate name="events" id="e">
<tr>
<td class="listCell"><bean:write name="e" property="name" /></td>
<td class="listCell"><bean:write name="e" property="place" />&nbsp;</td>
<td class="listCell"><bean:write name="e" property="start" format="dd.MM.yyyy" />&nbsp;</td>
<td class="listCell"><bean:write name="e" property="stop" format="dd.MM.yyyy" />&nbsp;</td>
<td align=center class="listCell">
<logic:equal name="e" property="enabled" value="true">да</logic:equal>
<logic:notEqual name="e" property="enabled" value="true">нет</logic:notEqual>
</td>
<td align=right class="listCell"><bean:write name="e" property="participantCount" /></td>
<td align=right class="listCell"><bean:write name="e" property="personCount" /></td>
 
<td class="listCell">&nbsp;</td>
<td class="listCell">
<backpath:link action="/admin/event/edit" paramId="id" paramName="e" paramProperty="id"><img src="<strutsx:root />/images/edit.gif" alt="Редактировать" border=0></backpath:link>
</td>
<td class="listCell">
<backpath:link action="/admin/event/delete" paramId="id" paramName="e" paramProperty="id" onclick="return confirmDelete();"><img src="<strutsx:root />/images/delete.gif" alt="Удалить" border=0></backpath:link>
</td>
<td class="listCell">
<backpath:link action="/admin/participant/list" paramId="event" paramName="e" paramProperty="id"><img src="<strutsx:root />/images/participants-small.gif" alt="Участники" border=0></backpath:link>
</td>
</tr>
</logic:iterate>
<tr>
<td colspan=11>&nbsp;</td>
</tr>
</table>
 
<div>
<backpath:link action="/admin/event/edit"><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>