<html>
<head>
- <title>${config["Mir.Name"]} | ${lang("user.htmltitle")}</title>
- <link rel="stylesheet" type="text/css" href="${config.docRoot}/style/admin.css">
+ <title>${config["Mir.Name"]} | ${lang("user.htmltitle")}</title>
+ <link rel="stylesheet" type="text/css" href="${config.docRoot}/style/admin.css">
<head>
<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
-
- <include "FUNCTIONS.template">
- <include "head.template">
-
-<form action="${config.actionRoot}" method="post">
- <input type="hidden" name="module" value="Users">
- <input type="hidden" name="id" value="${data.id}">
- <if data.new>
- <input type="hidden" name="do" value="insert">
- <else>
- <input type="hidden" name="do" value="update">
- </if>
-
- <table border="0">
- <call TextInputTableRow (lang("user.login"), 40, 40, "login", data.login)>
- <call TextInputTableRow (lang("user.password"), 40, 40, "newpassword", "")>
- <call TextInputTableRow (lang("user.password2"), 40, 40, "newpassword2", "")>
- <tr>
- <td align="right" class="table-left">
- <b>${lang("user.admin")}:</b>
- </td>
- <td class="listrow2">
- <input type="checkbox" name="is_admin" value="1"<if data.is_admin=="1"> checked</if>>
- </td>
- </tr>
- <tr>
- <td colspan="2" align="right" class="table-foot">
- <span class="witetext">
- <if data.new>
- <input type="submit" name="save" value="${lang("insert")}">
- <else>
- <input type="submit" name="save" value="${lang("save")}">
- </if>
- </span>
- </td>
- </tr>
- </table>
-</form>
-
- <p><a class="link-box" href="${config.actionRoot}?module=Users&do=list">[<] ${lang("back")} </a> </p>
-
- <include "foot.template">
+
+ <include "FUNCTIONS.template">
+ <include "head.template">
+
+ <if passwordonly=="1">
+ <assign method="updatepassword">
+ <else>
+ <if new=="1">
+ <assign method="insert">
+ <else>
+ <assign method="update">
+ </if>
+ </if>
+
+ <call EditStart(
+ ["module", "id", "do"],
+ ["Users", user.id, method])>
+
+
+ <if passwordonly=="1">
+ <call EditReadonlyTextNormal(lang("user.login"), user.login)>
+ <call EditPasswordNormal(lang("user.oldpassword"), 40, 40, "oldpassword", "")>
+ <else>
+ <if new!="1">
+ <call EditReadonlyTextNormal(lang("user.creationdate"), user.creationdate.formatted[config["Mir.DefaultDateTimeFormat"]])>
+ <call EditReadonlyTextNormal(lang("user.lastlogindate"), user.lastlogindate.formatted[config["Mir.DefaultDateTimeFormat"]])>
+ </if>
+ <call EditTextNormal (lang("user.login"), 40, 16, "login", user.login)>
+ <call EditPasswordNormal (lang("user.ownpassword"), 40, 40, "oldpassword", "")>
+ </if>
+ <call EditPasswordNormal(lang("user.password"), 40, 40, "newpassword", "")>
+ <call EditPasswordNormal(lang("user.password2"), 40, 40, "newpassword2", "")>
+
+ <if passwordonly=="1">
+ <call EditReadonlyTextNormal(lang("user.admin"), user.is_admin)>
+ <else>
+ <call EditCheckboxNormal(lang("user.admin"), "is_admin", user.is_admin)>
+ <call EditCheckboxNormal(lang("user.is_disabled"), "is_disabled", user.is_disabled)>
+ <call EditTextNormal (lang("user.email"), 40, 255, "email", user.email)>
+ <call EditTextAreaNormal(lang("user.comment"), "", 40, 10, "comment", user.comment)>
+ <call EditTextAreaNormal(lang("user.profile"), "", 40, 10, "profile", user.profile)>
+ </if>
+
+ <if new=="1">
+ <call EditSubmitButtonNormal(lang("insert"), "save")>
+ <else>
+ <call EditSubmitButtonNormal(lang("save"), "save")>
+ </if>
+
+ <call EditEnd()>
+
+ <if returnurl>
+ <call showBack(returnurl)>
+ <else>
+ <if passwordonly>
+ <call showBack("")>
+ <else>
+ <call showBack("module=Users&do=list")>
+ </if>
+ </if>
+
+ <include "foot.template">
</body>
</html>