/[scire]/scire/.smarty/templates/user.tpl
Gentoo

Contents of /scire/.smarty/templates/user.tpl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 99 - (show annotations) (download) (as text)
Wed Jun 14 01:52:27 2006 UTC (11 years, 8 months ago) by codeman
File MIME type: application/vnd.groove-tool-template
File size: 7304 byte(s)
 various updates around the board.  mainly focusing on client and user
 pages.  some DB updates and asthetic changes.
 preparing for user sessions


1 {include file="header.tpl" title="Users"}
2 <form action="" method="post" name="edit_userform">
3 {if $Action eq "addgroup"}
4 <table width="100%" border="0" cellspacing="0" cellpadding="5">
5 <tr><td class="boxtitle">Add user to group</td></tr>
6 <tr>
7 <td colspan="2" align="center" valign="top">
8 <table class="box" width="100%" border="1" cellspacing="0" cellpadding="0">
9 <tr>
10 <td class="boxtitle" width="15">Add</td><td class="boxtitle">Group Name</td>
11 </tr>
12 {foreach from=$groups name=ugroup item=item key=id}
13 <tr>
14 <td><input type="checkbox" name="addgroupid[]" value="{$id}"
15 {if isset($ingroups)} {if in_array($id, $ingroups)} checked {/if} {/if}
16 ></td>
17 <td>{$item}</td>
18 </tr>
19 {/foreach}
20 <tr><td>
21 <input type="hidden" name="userid" value="{$userid}">
22 <input type="hidden" name="gacl_userid" value="{$gacl_userid}">
23 <input type="submit" name="addgroup_confirm" value="Save Changes">
24 </td></tr>
25 </table>
26 </td>
27 </tr>
28 </table>
29 {elseif $Action eq "create"}
30 <table width="100%" border="0" cellspacing="0" cellpadding="5">
31 <tr>
32 <td colspan="2" align="center" valign="top">
33 <table class="box" width="100%" border="1" cellspacing="0" cellpadding="0">
34 <tr>
35 <td class="boxtitle">User</td><td class="boxtitle">Groups</td>
36 </tr>
37 <tr>
38 <td>
39 <table border="0" cellspacing="0" cellpadding="5">
40 <tr>
41 <td><label for="addusername">*Username:</label></td>
42 <td><input type="text" id="addusername" name="addusername" /></td>
43 <td><label for="passwd">*Password:</label></td>
44 <td><input type="password" id="passwd" name="passwd" /></td>
45
46 </tr>
47 <tr>
48 <td><label for="real_name">Real name:</label></td>
49 <td><input type="text" id="real_name" name="real_name" /></td>
50 <td><label for="passwd2">Confirm Password:</label></td>
51 <td><input type="password" id="passwd2" name="passwd2" /></td>
52
53 </tr>
54 <tr>
55 <td><label for="comment">Comment:</label></td>
56 <td><input type="text" id="comment" name="comment" /></td>
57 <td><label for="status">Status:</label></td>
58 <td><select id="status" name="status" size="1">
59 <option value="active" selected="selected">Active</option>
60 <option value="disabled">Disabled</option>
61 </select>
62 </td>
63 </tr>
64 <tr>
65 <td><label for="email">*Email Address:</label></td>
66 <td><input type="text" id="email" name="email" /></td>
67 <td><label for="phone">Phone:</label></td>
68 <td><input type="text" id="phone" name="phone" /></td>
69 </tr>
70 <tr>
71 <td><label for="pager">Pager:</label></td>
72 <td><input type="text" id="pager" name="pager" /></td>
73 </tr>
74 </table>
75 <p><input type="submit" name="AddUserSubmit" value="Add User" /></p>
76 </td>
77 <td>
78 <table>
79 <tr><td>Assign user to the following groups:</td></tr>
80 <tr><td>
81 <select name="groups[]" size="10" multiple="multiple" id="groups">
82 {foreach from=$groups item=ugroup key=id}
83 <option value="{$id}">{$ugroup}</option>
84 {/foreach}
85 </select>
86 </td>
87 </tr></table>
88 </td>
89 </tr>
90 </table>
91 </td>
92 </tr>
93 {elseif $Action eq "edit"}
94 <table width="100%" border="0" cellspacing="0" cellpadding="5">
95 <tr>
96 <td colspan="2" align="center" valign="top">
97 <table class="box" width="100%" border="1" cellspacing="0" cellpadding="0">
98 <tr>
99 <td class="boxtitle">User</td>
100 </tr>
101 <tr>
102 <td>
103 <table border="0" cellspacing="0" cellpadding="5">
104 <tr>
105 <td><label for="editusername">*Username:</label></td>
106 <td><input type="hidden" id="editusername" name="editusername" value="{$user.username}">{$user.username}</td>
107 <td><label for="passwd">*Password:</label></td>
108 <td><input type="password" id="passwd" name="passwd" disabled /></td>
109 </tr>
110 <tr>
111 <td><label for="real_name">Real name:</label></td>
112 <td><input type="text" id="real_name" name="real_name" value="{$user.real_name}" /></td>
113 <td><label for="passwd2">Confirm Password:</label></td>
114 <td><input type="password" id="passwd2" name="passwd2" disabled /></td>
115 </tr>
116 <tr>
117 <td><label for="comment">Comment:</label></td>
118 <td><input type="text" id="comment" name="comment" value="{$user.comment}" /></td>
119 <td><label for="status">Status:</label></td>
120 <td>
121 <select id="status" name="status" size="1">
122 <option value="active" selected="selected">Active</option>
123 <option value="disabled">Disabled</option>
124 </select>
125 </td>
126 </tr>
127 <tr>
128 <td><label for="email">*Email Address:</label></td>
129 <td><input type="text" id="email" name="email" value="{$user.email}" /></td>
130 <td><label for="phone">Phone:</label></td>
131 <td><input type="text" id="phone" name="phone" value="{$user.phone}" /></td>
132 </tr>
133 <tr>
134 <td><label for="pager">Pager:</label></td>
135 <td><input type="text" id="pager" name="pager" value="{$user.pager}" /></td>
136 </tr>
137 </table><input type="hidden" name="userid" value="{$user.userid}">
138 <input type="hidden" name="gacl_userid" value="{$gacl_userid}">
139 <p><input type="submit" name="EditUserSubmit" value="Update" /></p>
140 </td>
141 </tr>
142 </table>
143 </td>
144 </tr>
145 <tr>
146 <td align="center" valign="top">
147 <table class="box" width="100%" border="1" cellspacing="0" cellpadding="0">
148 <tr>
149 <td class="boxtitle">Groups</td>
150 </tr>
151 <tr>
152 <td>
153 <table class="table" width="100%" border="1" cellspacing="0" cellpadding="0">
154 <tr>
155 <th>Groupname</th>
156 <th>Actions</th>
157 </tr>
158 {section name=group loop=$groups}
159 <tr>
160 <td>{$groups[group].name}{if $groups[group].parent} (subgroup of {$groups[group].parent}){/if}</td>
161 <td><input type="submit" name="rmug_{$groups[group].id}" value="Remove"></td>
162 </tr>
163 {/section}
164 <tr><td><a href="user.php?userid={$user.userid}&gacl_userid={$gacl_userid}&Action=addgroup">Add user to a group</a></td></tr>
165 </table>
166 </td>
167 </tr>
168 </table>
169 </td>
170 <td align="center" valign="top">
171 <table class="box" width="100%" border="1" cellspacing="0" cellpadding="0">
172 <tr>
173 <td class="boxtitle">Permissions</td>
174 </tr>
175 <tr>
176 <td>
177 <table class="table" width="100%" border="1" cellspacing="0" cellpadding="0">
178 <tr>
179 <th>Permission</th>
180 <th>On</th>
181 <th>Actions</th>
182 </tr>
183 <tr>
184 <td>Install packages</td>
185 <td>@frontend, workstation12</td>
186 <td><form id="form1" name="form1" method="post" action=""><input type="hidden" name="id" value="1" /><input type="submit" name="submit" value="Remove" /></form></td>
187 </tr>
188 <tr>
189 <td>Update packages</td>
190 <td>@db, @frontend, workstation12</td>
191 <td><form id="form2" name="form2" method="post" action=""><input type="hidden" name="id" value="2" /><input type="submit" name="submit" value="Remove" /></form></td>
192 </tr>
193 </table>
194 </td>
195 </tr>
196 </table>
197 </td>
198 </tr>
199 </table>
200 {elseif $Action eq "delete"}
201 <b>Are you absolutely SURE you want to delete user {$user.username}?</b>
202 <input type="hidden" name="userid" value="{$user.userid}">
203 <input type="hidden" name="gacl_userid" value="{$gacl_userid}">
204 <input type="submit" name="delete_confirm" value="Yes, get rid of the bastard!"><input type="submit" name="delete_cancel" value="No wait!">
205 {/if}
206 </form>
207 {include file="footer.tpl"}

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20