diff --git a/htdocs/user/fiche.php b/htdocs/user/fiche.php index 414f9bf5433..6fbb3c3ddfd 100644 --- a/htdocs/user/fiche.php +++ b/htdocs/user/fiche.php @@ -76,9 +76,7 @@ if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == "yes") } } -/** - * Action ajout user - */ +// Action ajout user if ($_POST["action"] == 'add' && $user->admin) { $message=""; @@ -129,6 +127,7 @@ if ($_POST["action"] == 'add' && $user->admin) } } +// Action ajout groupe utilisateur if ($_POST["action"] == 'addgroup' && $user->admin) { if ($_POST["group"]) @@ -205,7 +204,9 @@ if ($_POST["action"] == 'update' && $user->admin) } -if (($_GET["action"] == 'password' || $_GET["action"] == 'passwordsend') && $user->admin) +// Action modif mot de passe +if ((($_POST["action"] == 'confirm_password' && $_POST["confirm"] == 'yes') + || $_GET["action"] == 'passwordsend') && $user->admin) { $edituser = new User($db, $_GET["id"]); $edituser->fetch(); @@ -240,6 +241,7 @@ if (($_GET["action"] == 'password' || $_GET["action"] == 'passwordsend') && $use } + llxHeader('',$langs->trans("UserCard")); if ($action == 'create') @@ -341,6 +343,16 @@ else dolibarr_fiche_head($head, $hselected, $langs->trans("User").": ".$fuser->fullname); + /* + * Confirmation modification mot depasse + */ + if ($action == 'password') + { + $html = new Form($db); + $html->form_confirm("fiche.php?id=$fuser->id",$langs->trans("ReinitPassword"),$langs->trans("ConfirmReinitPassword",$fuser->login),"confirm_password"); + print '
'; + } + /* * Confirmation désactivation */ @@ -348,6 +360,7 @@ else { $html = new Form($db); $html->form_confirm("fiche.php?id=$fuser->id",$langs->trans("DisableAUser"),$langs->trans("ConfirmDisableUser",$fuser->login),"confirm_disable"); + print '
'; } /* @@ -357,6 +370,7 @@ else { $html = new Form($db); $html->form_confirm("fiche.php?id=$fuser->id",$langs->trans("DeleteAUser"),$langs->trans("ConfirmDeleteUser",$fuser->login),"confirm_delete"); + print '
'; } @@ -392,7 +406,9 @@ else print "\n"; print ''.$langs->trans("Administrator").''; - print ''.yn($fuser->admin).''; + print ''.yn($fuser->admin); + if ($fuser->admin) print ' '.img_picto($langs->trans("Administrator"),"star"); + print ''; print "\n"; print ''.$langs->trans("DateCreation").''; @@ -477,6 +493,7 @@ else print "\n"; print "
\n"; + print "
\n"; @@ -662,5 +679,5 @@ else $db->close(); -llxFooter("Dernière modification $Date$ révision $Revision$"); +llxFooter('$Date$ - $Revision$'); ?>