From 2118f094f7d997908cb541891722fea7d291a000 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sat, 16 Apr 2005 14:00:07 +0000 Subject: [PATCH] Generation du pdf --- htdocs/expedition/fiche.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/htdocs/expedition/fiche.php b/htdocs/expedition/fiche.php index cadb6d85e57..224416d310d 100644 --- a/htdocs/expedition/fiche.php +++ b/htdocs/expedition/fiche.php @@ -21,8 +21,8 @@ * */ -/*! - \file htdocs/expedition/fiche.php +/*! + \file htdocs/expedition/fiche.php \ingroup expedition \brief Fiche descriptive d'une expedition \version $Revision$ @@ -47,7 +47,8 @@ if ($user->societe_id > 0) } /* * - */ + */ + if ($_POST["action"] == 'add') { $expedition = new Expedition($db); @@ -88,6 +89,7 @@ if ($_POST["action"] == 'confirm_valid' && $_POST["confirm"] == 'yes' && $user-> $expedition = new Expedition($db); $expedition->fetch($_GET["id"]); $result = $expedition->valid($user); + $expedition->PdfWrite(); } if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == 'yes') @@ -101,6 +103,13 @@ if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == 'yes') } } +if ($_GET["action"] == 'pdf') +{ + $expedition = new Expedition($db); + $expedition->fetch($_GET["id"]); + $expedition->PdfWrite(); +} + /* * */