Ajout message d'info
This commit is contained in:
parent
0f559ce163
commit
d3ece7407e
@ -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) )
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user