aboutsummaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-18 15:07:40 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-18 15:07:40 +0000
commit036fec5442590dfb61d88afa5b9154c48037cb17 (patch)
treec75c4b41ee1860bf44f94dd7572a1bd6cbbbb114 /admin
parente06d5db3f81d9357329e643b1e3c170d7d47324e (diff)
downloadelgg-036fec5442590dfb61d88afa5b9154c48037cb17.tar.gz
elgg-036fec5442590dfb61d88afa5b9154c48037cb17.tar.bz2
Further fixes to #41 with admin panel support
git-svn-id: https://code.elgg.org/elgg/trunk@968 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'admin')
-rw-r--r--admin/user/index.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/admin/user/index.php b/admin/user/index.php
index 947904a0c..027b71b4c 100644
--- a/admin/user/index.php
+++ b/admin/user/index.php
@@ -17,9 +17,20 @@
// Make sure only valid admin users can see this
admin_gatekeeper();
-
+ // Are we performing a search
+ $search = get_input('search');
+ $limit = get_input('limit', 10);
+ $offset = get_input('offset', 0);
+
+ if ($search){
+ $entities = search_for_user($search, $limit, $offset, "",false);
+ $count = search_for_user($search, $limit, $offset, "",true);
+
+ $result = elgg_view_entity_list($entities, $count, $offset, $limit);
+ } else
+ $result = list_entities_from_metadata("", $tag, "user", "");
// Display main admin menu
- page_draw(elgg_echo("admin:user"),elgg_view_layout("one_column", elgg_view("admin/user")));
+ page_draw(elgg_echo("admin:user"),elgg_view_layout("one_column", elgg_view("admin/user", array('list' => $result))));
?> \ No newline at end of file