15b91c7e66
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@173 b3834d28-1941-0410-a4f8-b48e95affb8f
32 lines
894 B
PHP
32 lines
894 B
PHP
<?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']);
|
|
|
|
?>
|