From dc3a2ac26e42cf122614b4342b5d8e993e5722af Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Sun, 12 Aug 2018 22:40:47 +0200 Subject: [PATCH] standardize code --- htdocs/fourn/commande/card.php | 1 - htdocs/fourn/commande/contact.php | 2 +- htdocs/fourn/commande/dispatch.php | 2 +- htdocs/fourn/commande/document.php | 2 +- htdocs/fourn/commande/index.php | 2 +- htdocs/fourn/commande/info.php | 3 +-- htdocs/fourn/commande/list.php | 2 +- htdocs/fourn/commande/note.php | 3 +-- htdocs/fourn/commande/orderstoinvoice.php | 1 + htdocs/fourn/facture/card.php | 1 - htdocs/fourn/facture/contact.php | 2 +- htdocs/fourn/facture/document.php | 2 +- htdocs/fourn/facture/info.php | 2 +- htdocs/fourn/facture/list.php | 3 +-- htdocs/fourn/facture/note.php | 3 +-- htdocs/fourn/facture/paiement.php | 1 + htdocs/fourn/facture/rapport.php | 2 +- 17 files changed, 15 insertions(+), 19 deletions(-) diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index ff8743fabe9..6ebb90817fd 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -2782,5 +2782,4 @@ elseif (! empty($object->id)) // End of page llxFooter(); - $db->close(); diff --git a/htdocs/fourn/commande/contact.php b/htdocs/fourn/commande/contact.php index 262d73a6082..f62ccd03331 100644 --- a/htdocs/fourn/commande/contact.php +++ b/htdocs/fourn/commande/contact.php @@ -203,6 +203,6 @@ if ($id > 0 || ! empty($ref)) } } - +// End of page llxFooter(); $db->close(); diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php index 609aa792511..20664b6d679 100644 --- a/htdocs/fourn/commande/dispatch.php +++ b/htdocs/fourn/commande/dispatch.php @@ -873,6 +873,6 @@ if ($id > 0 || ! empty($ref)) { } } +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/fourn/commande/document.php b/htdocs/fourn/commande/document.php index 19a084cde86..41e982284fc 100644 --- a/htdocs/fourn/commande/document.php +++ b/htdocs/fourn/commande/document.php @@ -189,6 +189,6 @@ else exit; } - +// End of page llxFooter(); $db->close(); diff --git a/htdocs/fourn/commande/index.php b/htdocs/fourn/commande/index.php index 4eead48abf4..1d5cfc2097b 100644 --- a/htdocs/fourn/commande/index.php +++ b/htdocs/fourn/commande/index.php @@ -432,6 +432,6 @@ print "
"; print ''; +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/fourn/commande/info.php b/htdocs/fourn/commande/info.php index 016e9007fb9..747247a38c2 100644 --- a/htdocs/fourn/commande/info.php +++ b/htdocs/fourn/commande/info.php @@ -221,7 +221,6 @@ if (!empty($object->id)) show_actions_done($conf,$langs,$db,$object,null,0,$actioncode, '', $filters); } - - +// End of page llxFooter(); $db->close(); diff --git a/htdocs/fourn/commande/list.php b/htdocs/fourn/commande/list.php index 44ae098f195..4123e73d522 100644 --- a/htdocs/fourn/commande/list.php +++ b/htdocs/fourn/commande/list.php @@ -1197,6 +1197,6 @@ else dol_print_error($db); } - +// End of page llxFooter(); $db->close(); diff --git a/htdocs/fourn/commande/note.php b/htdocs/fourn/commande/note.php index 44edbdc8f00..d44c1348b15 100644 --- a/htdocs/fourn/commande/note.php +++ b/htdocs/fourn/commande/note.php @@ -155,7 +155,6 @@ if ($id > 0 || ! empty($ref)) } } - +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/fourn/commande/orderstoinvoice.php b/htdocs/fourn/commande/orderstoinvoice.php index 4c229518eba..ee6cc6c6af8 100644 --- a/htdocs/fourn/commande/orderstoinvoice.php +++ b/htdocs/fourn/commande/orderstoinvoice.php @@ -617,5 +617,6 @@ if (($action != 'create' && $action != 'add') && !$error) { dol_htmloutput_mesg($mesg, $mesgs); +// End of page llxFooter(); $db->close(); diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php index 834621c85cb..3a8dbca7a70 100644 --- a/htdocs/fourn/facture/card.php +++ b/htdocs/fourn/facture/card.php @@ -3202,7 +3202,6 @@ else } } - // End of page llxFooter(); $db->close(); diff --git a/htdocs/fourn/facture/contact.php b/htdocs/fourn/facture/contact.php index 6b54e28987f..923a9af03da 100644 --- a/htdocs/fourn/facture/contact.php +++ b/htdocs/fourn/facture/contact.php @@ -276,6 +276,6 @@ if ($id > 0 || ! empty($ref)) } } - +// End of page llxFooter(); $db->close(); diff --git a/htdocs/fourn/facture/document.php b/htdocs/fourn/facture/document.php index 9c111ebe773..064ffd37b00 100644 --- a/htdocs/fourn/facture/document.php +++ b/htdocs/fourn/facture/document.php @@ -260,6 +260,6 @@ else print $langs->trans('ErrorUnknown'); } - +// End of page llxFooter(); $db->close(); diff --git a/htdocs/fourn/facture/info.php b/htdocs/fourn/facture/info.php index 1297c44037b..0ba10aa1985 100644 --- a/htdocs/fourn/facture/info.php +++ b/htdocs/fourn/facture/info.php @@ -126,6 +126,6 @@ print ''; print ''; +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/fourn/facture/list.php b/htdocs/fourn/facture/list.php index 98a6956a809..3d7ac96f47e 100644 --- a/htdocs/fourn/facture/list.php +++ b/htdocs/fourn/facture/list.php @@ -1167,7 +1167,6 @@ else dol_print_error($db); } - +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/fourn/facture/note.php b/htdocs/fourn/facture/note.php index 11d59d1170c..3ed5d66829a 100644 --- a/htdocs/fourn/facture/note.php +++ b/htdocs/fourn/facture/note.php @@ -214,7 +214,6 @@ if ($object->id > 0) dol_fiche_end(); } - +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php index 74593cb8675..79bda41264e 100644 --- a/htdocs/fourn/facture/paiement.php +++ b/htdocs/fourn/facture/paiement.php @@ -941,5 +941,6 @@ if (empty($action)) } } +// End of page llxFooter(); $db->close(); diff --git a/htdocs/fourn/facture/rapport.php b/htdocs/fourn/facture/rapport.php index c20b26b1263..e8696f0bdca 100644 --- a/htdocs/fourn/facture/rapport.php +++ b/htdocs/fourn/facture/rapport.php @@ -165,6 +165,6 @@ if ($year) } } +// End of page llxFooter(); - $db->close();