source: branches/New_Config_Format-branch/gsdl/macros/users.dm@ 1279

Last change on this file since 1279 was 1279, checked in by sjboddie, 24 years ago

merged changes to trunk into New_Config_Format branch

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 5.1 KB
Line 
1package userslistusers
2
3_header_ {
4<html>
5<head>
6<title>List of current users</title>
7</head>
8<body bgcolor="#ffffff" text="#000000" link="#006666"
9 alink="#cc9900" vlink="#666633">
10}
11
12_content_ {}
13
14_contentstart_ {
15<h2>List of current users</h2>
16
17
18<table border=0 cellspacing=1 cellpadding=3 width=100%>
19<tr>
20 <th bgcolor="\#d0d0d0">user</th>
21 <th bgcolor="\#d0d0d0">account status</th>
22 <th bgcolor="\#d0d0d0">groups</th>
23 <th bgcolor="\#d0d0d0">comment</th>
24 <th>&nbsp;</th>
25</tr>
26}
27
28_contentend_ {
29</table>
30}
31
32_textadduser_ {add a new user}
33_textedituser_ {edit}
34_textdeleteuser_ {delete}
35
36_footer_ {
37</body>
38</html>
39}
40
41
42
43package usersedituser
44
45_header_ {
46<html>
47<head>
48<title>_If_("_cgiarguma_" eq "edituser",Edit user information,Add a new user)</title>
49</head>
50<body bgcolor="#ffffff" text="#000000" link="#006666"
51 alink="#cc9900" vlink="#666633">
52}
53
54_content_ {
55<h2>_If_("_cgiarguma_" eq "edituser",Edit user information,Add a new user)</h2>
56
57
58_users:messagestatus_
59
60<form name="edituser" method="post" action="_gwcgi_">
61<input type=hidden name="e" value="_decodedcompressedoptions_">
62<input type=hidden name="a" value="um">
63<input type=hidden name="uma" value="_cgiarguma_">
64
65<table border=0>
66<tr><td>username</td><td><input type="text" name="umun" value="_users:usersargun_" size=15></td>
67<td><font color=gray>Usernames must be between
682 and 30 characters long. They can
69contain alphanumeric characters, '.', and '_'.
70</font></td>
71</tr>
72<tr><td>password</td><td><input type="text" name="umpw" value="_users:usersargpw_" size=9></td>
73<td><font color=gray>
74Passwords must be between 3 and 8 characters long. They can contain
75any normal printable ASCII characters.
76_If_("_cgiarguma_" eq "edituser",If this field is blank the old password will be kept.)
77</font></td></tr>
78<tr><td>account status</td><td>
79<select name="umus">
80<option value="enabled">enabled
81<option value="disabled"_If_("_users:usersargus_" ne "enabled", selected)>disabled
82</select>
83</td></tr>
84<tr><td>groups</td><td><input type="text" name="umug" value="_users:usersargug_" size=15></td>
85<td><font color=gray>
86Groups is a comma separated list, do not put spaces after the commas.
87</font></td></tr>
88<tr><td>comment</td><td colspan=2><input type="text" name="umc" value="_users:usersargc_" size=50></td></tr>
89<tr><td></td><td colspan=2><input type="submit" name=beu value="submit">
90<input type="submit" name=uma value="cancel"></td></tr>
91</table>
92</form>
93}
94
95_footer_ {
96</body>
97</html>
98}
99
100
101
102
103package usersdeleteuser
104
105_header_ {
106<html>
107<head>
108<title>Delete a user</title>
109</head>
110<body bgcolor="#ffffff" text="#000000" link="#006666"
111 alink="#cc9900" vlink="#666633">
112}
113
114_content_ {
115
116<p>
117<table border=0>
118<tr><td>
119<form name="deleteuser" method="post" action="_gwcgi_">
120<input type=hidden name="e" value="_decodedcompressedoptions_">
121<input type=hidden name="a" value="um">
122<input type=hidden name="uma" value="_cgiarguma_">
123<input type=hidden name="umun" value="_cgiargumun_">
124<font color=red>Do you really want to permanently remove user <b>_cgiargumun_</b>?</font>
125<input type="submit" name=cm value="no">
126<input type="submit" name=cm value="yes">
127</form>
128</td></tr>
129</table>
130}
131
132_footer_ {
133</body>
134</html>
135}
136
137
138
139package userschangepasswd
140
141_pagetitle_ {Change password}
142_imagethispage_ {_imagegreenstone_}
143
144_content_ {
145<h2>Change password</h2>
146<p><font color=gray>Passwords must be between 3 and 8 characters long.
147They can contain any normal printable ASCII characters.</font>
148
149<p>_users:messagestatus_
150
151<p>
152<form name="changepasswd" method="post" action="_gwcgi_">
153<input type=hidden name="e" value="_decodedcompressedoptions_">
154<input type=hidden name="a" value="um">
155<input type=hidden name="uma" value="_cgiarguma_">
156<table border=0>
157<tr><td align=right>old password</td><td><input type="text" name="umpw" size=9></td></tr>
158<tr><td align=right>new password</td><td><input type="password" name="umnpw1" size=9></td></tr>
159<tr><td align=right>retype new password</td><td><input type="password" name="umnpw2" size=9></td></tr>
160<tr><td></td><td><input type="submit" name=bcp value="submit"></td></tr>
161</table>
162</table>
163</form>
164
165}
166
167
168package userschangepasswdok
169
170_pagetitle_ {Change password}
171_imagethispage_ {_imagegreenstone_}
172
173_content_ {
174<h2>Change password</h2>
175
176<p>Your password was successfully changed.
177}
178
179
180
181package users
182
183_messageinvalidusername_ {<font color=red>The username is invalid.</font> }
184_messageinvalidpassword_ {<font color=red>The password is invalid.</font> }
185_messageemptypassword_ {<font color=red>Please enter an initial password for this user.</font> }
186_messageuserexists_ {<font color=red>This user already exists,
187please enter in another username.</font> }
188
189_messageusernameempty_ {<font color=red>Please enter your username.</font> }
190_messagepasswordempty_ {<font color=red>You must enter your old password.</font> }
191_messagenewpass1empty_ {<font color=red>Enter your new password and then retype it.</font> }
192_messagenewpass2empty_ {_messagenewpass1empty_}
193_messagenewpassmismatch_ {<font color=red>The two versions of your new password did not match.</font> }
194_messagenewinvalidpassword_ {<font color=red>You entered an invalid password.</font> }
195_messagefailed_ {<font color=red>Either your username or password was incorrect.</font> }
Note: See TracBrowser for help on using the repository browser.