root/trunk/hotstuff/admin/users_select.inc

Revision 237, 0.9 kB (checked in by josef, 3 years ago)

- new administrative interface for Hotstuff, currently called Hotstuff Admin
- manages users, categories, licences
- item approvals and translation settings
- although translations are now be done by all users

Line 
1         <div class="srednja_kolona">
2                 <div class="content_title"><a href="#">User selection</a></div>
3                 <div class="text">
4 Here, an existing user can be selected for editing, or a new user template can be created.
5 <form action="index.php?section=users" method="post">
6
7 <?php
8
9 $res = pg_exec("SELECT name FROM authors");
10
11 ?>
12
13 <?php if (pg_numrows($res) > 0) : ?>
14
15 <select name="form_users_selection">
16 <?php
17
18 for ($i = 0; $i < pg_numrows($res); $i++)
19 {
20         $user = pg_result($res, $i, "name");
21
22         echo "<option>$user</option>\n";
23 }
24
25 ?>
26 </select>
27 <br/>
28
29 <?php endif; ?>
30
31 <?php if (pg_numrows($res) > 0) : ?>
32 <input type="submit" name="action_users_selection" value="Select user"/>
33 <br/>
34 <?php endif; ?>
35 <input type="submit" name="action_users_creation" value="Create new user"/>
36 <br/>
37 <?php if (pg_numrows($res) > 0) : ?>
38 <input type="submit" name="action_users_deletion" value="Delete user"/>
39 <?php endif; ?>
40 </form>
41                 </div>
42                
43         </div>
Note: See TracBrowser for help on using the browser.