Subversion Repositories WebE

Rev

Rev 22 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
22 moos 1
<%@taglib uri="/struts-tags" prefix="s"%>
30 moos 2
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
3
<c:set var="contextPath" value="${pageContext.request.contextPath}" />
4
 
20 moos 5
<html>
6
<head>
7
<title>User bearbeiten</title>
8
</head>
9
<body>
10
 
11
<h1>UserListe</h1>
22 moos 12
<p>Die Liste:</p>
13
 
14
<s:if test="userList.size() == 0">
15
<p>Keine Benutzer gefunden</p>
16
</s:if>
17
<s:else>
18
<table>
19
	<tr>
20
		<th>Username</th>
21
		<th>Vorname</th>
22
		<th>Nachname</th>
23
		<th>Admin?</th>
24
	</tr>
25
<s:iterator value="userList" status="stat">
26
	<tr>
27
		<td><s:property value="username" /></td>
28
		<td><s:property value="firstname" /></td>
29
		<td><s:property value="lastname" /></td>
30
		<td><s:property value="admin" /></td>
31
 
32
		<td><s:url id="editURL" action="editUser">
33
			<s:param name="id" value="%{id}"></s:param>
30 moos 34
		</s:url> <s:a href="%{editURL}">
35
			<img src="${contextPath}/resources/icons/page_white_edit.png" alt="edit" />
36
		</s:a></td>
37
 
22 moos 38
		<td><s:url id="deleteURL" action="deleteUser">
39
			<s:param name="id" value="%{id}"></s:param>
30 moos 40
		</s:url> <s:a href="%{deleteURL}">
41
			<img src="${contextPath}/resources/icons/delete.png" alt="delete" />
42
		</s:a></td>
22 moos 43
	</tr>
44
</s:iterator>
45
</table>
46
</s:else>
47
 
20 moos 48
</body>
49
</html>