From f45887587712f77f89565414ec30c0dffcfd3dd8 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 23 Mar 2003 17:46:19 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20d'un=20test=20pour=20la=20generation=20?= =?UTF-8?q?des=20fichiers=20ps=20et=20pdf=20si=20le=20fichier=20n'existe?= =?UTF-8?q?=20pas=20et=20que=20la=20fiche=20est=20valid=E9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/fichinter/fiche.php3 | 39 ++++++++++++++++++++++++++++++------- 1 file changed, 32 insertions(+), 7 deletions(-) diff --git a/htdocs/fichinter/fiche.php3 b/htdocs/fichinter/fiche.php3 index 59738d9d75a..3ec6fc51026 100644 --- a/htdocs/fichinter/fiche.php3 +++ b/htdocs/fichinter/fiche.php3 @@ -400,24 +400,49 @@ if ($id) print ''; } - print ''; - print ""; - + /* + * + */ print '
'; - if ($fichinter->statut == 0 && $user->societe_id == 0) + if ($user->societe_id == 0) { - print ''; + if ($fichinter->statut == 0) + { + print ''; + } + else + { + print ''; + } + print ''; - print ''; + $file = $conf->fichinter->outputdir . "/$fichinter->ref/$fichinter->ref.pdf"; + + if ($fichinter->statut == 0 or !file_exists($file)) + { + print ''; + } + else + { + print ''; + } + print ''; - print ''; + if ($fichinter->statut == 0) + { + print ''; + } + else + { + print ''; + } } else
Mettre à jourMettre à jour--Génération du pdfGénération du pdf--ValiderValider-