Subversion Repositories WebE

Rev

Rev 22 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

1
<%@taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="contextPath" value="${pageContext.request.contextPath}" />

<html>
<head>
<title>User bearbeiten</title>
</head>
<body>

<h1>UserListe</h1>
<p>Die Liste:</p>

<s:if test="userList.size() == 0">
<p>Keine Benutzer gefunden</p>
</s:if>
<s:else>
<table>
        <tr>
                <th>Username</th>
                <th>Vorname</th>
                <th>Nachname</th>
                <th>Admin?</th>
        </tr>
<s:iterator value="userList" status="stat">
        <tr>
                <td><s:property value="username" /></td>
                <td><s:property value="firstname" /></td>
                <td><s:property value="lastname" /></td>
                <td><s:property value="admin" /></td>
                
                <td><s:url id="editURL" action="editUser">
                        <s:param name="id" value="%{id}"></s:param>
                </s:url> <s:a href="%{editURL}">
                        <img src="${contextPath}/resources/icons/page_white_edit.png" alt="edit" />
                </s:a></td>
                
                <td><s:url id="deleteURL" action="deleteUser">
                        <s:param name="id" value="%{id}"></s:param>
                </s:url> <s:a href="%{deleteURL}">
                        <img src="${contextPath}/resources/icons/delete.png" alt="delete" />
                </s:a></td>
        </tr>
</s:iterator>
</table>
</s:else>

</body>
</html>