check(9);
include dirname(__FILE__).'/inc/connexion.php';
$mySubMenu->addItem(''.__('New editor').'','redacteur.php','images/ico_new.png',false);
openPage(__('List of editors'));
echo '
'.__('List of editors').'
';
$rsUser = $blog->getUser();
while(!$rsUser->EOF())
{
$user_level = $rsUser->field('user_level');
$user_nb_post = $rsUser->field('nb_post');
if ($user_level == 9) {
$user_level = __('administrator');
} elseif ($user_level == 5) {
$user_level = __('advanced editor');
} elseif ($user_level == 1) {
$user_level = __('editor');
} elseif ($user_level == 0) {
$user_level = __('inactive');
}
$style = ($rsUser->f('user_level') == 0) ? ' style="color:#999;"' : '';
echo ''.
'
'.$rsUser->field('user_id').'
'.
'
'.
$rsUser->field('user_prenom').' '.$rsUser->field('user_nom').
' ('.$user_level.')'.
' [ '.
__('edit').' - ';
if ($user_nb_post > 0) {
echo $user_nb_post.' billet';
echo ($user_nb_post > 1) ? 's' : '';
} else {
echo ''.
__('delete').'';
}
echo ' ]
';
$rsUser->moveNext();
}
closePage();
?>