1d059dc06d
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@146 b3834d28-1941-0410-a4f8-b48e95affb8f
35 lines
1.1 KiB
PHP
35 lines
1.1 KiB
PHP
<?php
|
|
|
|
$userservice =& ServiceFactory::getServiceInstance('UserService');
|
|
|
|
$currentUser = $userservice->getCurrentUser();
|
|
$currentUserID = $userservice->getCurrentUserId();
|
|
$currentUsername = $currentUser[$userservice->getFieldName('username')];
|
|
|
|
|
|
$this->includeTemplate($GLOBALS['top_include']);
|
|
|
|
echo '<ol id="bookmarks">';
|
|
|
|
foreach(array_keys($users) as $key) {
|
|
|
|
echo '<li class="xfolkentry">'."\n";
|
|
|
|
echo '<div class="link">';
|
|
echo '<a href="'.createURL('profile', $users[$key][$userservice->getFieldname('username')]).'">'.$users[$key][$userservice->getFieldName('username')].'</a>';
|
|
echo '</div>';
|
|
|
|
if($users[$key][$userservice->getFieldName('username')] != $currentUsername) {
|
|
echo '<div class="meta">';
|
|
echo '<a href="'.createURL('admin','delete/'.$users[$key][$userservice->getFieldname('username')]).'" onclick="return confirm(\''.T_('Are you sure?').'\');">'.T_('Delete').'</a>';
|
|
echo '</div>';
|
|
}
|
|
|
|
echo '</li>'."\n";
|
|
}
|
|
|
|
$this->includeTemplate('sidebar.tpl');
|
|
$this->includeTemplate($GLOBALS['bottom_include']);
|
|
|
|
?>
|