source: trunk/templates/user.tmpl@ 568

Last change on this file since 568 was 493, checked in by Kris Deugau, 12 years ago

/trunk

Overhaul session handling; pure URL-based sessions are subject to
copy-paste session-stealing. Convert to cookie-based session tracking
instead. This also provides bonuses in terms of inlinks from other
utilities or copy-paste links.
While session-handling was in pieces, add "pick-up-where-I-left-off"
login handling so that logins don't always end up only on the initial
domain list. This is especially handy for copy-paste links.

Also clean up some of the docucomments, use the CGI::Simple object to
do 302 redirects, and bring the revzone default sort field setup into
line with other thing-lists.

File size: 3.4 KB
RevLine 
[24]1<table class="wholepage"><tr>
2<TMPL_INCLUDE NAME="menu.tmpl">
3
[100]4<td align="center" valign="top">
[24]5
[493]6<form action="<TMPL_VAR NAME=script_self>" method="post">
[38]7<fieldset>
[24]8
[67]9<input type="hidden" name="page" value="user" />
[207]10<input type="hidden" name="useraction" value="<TMPL_VAR NAME=action>" />
[82]11<TMPL_IF uid><input type="hidden" name="uid" value="<TMPL_VAR NAME=uid>" /></TMPL_IF>
12<TMPL_IF gid><input type="hidden" name="gid" value="<TMPL_VAR NAME=gid>" /></TMPL_IF>
[38]13
[65]14<table border="0" cellspacing="2" cellpadding="2" width="450">
15<TMPL_IF add_failed> <tr>
[294]16 <td class="errhead" colspan="2"><TMPL_VAR NAME=errmsg></td>
[65]17 </tr></TMPL_IF>
[82]18 <tr class="darkrowheader"><td colspan="2" align="center"><TMPL_IF add>Add<TMPL_ELSE>Edit</TMPL_IF> User</td></tr>
[24]19
[38]20 <tr class="datalinelight">
21 <td>Username:</td>
22 <td align="left"><input type="text" name="uname" value="<TMPL_VAR NAME=uname>" /></td>
[24]23 </tr>
[38]24 <tr class="datalinelight">
[24]25 <td>First Name:</td>
[38]26 <td align="left"><input type="text" name="fname" value="<TMPL_VAR NAME=fname>" /></td>
[24]27 </tr>
[38]28 <tr class="datalinelight">
[24]29 <td>Last Name:</td>
[38]30 <td align="left"><input type="text" name="lname" value="<TMPL_VAR NAME=lname>" /></td>
[24]31 </tr>
[38]32 <tr class="datalinelight">
[24]33 <td>Password:</td>
[38]34 <td align="left"><input type="password" name="pass1" value="<TMPL_VAR NAME=pass1>" /></td>
[24]35 </tr>
[38]36 <tr class="datalinelight">
[24]37 <td>Confirm Password:</td>
[38]38 <td align="left"><input type="password" name="pass2" value="<TMPL_VAR NAME=pass2>" /></td>
[24]39 </tr>
[38]40 <tr class="datalinelight">
[24]41 <td>Account Type:</td>
[67]42<TMPL_IF is_admin>
[38]43 <td align="left"><select name="accttype">
44<TMPL_LOOP name=actypelist> <option value="<TMPL_VAR NAME=actypeval>"<TMPL_IF typesel> selected="selected"</TMPL_IF>><TMPL_VAR NAME=actypename></option>
[24]45</TMPL_LOOP> </select></td>
[67]46<TMPL_ELSE>
47 <td>User</td>
48</TMPL_IF>
[24]49 </tr>
[38]50 <tr class="datalinelight">
[82]51 <td><TMPL_IF add>Create as active user<TMPL_ELSE>User is active</TMPL_IF></td>
52 <td><input type="checkbox" name="makeactive" checked="checked" /></td>
[24]53 </tr>
[65]54
55 <tr>
56 <td colspan="2">
57
58<table style="border: thin solid #000000;" border="0" cellspacing="5" cellpadding="0" width="100%">
59<tr class="tableheader">
60 <td align="center" colspan="5">
[82]61 <input type="radio" name="perms_type" value="inherit" <TMPL_IF set_permgroup><TMPL_IF perm_inherit>checked="checked"</TMPL_IF><TMPL_ELSE>checked="checked"</TMPL_IF>/> Use permissions from group
[65]62 </td>
63</tr>
[67]64<TMPL_VAR NAME=grpperms>
[65]65
[67]66<TMPL_IF is_admin>
[65]67<tr class="tableheader">
68 <td align="center" colspan="5">
[82]69 <input type="radio" name="perms_type" value="clone" <TMPL_IF set_permgroup><TMPL_IF perm_clone> checked="checked"</TMPL_IF></TMPL_IF>/> Clone permissions from an existing user
[65]70 </td>
71</tr>
72<tr>
73 <td align="center" colspan="5">
74 Note: Only users in the current group may be cloned<br>
75 <select name="clonesrc">
[143]76 <option value="0">-</option>
[65]77 <TMPL_LOOP name=clonesrc><option value="<TMPL_VAR NAME=uid>"<TMPL_IF selected> selected</TMPL_IF>><TMPL_VAR NAME=username></option>
78 </TMPL_LOOP></select>
79 </td>
80</tr>
[67]81</TMPL_IF>
82
[65]83<tr class="tableheader">
84 <td align="center" colspan="5">
[82]85 <input type="radio" name="perms_type" value="custom" <TMPL_IF set_permgroup><TMPL_IF perm_custom> checked="checked"</TMPL_IF></TMPL_IF>/> Specify permissions
[65]86 </td>
87</tr>
[67]88<TMPL_INCLUDE name="permlist.tmpl">
[65]89
90</table>
91
92 </td>
93 </tr>
94
[82]95 <tr><td colspan="2" class="tblsubmit"><input type="submit" value="<TMPL_IF add>Add<TMPL_ELSE>Update</TMPL_IF> user" /></td></tr>
[65]96
[24]97 </table>
98
[38]99</fieldset>
[24]100</form>
101
102</td></tr>
103</table>
Note: See TracBrowser for help on using the repository browser.