<html>
-<head>
- <title>${config["Mir.Name"]} | ${lang("userlist.htmltitle")}</title>
- <link rel="stylesheet" type="text/css" href="${config.docRoot}/style/admin.css">
-</head>
+ <head>
+ <title>${config["Mir.Name"]} | ${lang("userlist.htmltitle")}</title>
+ <link rel="stylesheet" type="text/css" href="${config.docRoot}/style/admin.css">
+ </head>
-<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
+ <body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
+
+ <include "FUNCTIONS.template">
+ <include "LISTFUNCTIONS.template">
+ <include "head.template">
+
+ <if mayEditUsers=="1">
+ <call showAddOrBack(mayAddUsers, "Users", "Admin", "superusermenu")>
-<include "templates/admin/head.template">
-<if contentlist>
-<table border="0" cellpadding="2" cellspacing="1">
- <tr class="darkgrey">
- <td><span class="witesmall"><b>${lang("user.login")}</b></span></td>
- <td><span class="witesmall"><b>${lang("user.admin")}</b></span></td>
- </tr>
+ <if users>
+ <call showPrevNextLinks(prevurl, nexturl, "left")>
+
+
+
+
+ <call ListStart()>
+ <call ListHead([
+ lang("user.login"),
+ lang("user.admin"),
+ lang("user.is_disabled"),
+ lang("user.creationdate"),
+ lang("user.lastlogindate"),
+ lang("user.comment"),
+ lang("user.email")])>\r
+ <list users as u>
+ <call ListEntry([
+ u.login,
+ u.is_admin,
+ u.is_disabled,
+ u.creationdate.format(config["Mir.DefaultDateTimeFormat"], config["Mir.DefaultTimezone"]),
+ u.lastlogindate.format(config["Mir.DefaultDateTimeFormat"], config["Mir.DefaultTimezone"]),
+ utility.prettyEncodeHTML(u.comment),
+ u.email],
+ "module=Users&id="+u.id,
+ ["&do=delete&okurl="+utility.encodeURI(thisurl)+"&cancelurl="+utility.encodeURI(thisurl), "&do=edit"],
+ [lang("delete"), lang("edit")])>
+ </list>\r
+ <call ListEnd()>\r
- <list contentlist as entry>
- <tr
- <if grey=="1"><assign grey="0">class="list1"<else>class="list2"<assign grey="1"> </if>>
- <td>${entry.login} </td>
- <td>${entry.is_admin} </td>
- <td><span class="text"> <a href="${config.actionRoot}?module=Users&do=delete&id=${entry.id}">${lang("delete")}</a>
- | <a href="${config.actionRoot}?module=Users&do=edit&id=${entry.id}">${lang("edit")}</a></span></td>
- </tr>
- </list>
- <tr>
- <td colspan="3" class="darkgrey"><span class="witetext">${data.count} ${lang("records")}
- / ${lang("show_from_to", data.from, data.to)}</span></td>
- <td> </td>
- </tr>
-</table>
+ <call showPrevNextLinks(prevurl, nexturl, "left")>
+ <call showAddOrBack(mayAddUsers, "Users", "Admin", "superusermenu")>
+ <else>
+ <P align="center">${lang("no_matches_found")}</p>
+ </if>
+ <else>
+ <if users>
+ <call showPrevNextLinks(prevurl, nexturl, "left")>
+
+ <call EntityTable(users,
+ ["login"],
+ [lang("user.login")],
+ from, to, count, mayDeleteUsers, mayEditUsers, "Users")>
+
+ <call showPrevNextLinks(prevurl, nexturl, "left")>
+ <call showAddOrBack(mayAddUsers, "Users", "Admin", "superusermenu")>
+ <else>
+ <P align="center">${lang("no_matches_found")}</p>
+ </if>
+ </if>
- <P>
-<if data.prev>
- <a href="${actionRoot}?module=Users&do=list&where=${where}&prevoffset=${prev}&prev=zurück">${lang("list.previous")}</a>
-</if>
-<if data.next>
-<a href="${actionRoot}?module=Users&do=list&where=${where}&nextoffset=${next}&next=weiter">${lang("list.next")}</a>
-</if>
-
-<else>
- <P align="center">${lang("no_matches_found")}</p>
-</if>
-<include "templates/admin/foot.template">
-</body>
+ <include "foot.template">
+ </body>
</html>