summaryrefslogtreecommitdiff
path: root/templates/userlist.tpl.php
blob: 85c1998cf9a92b781d4807ba1bc1863c7448ace9 (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
<?php

/* Service creation: only useful services are created */
$userservice =& ServiceFactory::getServiceInstance('UserService');

$currentObjectUser = $userservice->getCurrentObjectUser();

$this->includeTemplate($GLOBALS['top_include']);

echo '<ol id="bookmarks">';

foreach($users as $user) {
	echo '<li class="xfolkentry">'."\n";

	echo '<div class="link">';
	echo '<a href="'.createURL('profile', $user->getUsername()).'">'.$user->getUsername().'</a>';
	echo '</div>';

	if($user->getUsername() != $currentObjectUser->getUsername()) {
	    echo '<div class="meta">';
	    echo '<a href="'.createURL('admin','delete/'.$user->getUsername()).'" onclick="return confirm(\''.T_('Are you sure?').'\');">'.T_('Delete').'</a>';
	    echo '</div>';
	}

	echo '</li>'."\n";
}

$this->includeTemplate('sidebar.tpl');
$this->includeTemplate($GLOBALS['bottom_include']);

?>