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