source: trunk/gsdl/macros/users.dm@ 876

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

lots of changes - including separating out all language strings
into separate files.

  • 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><input type="submit" name=beu value="submit"></td></tr>
90</table>
91</form>
92}
93
94_footer_ {
95</body>
96</html>
97}
98
99
100
101
102package usersdeleteuser
103
104_header_ {
105<html>
106<head>
107<title>Delete a user</title>
108</head>
109<body bgcolor="#ffffff" text="#000000" link="#006666"
110 alink="#cc9900" vlink="#666633">
111}
112
113_content_ {
114
115<p>
116<table border=0>
117<tr><td>
118<form name="deleteuser" method="post" action="_gwcgi_">
119<input type=hidden name="e" value="_decodedcompressedoptions_">
120<input type=hidden name="a" value="um">
121<input type=hidden name="uma" value="_cgiarguma_">
122<input type=hidden name="umun" value="_cgiargumun_">
123<font color=red>Do you really want to permanently remove user <b>_cgiargumun_</b>?</font>
124<input type="submit" name=cm value="no">
125<input type="submit" name=cm value="yes">
126</form>
127</td></tr>
128</table>
129}
130
131_footer_ {
132</body>
133</html>
134}
135
136
137
138package userschangepasswd
139
140_pagetitle_ {Change password}
141_imagethispage_ {_imagegreenstone_}
142
143_content_ {
144<h2>Change password</h2>
145<p><font color=gray>Passwords must be between 3 and 8 characters long.
146They can contain any normal printable ASCII characters.</font>
147
148<p>_users:messagestatus_
149
150<p>
151<form name="changepasswd" method="post" action="_gwcgi_">
152<input type=hidden name="e" value="_decodedcompressedoptions_">
153<input type=hidden name="a" value="um">
154<input type=hidden name="uma" value="_cgiarguma_">
155<table border=0>
156<tr><td align=right>old password</td><td><input type="text" name="umpw" size=9></td></tr>
157<tr><td align=right>new password</td><td><input type="password" name="umnpw1" size=9></td></tr>
158<tr><td align=right>retype new password</td><td><input type="password" name="umnpw2" size=9></td></tr>
159<tr><td></td><td><input type="submit" name=bcp value="submit"></td></tr>
160</table>
161</table>
162</form>
163
164}
165
166
167package userschangepasswdok
168
169_pagetitle_ {Change password}
170_imagethispage_ {_imagegreenstone_}
171
172_content_ {
173<h2>Change password</h2>
174
175<p>Your password was successfully changed.
176}
177
178
179
180package users
181
182_messageinvalidusername_ {<font color=red>The username is invalid.</font> }
183_messageinvalidpassword_ {<font color=red>The password is invalid.</font> }
184_messageemptypassword_ {<font color=red>Please enter an initial password for this user.</font> }
185_messageuserexists_ {<font color=red>This user already exists,
186please enter in another username.</font> }
187
188_messageusernameempty_ {<font color=red>Please enter your username.</font> }
189_messagepasswordempty_ {<font color=red>You must enter your old password.</font> }
190_messagenewpass1empty_ {<font color=red>Enter your new password and then retype it.</font> }
191_messagenewpass2empty_ {_messagenewpass1empty_}
192_messagenewpassmismatch_ {<font color=red>The two versions of your new password did not match.</font> }
193_messagenewinvalidpassword_ {<font color=red>You entered an invalid password.</font> }
194_messagefailed_ {<font color=red>Either your username or password was incorrect.</font> }
Note: See TracBrowser for help on using the repository browser.