Subversion Repositories general

Rev

Rev 1014 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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