checkProfil(PROFIL_ADMIN); # Edition des utilisateurs if (!empty($_POST)) { $plxAdmin->editUsers($_POST); header('Location: parametres_users.php'); exit; } # Tableau des profils $aProfils = array( PROFIL_ADMIN => L_PROFIL_ADMIN, PROFIL_MANAGER => L_PROFIL_MANAGER, PROFIL_MODERATOR => L_PROFIL_MODERATOR, PROFIL_EDITOR => L_PROFIL_EDITOR, PROFIL_WRITER => L_PROFIL_WRITER ); # On inclut le header include(dirname(__FILE__).'/top.php'); ?>

plxPlugins->callHook('AdminUsersTop')) # Hook Plugins ?>
aUsers) { foreach($plxAdmin->aUsers as $_userid => $_user) { if (!$_user['delete']) { echo ''; echo ''; echo ''; echo ''; echo ''; } } # On récupère le dernier identifiant $a = array_keys($plxAdmin->aUsers); rsort($a); } else { $a['0'] = 0; } $new_userid = str_pad($a['0']+1, 3, "0", STR_PAD_LEFT); ?> '; ?>
Utilisateur '.$_userid.''; plxUtils::printInput($_userid.'_name', plxUtils::strCheck($_user['name']), 'text', '20-255'); echo ''; plxUtils::printInput($_userid.'_login', plxUtils::strCheck($_user['login']), 'text', '11-255'); echo ''; plxUtils::printInput($_userid.'_password', '', 'password', '11-255'); echo ''; if($_userid=='001') { plxUtils::printInput($_userid.'_profil', $_user['profil'], 'hidden'); plxUtils::printInput($_userid.'_active', $_user['active'], 'hidden'); plxUtils::printSelect($_userid.'__profil', $aProfils, $_user['profil'], true, 'readonly'); echo ''; plxUtils::printSelect($_userid.'__active', array('1'=>L_YES,'0'=>L_NO), $_user['active'], true, 'readonly'); } else { plxUtils::printSelect($_userid.'_profil', $aProfils, $_user['profil']); echo ''; plxUtils::printSelect($_userid.'_active', array('1'=>L_YES,'0'=>L_NO), $_user['active']); } echo ''.L_OPTIONS.'
  '; plxUtils::printInput($new_userid.'_newuser', 'true', 'hidden'); plxUtils::printInput($new_userid.'_name', '', 'text', '20-255'); plxUtils::printInput($new_userid.'_infos', '', 'hidden'); echo ''; plxUtils::printInput($new_userid.'_login', '', 'text', '11-255'); echo ''; plxUtils::printInput($new_userid.'_password', '', 'password', '11-255'); echo ''; plxUtils::printSelect($new_userid.'_profil', $aProfils, PROFIL_WRITER); echo ''; plxUtils::printSelect($new_userid.'_active', array('1'=>L_YES,'0'=>L_NO), '1'); echo ' 

L_FOR_SELECTION, 'delete' => L_DELETE), '', false, '', 'id_selection') ?>

plxPlugins->callHook('AdminUsersFoot')); # On inclut le footer include(dirname(__FILE__).'/foot.php'); ?>