Ajout message d'info

This commit is contained in:
Rodolphe Quiedeville 2003-07-07 09:05:51 +00:00
parent 0f559ce163
commit d3ece7407e

View File

@ -98,16 +98,10 @@ if ($action == 'update')
* Generation du pdf * Generation du pdf
* *
*/ */
if ($action == 'generate') if ($action == 'generate' && $id)
{ {
if ($id) fichinter_pdf_create($db, $id);
{ $mesg = "PDF généré";
print fichinter_pdf_create($db, $id);
}
else
{
print $db->error();
}
} }
/* /*
* *
@ -329,7 +323,7 @@ if ($action == 'edit')
if ($id) if ($id)
{ {
print_titre("Fiche d'intervention"); print_fiche_titre("Fiche d'intervention",$mesg);
$fichinter = new Fichinter($db); $fichinter = new Fichinter($db);
if ( $fichinter->fetch($id) ) if ( $fichinter->fetch($id) )