diff --git a/htdocs/compta/deplacement/fiche.php b/htdocs/compta/deplacement/fiche.php index d0967fd4417..1091f05b2ab 100644 --- a/htdocs/compta/deplacement/fiche.php +++ b/htdocs/compta/deplacement/fiche.php @@ -21,14 +21,24 @@ * */ -/** \file htdocs/compta/deplacement/fiche.php +/** + \file htdocs/compta/deplacement/fiche.php \brief Page fiche d'un déplacement */ require("./pre.inc.php"); +$langs->load("trips"); + +$id=isset($_GET["id"])?$_GET["id"]:$_POST["id"]; + + $mesg = ''; + +/* + * Actions + */ if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == "yes") { $deplacement = new Deplacement($db); @@ -80,39 +90,40 @@ if ($_POST["action"] == 'update' && $_POST["cancel"] <> $langs->trans("Cancel")) } else { - print "Error"; + print $mesg=$langs->trans("ErrorUnknown"); } } + llxHeader(); -/* - * - * - */ $html = new Form($db); + +/* + * Action create + */ if ($_GET["action"] == 'create') { print "