summaryrefslogtreecommitdiffstats
path: root/pages/Users.xml
blob: aa853b440a603e17d123c4841af423c2853ac370 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="UTF-8" ?>
<page>
  <info>
    <name>Users</name>
    <template>phpexec</template>
    <access>0:0</access>
  </info>
  <data>
    <code>
      <![CDATA[
<?PHP
  Uses('links');
  
  
  $title = '{{Users}}';
  
  echo '<h2>{{Users}}</h2>';
  
  $res = $GLOBALS['db']->Execute('SELECT id, user FROM users ORDER BY user');
  
  echo '<form method="post" action="' . $GLOBALS['links']->GetNeonLink('Users:Handle') . '">';
  
  echo '<select name="id" size="15" class="userlist spaced-bottom">';
  
  while($row = $res->FetchRow()) {
    echo '<option value="' . $row[0] . '">' . $row[1] . '</option>';
  }
  
  echo '</select>';
  echo '<br />';
  echo '<input type="submit" name="new" value="{{New}}" /> ';
  echo '<input type="submit" name="group" value="{{Change group}}" /> ';
  echo '<input type="submit" name="password" value="{{Change password}}" /> ';
  echo '<input type="submit" name="rename" value="{{Rename}}" /> ';
  echo '<input type="submit" name="delete" value="{{Delete}}" />';
  echo '</form>';
?>
      ]]>
    </code>
  </data>
</page>