JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
404 fake wfpl_main.php
[wfpl-cms.git] / admin_admins.html
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5         <meta charset="utf-8" />
6         <title><!--~$title show {~-->Accounts<!--~}~--></title>
7         <link rel="stylesheet" href="style.css" type="text/css">
8 </head>
9
10 <body>
11 <!--~$body show {~-->
12
13         <!--~form {~-->
14                 <h2><!--~new_msg {~-->Add a new account<!--~}~--><!--~edit_msg {~-->Edit account "~username html~"<!--~}~--></h2>
15
16                 <form action="~$basename~" method="post"><!--~editing {~--><div style="display: none"><input type="hidden" name="edit_id" value="~id attr~"></div><!--~}~-->
17
18                         <div class="caption">Name (optional)</div>
19                         <div class="field"><input type="text" name="name" value="~name attr~"></div>
20
21                         <div class="caption">Username (required)</div>
22                         <div class="field_notes">This is used to log in, and is case sensitive, so you may want to stick with all lowercase</div>
23                         <div class="field"><input type="text" name="username" value="~username attr~"></div>
24
25                         <div class="caption">Password (case sensitive)</div>
26                         <div class="field_notes">If this is blank, the user will be unable to log in.</div>
27                         <!--~editing {~--><div class="field_notes">Below you'll see only the encrypted version of the password. This is the only thing that's stored on the server, so if somebody has forgotten their password, the only thing that can be done about it is setting a new password using this field. If you do not edit this field, their password is unchanged.</div><!--~}~-->
28                         <div class="field"><input type="text" name="password" value="~password attr~"></div>
29
30                         <div class="caption">Role</div>
31                         <div class="field_notes">Set to "None" to disable the account. This is useful if you might want to enable it again with the same password, since (unlike deleting the account) the password is preserved in the database.</div>
32                         <div class="field"><select name="privs"><!--~privs options~--></select></div>
33
34                         <div class="caption">&nbsp;</div>
35                         <div class="field"><input type="submit" name="save" value="Save"></div>
36
37                 </form>
38
39                 <div class="caption">&nbsp;</div>
40                 <div class="field"><!--~id {~--><a href="admin_admins?id=~id~">Cancel</a><!--~}~--><!--~id unset {~--><a href="admin_admins">Cancel</a><!--~}~--></div>
41         <!--~}~-->
42
43         <!--~listings once {~-->
44                 <h2>Accounts Listing</h2>
45
46                 <!--~listings once_if {~-->
47                         <p><a href="admin_admins?new=1">[Add a new account]</a></p>
48
49                         <table cellspacing="0" cellpadding="4" border="0" summary="" class="evenodd">
50                                 <tr><th>Name</th><th>Username</th><th>Role</th><th>&nbsp;</th></tr><!--~listings {~-->
51                                 <tr>
52                                         <td class="listing"><a href="admin_admins?edit_id=~id~">~name html~<!--~name empty {~--><em>(blank)</em><!--~}~--></a></td>
53                                         <td class="listing"><a href="admin_admins?edit_id=~id~">~username html~<!--~username empty {~--><em>(blank)</em><!--~}~--></a></td>
54                                         <td class="listing"><a href="admin_admins?edit_id=~id~">~privs html~<!--~privs empty {~--><em>(blank)</em><!--~}~--></a></td>
55                                         <td><a href="admin_admins?admin_admins_delete_id=~id~" onclick="return confirm('Permanently delete?')">[delete this account]</a></td>
56                                 </tr><!--~}~-->
57
58                         </table>
59                 <!--~}~-->
60                 <!--~listings once_else {~-->
61                         <p>No accounts in database.</p>
62                 <!--~}~-->
63
64                 <p><a href="admin_admins?new=1">[Add a new account]</a></p>
65         <!--~}~-->
66
67 <!--~}~-->
68 </body>
69 </html>