diff --git a/htdocs/compta/deplacement/fiche.php b/htdocs/compta/deplacement/fiche.php index 6106e40fa70..2fbd1c1a077 100644 --- a/htdocs/compta/deplacement/fiche.php +++ b/htdocs/compta/deplacement/fiche.php @@ -23,6 +23,14 @@ require("./pre.inc.php"); $mesg = ''; +if ($HTTP_POST_VARS["action"] == 'confirm_delete' && $HTTP_POST_VARS["confirm"] == "yes") +{ + $deplacement = new Deplacement($db); + $deplacement->delete($id); + Header("Location: index.php"); +} + + if ($HTTP_POST_VARS["action"] == 'add' && $HTTP_POST_VARS["cancel"] <> 'Annuler') { $deplacement = new Deplacement($db); @@ -109,6 +117,31 @@ else if ( $result ) { + /* + * Confirmation de la suppression de l'adhérent + * + */ + + if ($action == 'delete') + { + + print '
\n"; + } + + if ($action == 'edit') { print_fiche_titre('Fiche déplacement : '.$product->ref, $mesg); @@ -166,8 +199,6 @@ else print '| - | '; -print '- | '; -print '- | '; if ($action == 'create') { @@ -177,7 +208,10 @@ else { print '[Editer] | '; } -print '- | '; +print '- | '; + +print '- | '; +print '[Supprimer] | '; print '