Subversion Repositories general

Rev

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

Rev Author Line No. Line
3 dev 1
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
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"  %>
7
<html>
8
 
9
<head>
10
	<meta http-equiv="expires" content="0">
10 dev 11
	<title>Пьянка XP - Администрирование - Пьянки</title>
3 dev 12
	<link rel="stylesheet" type="text/css" href="<strutsx:root />/style/general.css">
972 dev 13
	<script>
14
		function confirmDelete()
15
		{
16
			return confirm("Вы уверены, что хотите удалить эту пьянку со всеми участниками?");
17
		}
18
	</script>
3 dev 19
</head>
20
 
21
<body>
22
 
10 dev 23
<h1>Пьянка XP - Администрирование - Пьянки</h1>
3 dev 24
 
25
<strutsx:errorsIterator id="errors" />
26
<strutsx:notEmpty name="errors">
10 dev 27
	<div class="error">Ошибки:
3 dev 28
		<ul>
29
		<logic:iterate name="errors" id="error">
30
			<li><strutsx:message name="error" property="key" valuesProperty="values" /></li>
31
		</logic:iterate>
32
		</ul>
33
	</div>
34
</strutsx:notEmpty>
35
 
972 dev 36
<table border=0 cellspacing=0 cellpadding=4>
3 dev 37
	<tr>
972 dev 38
		<th class="subHeader">Название</th>
39
		<th class="subHeader">Место/город</th>
40
		<th class="subHeader">Начало</th>
41
		<th class="subHeader">Окончание</th>
42
		<th class="subHeader">В открытом доступе</th>
43
		<th class="subHeader">Заявок</th>
44
		<th class="subHeader">Участников</th>
45
		<th class="subHeader" width=50>&nbsp;</th>
46
		<th class="subHeader">&nbsp;</th>
47
		<th class="subHeader">&nbsp;</th>
48
		<th class="subHeader">&nbsp;</th>
3 dev 49
	</tr>
50
 
51
<logic:iterate name="events" id="e">
52
	<tr>
972 dev 53
		<td style="border-bottom: 1px dotted black;"><bean:write name="e" property="name"  /></td>
54
		<td style="border-bottom: 1px dotted black;"><bean:write name="e" property="place" />&nbsp;</td>
55
		<td style="border-bottom: 1px dotted black;"><bean:write name="e" property="start" format="dd.MM.yyyy" />&nbsp;</td>
56
		<td style="border-bottom: 1px dotted black;"><bean:write name="e" property="stop"  format="dd.MM.yyyy" />&nbsp;</td>
57
		<td align=middle style="border-bottom: 1px dotted black;">
10 dev 58
			<logic:equal name="e" property="enabled" value="true">да</logic:equal>
59
			<logic:notEqual name="e" property="enabled" value="true">нет</logic:notEqual>
3 dev 60
		</td>
972 dev 61
		<td align=right style="border-bottom: 1px dotted black;"><bean:write name="e" property="participantCount" /></td>
62
		<td align=right style="border-bottom: 1px dotted black;"><bean:write name="e" property="personCount" /></td>
63
 
64
		<td style="border-bottom: 1px dotted black;">&nbsp;</td>
65
		<td style="border-bottom: 1px dotted black;">
66
			<backpath:link action="/admin/event/edit" paramId="id" paramName="e" paramProperty="id"><img src="<strutsx:root />/images/edit.gif" alt="Редактировать" border=0></backpath:link>
3 dev 67
		</td>
972 dev 68
		<td style="border-bottom: 1px dotted black;">
69
			<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>
3 dev 70
		</td>
972 dev 71
		<td style="border-bottom: 1px dotted black;">
72
			<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>
9 dev 73
		</td>
3 dev 74
	</tr>
75
</logic:iterate>
972 dev 76
	<tr>
77
		<td colspan=11>&nbsp;</td>
78
	</tr>
3 dev 79
</table>
80
 
972 dev 81
<div>
82
<backpath:link action="/admin/event/edit"><img src="<strutsx:root />/images/add.gif" alt="Добавить пьянку" border=0></backpath:link>
83
<backpath:notEmpty><backpath:backlink><img src="<strutsx:root />/images/back-small.gif" alt="Назад" border=0></backpath:backlink></backpath:notEmpty>
84
</div>
3 dev 85
 
86
</body>
87
 
88
</html>