From 1d059dc06d24e02c858c43d70eaa70453d51cdff Mon Sep 17 00:00:00 2001 From: mensonge Date: Thu, 11 Sep 2008 16:51:00 +0000 Subject: New Feature: add users admin page with delete function git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@146 b3834d28-1941-0410-a4f8-b48e95affb8f --- templates/userlist.tpl.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 templates/userlist.tpl.php (limited to 'templates/userlist.tpl.php') diff --git a/templates/userlist.tpl.php b/templates/userlist.tpl.php new file mode 100644 index 0000000..e05ea6d --- /dev/null +++ b/templates/userlist.tpl.php @@ -0,0 +1,34 @@ +getCurrentUser(); +$currentUserID = $userservice->getCurrentUserId(); +$currentUsername = $currentUser[$userservice->getFieldName('username')]; + + +$this->includeTemplate($GLOBALS['top_include']); + +echo '
    '; + +foreach(array_keys($users) as $key) { + + echo '
  1. '."\n"; + + echo ''; + + if($users[$key][$userservice->getFieldName('username')] != $currentUsername) { + echo '
    '; + echo ''.T_('Delete').''; + echo '
    '; + } + + echo '
  2. '."\n"; +} + +$this->includeTemplate('sidebar.tpl'); +$this->includeTemplate($GLOBALS['bottom_include']); + +?> -- cgit v1.2.3