2008-09-11 18:51:00 +02:00
|
|
|
<?php
|
2008-11-25 16:57:29 +01:00
|
|
|
|
|
|
|
/* Service creation: only useful services are created */
|
2008-09-11 18:51:00 +02:00
|
|
|
$userservice =& ServiceFactory::getServiceInstance('UserService');
|
|
|
|
|
2008-11-25 16:57:29 +01:00
|
|
|
$currentObjectUser = $userservice->getCurrentObjectUser();
|
2008-09-11 18:51:00 +02:00
|
|
|
|
|
|
|
$this->includeTemplate($GLOBALS['top_include']);
|
|
|
|
|
|
|
|
echo '<ol id="bookmarks">';
|
2008-11-25 16:57:29 +01:00
|
|
|
|
|
|
|
foreach($users as $user) {
|
2008-09-11 18:51:00 +02:00
|
|
|
echo '<li class="xfolkentry">'."\n";
|
|
|
|
|
|
|
|
echo '<div class="link">';
|
2008-11-25 16:57:29 +01:00
|
|
|
echo '<a href="'.createURL('profile', $user->getUsername()).'">'.$user->getUsername().'</a>';
|
2008-09-11 18:51:00 +02:00
|
|
|
echo '</div>';
|
|
|
|
|
2008-11-25 16:57:29 +01:00
|
|
|
if($user->getUsername() != $currentObjectUser->getUsername()) {
|
2008-09-11 18:51:00 +02:00
|
|
|
echo '<div class="meta">';
|
2008-11-25 16:57:29 +01:00
|
|
|
echo '<a href="'.createURL('admin','delete/'.$user->getUsername()).'" onclick="return confirm(\''.T_('Are you sure?').'\');">'.T_('Delete').'</a>';
|
2008-09-11 18:51:00 +02:00
|
|
|
echo '</div>';
|
|
|
|
}
|
|
|
|
|
|
|
|
echo '</li>'."\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->includeTemplate('sidebar.tpl');
|
|
|
|
$this->includeTemplate($GLOBALS['bottom_include']);
|
|
|
|
|
|
|
|
?>
|