summaryrefslogtreecommitdiffstats
path: root/pages/Users.xml
diff options
context:
space:
mode:
Diffstat (limited to 'pages/Users.xml')
-rw-r--r--pages/Users.xml41
1 files changed, 41 insertions, 0 deletions
diff --git a/pages/Users.xml b/pages/Users.xml
new file mode 100644
index 0000000..aa853b4
--- /dev/null
+++ b/pages/Users.xml
@@ -0,0 +1,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>