Subversion Repositories general

Rev

Rev 1028 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1028 Rev 1029
1
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
1
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
2
<%@ taglib uri="/WEB-INF/struts-bean.tld"      prefix="bean"     %>
2
<%@ taglib uri="/WEB-INF/struts-bean.tld"      prefix="bean"     %>
3
<%@ taglib uri="/WEB-INF/struts-logic.tld"     prefix="logic"    %>
3
<%@ taglib uri="/WEB-INF/struts-logic.tld"     prefix="logic"    %>
4
<%@ taglib uri="/WEB-INF/struts-html.tld"      prefix="html"     %>
4
<%@ taglib uri="/WEB-INF/struts-html.tld"      prefix="html"     %>
5
<%@ taglib uri="/WEB-INF/ak-backpath.tld"      prefix="backpath" %>
5
<%@ taglib uri="/WEB-INF/ak-backpath.tld"      prefix="backpath" %>
6
<%@ taglib uri="/WEB-INF/ak-strutsx.tld"       prefix="strutsx"  %>
6
<%@ taglib uri="/WEB-INF/ak-strutsx.tld"       prefix="strutsx"  %>
7
<%@ taglib uri="/WEB-INF/hostadmiral-core.tld" prefix="core"     %>
7
<%@ taglib uri="/WEB-INF/hostadmiral-core.tld" prefix="core"     %>
8
<%@ taglib uri="/WEB-INF/hostadmiral-list.tld" prefix="list"     %>
8
<%@ taglib uri="/WEB-INF/hostadmiral-list.tld" prefix="list"     %>
9
<backpath:init backPathIgnore="pg" />
-
 
10
<html>
9
<html>
11
 
10
 
12
<head>
11
<head>
13
	<meta http-equiv="expires" content="0">
12
	<meta http-equiv="expires" content="0">
14
	<title><bean:message key="ak.hostadmiral.page.user.list.title" /></title>
13
	<title><bean:message key="ak.hostadmiral.page.user.list.title" /></title>
15
	<link rel="stylesheet" type="text/css" href="<strutsx:root />/style/general.css">
14
	<link rel="stylesheet" type="text/css" href="<strutsx:root />/style/general.css">
16
</head>
15
</head>
17
 
16
 
18
<body>
17
<body>
19
 
18
 
20
<h1><bean:message key="ak.hostadmiral.page.user.list.title" /></h1>
19
<h1><bean:message key="ak.hostadmiral.page.user.list.title" /></h1>
21
 
20
 
22
<strutsx:errorsIterator id="errors" />
21
<strutsx:errorsIterator id="errors" />
23
<strutsx:notEmpty name="errors">
22
<strutsx:notEmpty name="errors">
24
	<div class="error"><bean:message key="ak.hostadmiral.page.general.errors" />:
23
	<div class="error"><bean:message key="ak.hostadmiral.page.general.errors" />:
25
		<ul>
24
		<ul>
26
		<logic:iterate name="errors" id="error">
25
		<logic:iterate name="errors" id="error">
27
			<li><strutsx:message name="error" property="key" valuesProperty="values" /></li>
26
			<li><strutsx:message name="error" property="key" valuesProperty="values" /></li>
28
		</logic:iterate>
27
		</logic:iterate>
29
		</ul>
28
		</ul>
30
	</div>
29
	</div>
31
</strutsx:notEmpty>
30
</strutsx:notEmpty>
32
 
31
 
33
<table border=1>
32
<table border=1>
34
	<tr>
33
	<tr>
35
		<th><bean:message key="ak.hostadmiral.page.user.list.login" /></th>
34
		<th><bean:message key="ak.hostadmiral.page.user.list.login" /></th>
36
		<th><bean:message key="ak.hostadmiral.page.user.list.boss" /></th>
35
		<th><bean:message key="ak.hostadmiral.page.user.list.boss" /></th>
37
		<th><bean:message key="ak.hostadmiral.page.user.list.superuser" /></th>
36
		<th><bean:message key="ak.hostadmiral.page.user.list.superuser" /></th>
38
		<th><bean:message key="ak.hostadmiral.page.user.list.enabled" /></th>
37
		<th><bean:message key="ak.hostadmiral.page.user.list.enabled" /></th>
39
		<th>&nbsp;</th>
38
		<th>&nbsp;</th>
40
		<th>&nbsp;</th>
39
		<th>&nbsp;</th>
41
	</tr>
40
	</tr>
42
 
41
 
43
<logic:iterate name="users" id="u">
42
<logic:iterate name="users" id="u">
44
	<tr>
43
	<tr>
45
		<td><bean:write name="u" property="login" /></td>
44
		<td><bean:write name="u" property="login" /></td>
46
		<td>
45
		<td>
47
			<logic:present name="u" property="boss">
46
			<logic:present name="u" property="boss">
48
				<bean:write name="u" property="boss.login" />
47
				<bean:write name="u" property="boss.login" />
49
			</logic:present>
48
			</logic:present>
50
			<logic:notPresent name="u" property="boss">
49
			<logic:notPresent name="u" property="boss">
51
				&nbsp;
50
				&nbsp;
52
			</logic:notPresent>
51
			</logic:notPresent>
53
		</td>
52
		</td>
54
		<td>
53
		<td>
55
			<logic:equal name="u" property="superuser" value="true">x</logic:equal>
54
			<logic:equal name="u" property="superuser" value="true">x</logic:equal>
56
			<logic:notEqual name="u" property="superuser" value="true">&nbsp;</logic:notEqual>
55
			<logic:notEqual name="u" property="superuser" value="true">&nbsp;</logic:notEqual>
57
		</td>
56
		</td>
58
		<td>
57
		<td>
59
			<logic:equal name="u" property="enabled" value="true">x</logic:equal>
58
			<logic:equal name="u" property="enabled" value="true">x</logic:equal>
60
			<logic:notEqual name="u" property="enabled" value="true">&nbsp;</logic:notEqual>
59
			<logic:notEqual name="u" property="enabled" value="true">&nbsp;</logic:notEqual>
61
		</td>
60
		</td>
62
		<td>
61
		<td>
63
			<core:editable name="u">
62
			<core:editable name="u">
64
				<backpath:link action="/user/edit" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.list.edit" /></backpath:link>
63
				<backpath:link action="/user/edit" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.list.edit" /></backpath:link>
65
			</core:editable>
64
			</core:editable>
66
			<core:notEditable name="u">
65
			<core:notEditable name="u">
67
				<core:rights name="u" method="partEditableBy">
66
				<core:rights name="u" method="partEditableBy">
68
					<backpath:link action="/user/partedit" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.list.partedit" /></backpath:link>
67
					<backpath:link action="/user/partedit" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.list.partedit" /></backpath:link>
69
				</core:rights>
68
				</core:rights>
70
				<core:noRights name="u" method="partEditableBy">
69
				<core:noRights name="u" method="partEditableBy">
71
					<core:viewable name="u">
70
					<core:viewable name="u">
72
						<backpath:link action="/user/edit" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.list.view" /></backpath:link>
71
						<backpath:link action="/user/edit" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.list.view" /></backpath:link>
73
					</core:viewable>
72
					</core:viewable>
74
					<core:notViewable name="u">
73
					<core:notViewable name="u">
75
						&nbsp;
74
						&nbsp;
76
					</core:notViewable>
75
					</core:notViewable>
77
				</core:noRights>
76
				</core:noRights>
78
			</core:notEditable>
77
			</core:notEditable>
79
		</td>
78
		</td>
80
		<td>
79
		<td>
81
			<core:deleteable name="u">
80
			<core:deleteable name="u">
82
				<backpath:link action="/user/deleting" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.list.delete" /></backpath:link>
81
				<backpath:link action="/user/deleting" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.list.delete" /></backpath:link>
83
			</core:deleteable>
82
			</core:deleteable>
84
			<core:notDeleteable name="u">
83
			<core:notDeleteable name="u">
85
				&nbsp;
84
				&nbsp;
86
			</core:notDeleteable>
85
			</core:notDeleteable>
87
		</td>
86
		</td>
88
	</tr>
87
	</tr>
89
</logic:iterate>
88
</logic:iterate>
90
</table>
89
</table>
91
 
90
 
92
<p>
91
<p>
93
	List size: <bean:write name="listInfo" property="size" />
92
	List size: <bean:write name="listInfo" property="size" />
94
	Page: <list:currentpage infoBean="listInfo" /> of <bean:write name="listInfo" property="totalPages" />
93
	Page: <list:currentpage infoBean="listInfo" /> of <bean:write name="listInfo" property="totalPages" />
95
</p>
94
</p>
96
<p>
95
<p>
97
	<list:hasfirst infoBean="listInfo"><list:firstpage infoBean="listInfo">&lt;&lt;</list:firstpage></list:hasfirst>
96
	<list:hasfirst infoBean="listInfo"><list:firstpage infoBean="listInfo">&lt;&lt;</list:firstpage></list:hasfirst>
98
	<list:nofirst infoBean="listInfo">&lt;&lt;</list:nofirst>
97
	<list:nofirst infoBean="listInfo">&lt;&lt;</list:nofirst>
99
 
98
 
100
	<list:hasprev infoBean="listInfo"><list:prevpage infoBean="listInfo">&lt;</list:prevpage></list:hasprev>
99
	<list:hasprev infoBean="listInfo"><list:prevpage infoBean="listInfo">&lt;</list:prevpage></list:hasprev>
101
	<list:noprev infoBean="listInfo">&lt;</list:noprev>
100
	<list:noprev infoBean="listInfo">&lt;</list:noprev>
102
 
101
 
103
	<list:iterate infoBean="listInfo" max="20">
102
	<list:iterate infoBean="listInfo" max="20">
104
		<list:iscurrent>
103
		<list:iscurrent>
105
			<list:displaypage />
104
			<list:displaypage />
106
		</list:iscurrent>
105
		</list:iscurrent>
107
		<list:notcurrent>
106
		<list:notcurrent>
108
			<list:pagelink><list:displaypage /></list:pagelink>
107
			<list:pagelink><list:displaypage /></list:pagelink>
109
		</list:notcurrent>
108
		</list:notcurrent>
110
	</list:iterate>
109
	</list:iterate>
111
 
110
 
112
	<list:hasnext infoBean="listInfo"><list:nextpage infoBean="listInfo">&gt;</list:nextpage></list:hasnext>
111
	<list:hasnext infoBean="listInfo"><list:nextpage infoBean="listInfo">&gt;</list:nextpage></list:hasnext>
113
	<list:nonext infoBean="listInfo">&gt;</list:nonext>
112
	<list:nonext infoBean="listInfo">&gt;</list:nonext>
114
 
113
 
115
	<list:haslast infoBean="listInfo"><list:lastpage infoBean="listInfo">&gt;&gt;</list:lastpage></list:haslast>
114
	<list:haslast infoBean="listInfo"><list:lastpage infoBean="listInfo">&gt;&gt;</list:lastpage></list:haslast>
116
	<list:nolast infoBean="listInfo">&gt;&gt;</list:nolast>
115
	<list:nolast infoBean="listInfo">&gt;&gt;</list:nolast>
117
</p>
116
</p>
118
 
117
 
119
<logic:equal name="allowedToCreate" value="true">
118
<logic:equal name="allowedToCreate" value="true">
120
	<backpath:link action="/user/edit"><bean:message key="ak.hostadmiral.page.user.list.add" /></backpath:link>
119
	<backpath:link action="/user/edit"><bean:message key="ak.hostadmiral.page.user.list.add" /></backpath:link>
121
	<br>
120
	<br>
122
</logic:equal>
121
</logic:equal>
123
<logic:equal name="mayViewAllLogins" value="true">
122
<logic:equal name="mayViewAllLogins" value="true">
124
	<backpath:link action="/user/failedLogins"><bean:message key="ak.hostadmiral.page.user.list.logins.failed" /></backpath:link>
123
	<backpath:link action="/user/failedLogins"><bean:message key="ak.hostadmiral.page.user.list.logins.failed" /></backpath:link>
125
	<br>
124
	<br>
126
</logic:equal>
125
</logic:equal>
127
<backpath:backlink><bean:message key="ak.hostadmiral.page.user.list.back" /></backpath:backlink>
126
<backpath:backlink><bean:message key="ak.hostadmiral.page.user.list.back" /></backpath:backlink>
128
 
127
 
129
<p>
128
<p>
130
	<bean:message key="ak.hostadmiral.page.general.version" />:
129
	<bean:message key="ak.hostadmiral.page.general.version" />:
131
	<bean:write name="projectVersion" />
130
	<bean:write name="projectVersion" />
132
</p>
131
</p>
133
 
132
 
134
</body>
133
</body>
135
 
134
 
136
</html>
135
</html>