Added features:
[mir.git] / templates / admin / user.template
1 <html>
2 <head>
3   <title>${config["Mir.Name"]} | ${lang("user.htmltitle")}</title>
4   <link rel="stylesheet" type="text/css" href="${config.docRoot}/style/admin.css">
5 <head>
6
7 <body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
8   
9   <include "FUNCTIONS.template">
10   <include "head.template">
11
12       <if passwordonly=="1">
13         <assign method="updatepassword">
14       <else>
15         <if new=="1">
16           <assign method="insert">
17         <else>
18           <assign method="update">
19         </if>
20       </if>
21
22       <call EditStart(
23          ["module", "id", "do"],
24          ["Users", user.id, method])>
25          
26
27     <if passwordonly=="1">
28       <call EditReadonlyTextNormal(lang("user.login"), user.login)>
29       <call EditPasswordNormal(lang("user.oldpassword"), 40, 40, "oldpassword", "")>
30     <else>
31       <if new!="1">
32         <call EditReadonlyTextNormal(lang("user.creationdate"), user.creationdate.formatted[config["Mir.DefaultDateTimeFormat"]])>
33         <call EditReadonlyTextNormal(lang("user.lastlogindate"), user.lastlogindate.formatted[config["Mir.DefaultDateTimeFormat"]])>
34       </if>
35       <call EditTextNormal (lang("user.login"), 40, 16, "login", user.login)>
36       <call EditPasswordNormal (lang("user.ownpassword"), 40, 40, "oldpassword", "")>
37     </if>
38     <call EditPasswordNormal(lang("user.password"), 40, 40, "newpassword", "")>
39     <call EditPasswordNormal(lang("user.password2"), 40, 40, "newpassword2", "")>
40     
41     <if passwordonly=="1">
42       <call EditReadonlyTextNormal(lang("user.admin"), user.is_admin)>
43     <else>
44       <call EditCheckboxNormal(lang("user.admin"), "is_admin", user.is_admin)>
45       <call EditCheckboxNormal(lang("user.is_disabled"), "is_disabled", user.is_disabled)>
46       <call EditTextNormal (lang("user.email"), 40, 255, "email", user.email)>
47       <call EditTextAreaNormal(lang("user.comment"), "", 40, 10, "comment", user.comment)>
48       <call EditTextAreaNormal(lang("user.profile"), "", 40, 10, "profile", user.profile)>
49     </if>
50
51     <if new=="1">
52       <call EditSubmitButtonNormal(lang("insert"), "save")>
53     <else>
54       <call EditSubmitButtonNormal(lang("save"), "save")>
55     </if> 
56
57     <call EditEnd()>
58   
59   <if returnurl>
60     <call showBack(returnurl)>
61   <else>
62     <if passwordonly>
63       <call showBack("")>
64     <else>
65       <call showBack("module=Users&amp;do=list")>
66     </if>
67   </if>
68
69   <include "foot.template">
70
71 </body>
72 </html>