2008-12-03 14:24:17 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$this->includeTemplate($GLOBALS['top_include']);
|
|
|
|
|
|
|
|
echo '<h3>'.T_('Users management').'</h3>';
|
|
|
|
|
|
|
|
echo '<ol id="bookmarks">';
|
|
|
|
|
|
|
|
foreach($users as $user) {
|
|
|
|
echo '<li class="xfolkentry">'."\n";
|
|
|
|
|
|
|
|
echo '<div class="link">';
|
2009-02-11 13:39:44 +01:00
|
|
|
echo '<a href="'.createURL('profile', $user->getUsername()).'">'.$user->getUsername().'</a>';
|
2010-10-09 12:54:33 +02:00
|
|
|
echo ' - <span title="'. T_('Public/Shared/Private') .'">'. $user->getNbBookmarks('public') .' / '. $user->getNbBookmarks('shared') .' / '. $user->getNbBookmarks('private') .' '. T_('bookmark(s)') .'</span>';
|
2008-12-03 14:24:17 +01:00
|
|
|
echo '</div>';
|
|
|
|
|
2008-12-05 08:25:04 +01:00
|
|
|
if($user->getUsername() != $currentUser->getUsername()) {
|
2008-12-03 14:24:17 +01:00
|
|
|
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";
|
|
|
|
}
|
|
|
|
echo '</ol>';
|
|
|
|
?>
|
|
|
|
<h3><?php echo T_('Other actions')?></h3>
|
|
|
|
<p>
|
2008-12-03 14:28:00 +01:00
|
|
|
<a href="<?php echo createURL('admin','checkUrl/') ?>"> <?php echo T_('Check all URLs (May take some time)') ?></a>
|
2008-12-03 14:24:17 +01:00
|
|
|
</p>
|
|
|
|
<?php
|
|
|
|
$this->includeTemplate('sidebar.tpl');
|
|
|
|
$this->includeTemplate($GLOBALS['bottom_include']);
|
|
|
|
|
|
|
|
?>
|