aboutsummaryrefslogtreecommitdiffstats
path: root/admin/templates/users.php
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-03-02 11:56:48 +0100
committerJakob Sack <kde@jakobsack.de>2011-03-02 11:56:48 +0100
commit66ac355f7845c56589dcd6c10a92a25af48c97fc (patch)
tree6f8563c33ece2b61cfe5482bf755a87d579ed378 /admin/templates/users.php
parent015ab0eb6424bbde90f36a087326e769233ac577 (diff)
downloadnextcloud-server-66ac355f7845c56589dcd6c10a92a25af48c97fc.tar.gz
nextcloud-server-66ac355f7845c56589dcd6c10a92a25af48c97fc.zip
Getting rid of Smarty, using our own template system
Diffstat (limited to 'admin/templates/users.php')
-rw-r--r--admin/templates/users.php44
1 files changed, 44 insertions, 0 deletions
diff --git a/admin/templates/users.php b/admin/templates/users.php
new file mode 100644
index 00000000000..a5dccbe995c
--- /dev/null
+++ b/admin/templates/users.php
@@ -0,0 +1,44 @@
+<?php
+/*
+ * Template for admin pages
+ */
+?>
+<h1>Administration</h1>
+<h2>Users</h2>
+
+<table>
+ <thead>
+ <tr>
+ <th></th>
+ <th>Name</th>
+ <th>Groups</th>
+ </tr>
+ <thead>
+ <tbody>
+ <? foreach( $_["users"] as $user ){ ?>
+ <tr>
+ <td><input type="checkbox"></td>
+ <td><? echo $user["name"] ?></td>
+ <td><? echo $user["groups"] ?></td>
+ </tr>
+ <? } ?>
+ </tbody>
+</table>
+
+<h2>Groups</h2>
+<table>
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th></th>
+ </tr>
+ <thead>
+ <tbody>
+ <? foreach( $_["groups"] as $group ){ ?>
+ <tr>
+ <td><? echo $group["name"] ?></td>
+ <td>remove</td>
+ </tr>
+ <? } ?>
+ </tbody>
+</table>