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