You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
3.9 KiB
77 lines
3.9 KiB
<!--HEADER for Lab.html
|
|
<title>#[clientname]#'s User Administration</title>
|
|
end of HEADER-->
|
|
<h2>User Administration</h2>
|
|
|
|
<!-- Page 1: Results -->
|
|
#(text)#
|
|
::
|
|
<p>User created: #[username]#</p>
|
|
::
|
|
<p>User changed: #[username]#</p>
|
|
#(/text)#
|
|
#(error)#
|
|
::
|
|
<p class="error">Generic error.</p>
|
|
::
|
|
<p class="error">Passwords do not match.</p>
|
|
::
|
|
<p class="error">Username too short. Username must be >= 4 Characters.</p>
|
|
#(/error)#
|
|
|
|
<form action="User_p.html">
|
|
<fieldset><legend>Select user</legend>
|
|
<dl>
|
|
<dt><label for="user">Select user</label>:</dt>
|
|
<dd>
|
|
<select name="user" id="user">
|
|
<option value="newuser">New user</option>#{users}#
|
|
<option>#[user]#</option>#{/users}#
|
|
</select>
|
|
</dd>
|
|
<dt> </dt>
|
|
<dd>
|
|
<input type="submit" name="change_user" value="Edit User" />
|
|
<input type="submit" name="delete_user" value="Delete User" />
|
|
</dd>
|
|
</dl>
|
|
</fieldset>
|
|
</form>
|
|
|
|
<form action="User_p.html" method="post">
|
|
<fieldset><legend>Edit current user: #[username]#</legend>
|
|
<!-- Hidden(text for debugging): <input type="text" name="current_user" value="#[current_user]#" readonly> -->
|
|
<input type="hidden" name="current_user" value="#[current_user]#" />
|
|
<dl>
|
|
<dt><label for="username">Username</label>:</dt>
|
|
<dd><input type="text" id="username" name="username" value="#[username]#" /></dd>
|
|
<dt><label for="password">Password</label>:</dt>
|
|
<dd><input type="password" id="password" name="password" /></dd>
|
|
<dt><label for="password2">Repeat password</label>:</dt>
|
|
<dd><input type="password" id="password2" name="password2" /></dd>
|
|
<dt><label for="firstname">First name</label>:</dt>
|
|
<dd><input type="text" id="firstname" name="firstname" value="#[firstname]#" /></dd>
|
|
<dt><label for="lastname">Last name</label>:</dt>
|
|
<dd><input type="text" id="lastname" name="lastname" value="#[lastname]#" /></dd>
|
|
<dt><label for="address">Address</label>:</dt>
|
|
<dd><input type="text" id="address" name="address" value="#[address]#" /></dd>
|
|
<dt>Rights:</dt>
|
|
<dd>
|
|
<input type="checkbox" id="proxy" name="proxyRight"#(proxyRight)#:: checked="checked"#(/proxyRight)# /><label for="proxy">Proxy</label><br />
|
|
<input type="checkbox" id="admin" name="adminRight"#(adminRight)#:: checked="checked"#(/adminRight)# /><label for="admin">Admin</label><br />
|
|
<input type="checkbox" id="share" name="uploadRight"#(uploadRight)#:: checked="checked"#(/uploadRight)# /><label for="share">Fileshare-Upload</label><br />
|
|
<input type="checkbox" id="dwnld" name="downloadRight"#(downloadRight)#:: checked="checked"#(/downloadRight)# /><label for="dwnld">Fileshare-Download</label><br />
|
|
<input type="checkbox" id="blog" name="blogRight"#(blogRight)#:: checked="checked"#(/blogRight)# /><label for="blog">Blog</label><br />
|
|
<input type="checkbox" id="wiki" name="wikiAdminRight"#(wikiAdminRight)#:: checked="checked"#(/wikiAdminRight)# /><label for="wiki">Wiki Admin</label><br />
|
|
<input type="checkbox" id="bkmark" name="bookmarkRight"#(bookmarkRight)#:: checked="checked"#(/bookmarkRight)# /><label for="bkmark">Bookmarks</label>
|
|
</dd>
|
|
<dt><label for="tlimit">Timelimit</label>:</dt>
|
|
<dd><input type="text" id="tlimit" name="timelimit" value="#[timelimit]#" /></dd>
|
|
<dt><label for="tused">Time used</label>:</dt>
|
|
<dd><input type="text" id="tused" name="timeused" value="#[timeused]#" /></dd>
|
|
<dt> </dt>
|
|
<dd><input type="submit" name="change" value="Save User" /></dd>
|
|
</dl>
|
|
</fieldset>
|
|
</form>
|