From 5b8b4a14153e3b9dcece225ac630d9175b35e24e Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Wed, 8 Aug 2018 12:29:36 +0200 Subject: [PATCH] Standardize --- htdocs/compta/journal/purchasesjournal.php | 2 -- htdocs/compta/journal/sellsjournal.php | 1 - htdocs/compta/localtax/card.php | 1 + htdocs/compta/localtax/clients.php | 1 + htdocs/compta/localtax/index.php | 1 + htdocs/compta/localtax/list.php | 1 + htdocs/compta/localtax/quadri_detail.php | 1 + htdocs/compta/paiement/card.php | 2 +- htdocs/compta/paiement/cheque/card.php | 4 +--- htdocs/compta/paiement/cheque/index.php | 2 +- htdocs/compta/paiement/cheque/list.php | 2 +- htdocs/compta/paiement/index.php | 1 + htdocs/compta/paiement/info.php | 1 + htdocs/compta/paiement/list.php | 1 + htdocs/compta/paiement/rapport.php | 2 +- htdocs/compta/paiement/tovalidate.php | 1 + htdocs/compta/payment_sc/card.php | 4 +--- htdocs/compta/prelevement/bons.php | 3 +-- htdocs/compta/prelevement/card.php | 2 +- htdocs/compta/prelevement/create.php | 1 + htdocs/compta/prelevement/demandes.php | 1 + htdocs/compta/prelevement/factures.php | 3 +-- htdocs/compta/prelevement/fiche-rejet.php | 1 + htdocs/compta/prelevement/fiche-stat.php | 1 + htdocs/compta/prelevement/index.php | 2 +- htdocs/compta/prelevement/ligne.php | 2 +- htdocs/compta/prelevement/list.php | 1 + htdocs/compta/prelevement/rejets.php | 1 + htdocs/compta/prelevement/stats.php | 2 +- htdocs/compta/resultat/clientfourn.php | 2 +- htdocs/compta/resultat/index.php | 1 + htdocs/compta/resultat/result.php | 1 + htdocs/compta/salaries/card.php | 4 +--- htdocs/compta/salaries/document.php | 2 +- htdocs/compta/salaries/index.php | 2 +- htdocs/compta/salaries/info.php | 2 +- htdocs/compta/salaries/stats/index.php | 3 +-- htdocs/compta/sociales/card.php | 3 +-- htdocs/compta/sociales/document.php | 3 +-- htdocs/compta/sociales/index.php | 1 + htdocs/compta/sociales/info.php | 2 +- htdocs/compta/sociales/payments.php | 3 +-- htdocs/compta/stats/byratecountry.php | 3 +-- htdocs/compta/stats/cabyprodserv.php | 1 + htdocs/compta/stats/cabyuser.php | 3 +-- htdocs/compta/stats/casoc.php | 2 +- htdocs/compta/stats/index.php | 2 +- 47 files changed, 45 insertions(+), 43 deletions(-) diff --git a/htdocs/compta/journal/purchasesjournal.php b/htdocs/compta/journal/purchasesjournal.php index 2bc754ccf11..6196d08f741 100644 --- a/htdocs/compta/journal/purchasesjournal.php +++ b/htdocs/compta/journal/purchasesjournal.php @@ -251,8 +251,6 @@ foreach ($tabfac as $key => $val) print ""; - // End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/journal/sellsjournal.php b/htdocs/compta/journal/sellsjournal.php index 24b36cf76c0..8a2d5080a30 100644 --- a/htdocs/compta/journal/sellsjournal.php +++ b/htdocs/compta/journal/sellsjournal.php @@ -282,7 +282,6 @@ foreach ($tabfac as $key => $val) print ""; - // End of page llxFooter(); $db->close(); diff --git a/htdocs/compta/localtax/card.php b/htdocs/compta/localtax/card.php index e8a84fcc9e1..c58a61032ef 100644 --- a/htdocs/compta/localtax/card.php +++ b/htdocs/compta/localtax/card.php @@ -299,6 +299,7 @@ if ($id) print ""; } +// End of page llxFooter(); $db->close(); diff --git a/htdocs/compta/localtax/clients.php b/htdocs/compta/localtax/clients.php index 9502ff46d2d..ce76d74b803 100644 --- a/htdocs/compta/localtax/clients.php +++ b/htdocs/compta/localtax/clients.php @@ -325,5 +325,6 @@ if($calc ==0){ } print ''; +// End of page llxFooter(); $db->close(); diff --git a/htdocs/compta/localtax/index.php b/htdocs/compta/localtax/index.php index c62034ee65c..065c935c600 100644 --- a/htdocs/compta/localtax/index.php +++ b/htdocs/compta/localtax/index.php @@ -587,5 +587,6 @@ pt($db, $sql, $langs->trans("Month")); print ''; +// End of page llxFooter(); $db->close(); diff --git a/htdocs/compta/localtax/list.php b/htdocs/compta/localtax/list.php index 0e32a249f17..37ead35433c 100644 --- a/htdocs/compta/localtax/list.php +++ b/htdocs/compta/localtax/list.php @@ -103,5 +103,6 @@ else dol_print_error($db); } +// End of page llxFooter(); $db->close(); diff --git a/htdocs/compta/localtax/quadri_detail.php b/htdocs/compta/localtax/quadri_detail.php index 31729693f37..17a54f9e3f3 100644 --- a/htdocs/compta/localtax/quadri_detail.php +++ b/htdocs/compta/localtax/quadri_detail.php @@ -640,5 +640,6 @@ else } print ''; +// End of page llxFooter(); $db->close(); diff --git a/htdocs/compta/paiement/card.php b/htdocs/compta/paiement/card.php index 656d6c673f2..31c557373d0 100644 --- a/htdocs/compta/paiement/card.php +++ b/htdocs/compta/paiement/card.php @@ -450,6 +450,6 @@ if ($user->societe_id == 0 && $action == '') print ''; +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/paiement/cheque/card.php b/htdocs/compta/paiement/cheque/card.php index 428f55f9362..647cdadaf04 100644 --- a/htdocs/compta/paiement/cheque/card.php +++ b/htdocs/compta/paiement/cheque/card.php @@ -806,8 +806,6 @@ if ($action != 'new') } } - - +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/paiement/cheque/index.php b/htdocs/compta/paiement/cheque/index.php index b6770e62d33..ecb035caeb8 100644 --- a/htdocs/compta/paiement/cheque/index.php +++ b/htdocs/compta/paiement/cheque/index.php @@ -151,6 +151,6 @@ else print ''; +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/paiement/cheque/list.php b/htdocs/compta/paiement/cheque/list.php index 44fd508dc3d..2f0c6592694 100644 --- a/htdocs/compta/paiement/cheque/list.php +++ b/htdocs/compta/paiement/cheque/list.php @@ -250,6 +250,6 @@ else dol_print_error($db); } - +// End of page llxFooter(); $db->close(); diff --git a/htdocs/compta/paiement/index.php b/htdocs/compta/paiement/index.php index 7f1597b5afc..5bcda011615 100644 --- a/htdocs/compta/paiement/index.php +++ b/htdocs/compta/paiement/index.php @@ -31,5 +31,6 @@ llxHeader(); print load_fiche_titre("Payments"); +// End of page llxFooter(); $db->close(); diff --git a/htdocs/compta/paiement/info.php b/htdocs/compta/paiement/info.php index 9f55761dba0..86e45508b2c 100644 --- a/htdocs/compta/paiement/info.php +++ b/htdocs/compta/paiement/info.php @@ -76,5 +76,6 @@ print ''; dol_fiche_end(); +// End of page llxFooter(); $db->close(); diff --git a/htdocs/compta/paiement/list.php b/htdocs/compta/paiement/list.php index 064ca877c3f..5b5124b2b80 100644 --- a/htdocs/compta/paiement/list.php +++ b/htdocs/compta/paiement/list.php @@ -371,5 +371,6 @@ else dol_print_error($db); } +// End of page llxFooter(); $db->close(); diff --git a/htdocs/compta/paiement/rapport.php b/htdocs/compta/paiement/rapport.php index 3e6427f6ac2..c2c63aea84d 100644 --- a/htdocs/compta/paiement/rapport.php +++ b/htdocs/compta/paiement/rapport.php @@ -166,6 +166,6 @@ if ($year) } } +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/paiement/tovalidate.php b/htdocs/compta/paiement/tovalidate.php index e60f65f924e..9fea9afa5df 100644 --- a/htdocs/compta/paiement/tovalidate.php +++ b/htdocs/compta/paiement/tovalidate.php @@ -139,5 +139,6 @@ if ($resql) print ""; } +// End of page llxFooter(); $db->close(); diff --git a/htdocs/compta/payment_sc/card.php b/htdocs/compta/payment_sc/card.php index b395016aeed..b22d4d21e43 100644 --- a/htdocs/compta/payment_sc/card.php +++ b/htdocs/compta/payment_sc/card.php @@ -323,8 +323,6 @@ if ($action == '') print ''; - - +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/prelevement/bons.php b/htdocs/compta/prelevement/bons.php index c7fee1f70a8..a6d1f480a06 100644 --- a/htdocs/compta/prelevement/bons.php +++ b/htdocs/compta/prelevement/bons.php @@ -183,7 +183,6 @@ else dol_print_error($db); } - +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/prelevement/card.php b/htdocs/compta/prelevement/card.php index 84c4087e451..be914f2333d 100644 --- a/htdocs/compta/prelevement/card.php +++ b/htdocs/compta/prelevement/card.php @@ -419,6 +419,6 @@ if ($id > 0 || $ref) } } +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/prelevement/create.php b/htdocs/compta/prelevement/create.php index 191a54b7484..7ddf1a114cd 100644 --- a/htdocs/compta/prelevement/create.php +++ b/htdocs/compta/prelevement/create.php @@ -324,5 +324,6 @@ else } */ +// End of page llxFooter(); $db->close(); diff --git a/htdocs/compta/prelevement/demandes.php b/htdocs/compta/prelevement/demandes.php index b5058b5c685..10c390ed5bd 100644 --- a/htdocs/compta/prelevement/demandes.php +++ b/htdocs/compta/prelevement/demandes.php @@ -167,5 +167,6 @@ else dol_print_error($db); } +// End of page llxFooter(); $db->close(); diff --git a/htdocs/compta/prelevement/factures.php b/htdocs/compta/prelevement/factures.php index d4593a3dcef..df71dcb3f31 100644 --- a/htdocs/compta/prelevement/factures.php +++ b/htdocs/compta/prelevement/factures.php @@ -296,7 +296,6 @@ else dol_print_error($db); } - +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/prelevement/fiche-rejet.php b/htdocs/compta/prelevement/fiche-rejet.php index ebf3876406b..3819c145851 100644 --- a/htdocs/compta/prelevement/fiche-rejet.php +++ b/htdocs/compta/prelevement/fiche-rejet.php @@ -245,5 +245,6 @@ else dol_print_error($db); } +// End of page llxFooter(); $db->close(); diff --git a/htdocs/compta/prelevement/fiche-stat.php b/htdocs/compta/prelevement/fiche-stat.php index e4371abfb5c..a3a1d06e322 100644 --- a/htdocs/compta/prelevement/fiche-stat.php +++ b/htdocs/compta/prelevement/fiche-stat.php @@ -193,5 +193,6 @@ if ($prev_id > 0 || $ref) } } +// End of page llxFooter(); $db->close(); diff --git a/htdocs/compta/prelevement/index.php b/htdocs/compta/prelevement/index.php index 83f14169d4c..673b83d15aa 100644 --- a/htdocs/compta/prelevement/index.php +++ b/htdocs/compta/prelevement/index.php @@ -221,6 +221,6 @@ else print ''; +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/prelevement/ligne.php b/htdocs/compta/prelevement/ligne.php index 8cad6ed70d5..a1aaa932b5b 100644 --- a/htdocs/compta/prelevement/ligne.php +++ b/htdocs/compta/prelevement/ligne.php @@ -334,6 +334,6 @@ if ($id) } } +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/prelevement/list.php b/htdocs/compta/prelevement/list.php index cac9e52b3c9..ead1bfff08f 100644 --- a/htdocs/compta/prelevement/list.php +++ b/htdocs/compta/prelevement/list.php @@ -213,5 +213,6 @@ else dol_print_error($db); } +// End of page llxFooter(); $db->close(); diff --git a/htdocs/compta/prelevement/rejets.php b/htdocs/compta/prelevement/rejets.php index 2e340a2c801..5c38b29954e 100644 --- a/htdocs/compta/prelevement/rejets.php +++ b/htdocs/compta/prelevement/rejets.php @@ -120,5 +120,6 @@ else dol_print_error($db); } +// End of page llxFooter(); $db->close(); diff --git a/htdocs/compta/prelevement/stats.php b/htdocs/compta/prelevement/stats.php index 7c878787e89..ab233a61be3 100644 --- a/htdocs/compta/prelevement/stats.php +++ b/htdocs/compta/prelevement/stats.php @@ -225,7 +225,7 @@ else dol_print_error($db); } +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/resultat/clientfourn.php b/htdocs/compta/resultat/clientfourn.php index c9e32b9a97f..b30e65310b3 100644 --- a/htdocs/compta/resultat/clientfourn.php +++ b/htdocs/compta/resultat/clientfourn.php @@ -1210,6 +1210,6 @@ if ($mysoc->tva_assuj != 'franchise') // Assujetti print ""; print '
'; +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/resultat/index.php b/htdocs/compta/resultat/index.php index fbbc7a36eef..1bfd767ef19 100644 --- a/htdocs/compta/resultat/index.php +++ b/htdocs/compta/resultat/index.php @@ -1009,5 +1009,6 @@ print "\n"; print ""; print ''; +// End of page llxFooter(); $db->close(); diff --git a/htdocs/compta/resultat/result.php b/htdocs/compta/resultat/result.php index 23c7e91b989..87127fdb4cf 100644 --- a/htdocs/compta/resultat/result.php +++ b/htdocs/compta/resultat/result.php @@ -537,5 +537,6 @@ else if ($modecompta=="BOOKKEEPING") print ""; print ''; +// End of page llxFooter(); $db->close(); diff --git a/htdocs/compta/salaries/card.php b/htdocs/compta/salaries/card.php index 30b4164e81b..3d8cf0a38ab 100644 --- a/htdocs/compta/salaries/card.php +++ b/htdocs/compta/salaries/card.php @@ -486,8 +486,6 @@ if ($id) print ""; } - - +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/salaries/document.php b/htdocs/compta/salaries/document.php index b40fef80a51..5209c281f68 100644 --- a/htdocs/compta/salaries/document.php +++ b/htdocs/compta/salaries/document.php @@ -133,6 +133,6 @@ else print $langs->trans("ErrorUnknown"); } +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/salaries/index.php b/htdocs/compta/salaries/index.php index 0b70275654f..d9942d86b79 100644 --- a/htdocs/compta/salaries/index.php +++ b/htdocs/compta/salaries/index.php @@ -294,6 +294,6 @@ else dol_print_error($db); } - +// End of page llxFooter(); $db->close(); diff --git a/htdocs/compta/salaries/info.php b/htdocs/compta/salaries/info.php index 467abe3618c..d2f02f3dc8f 100644 --- a/htdocs/compta/salaries/info.php +++ b/htdocs/compta/salaries/info.php @@ -79,6 +79,6 @@ print ''; dol_fiche_end(); +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/salaries/stats/index.php b/htdocs/compta/salaries/stats/index.php index 3e6fd56a266..7c7dbb43e3a 100644 --- a/htdocs/compta/salaries/stats/index.php +++ b/htdocs/compta/salaries/stats/index.php @@ -288,7 +288,6 @@ print '
'; dol_fiche_end(); - +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/sociales/card.php b/htdocs/compta/sociales/card.php index 697253b90eb..30dcd381ae2 100644 --- a/htdocs/compta/sociales/card.php +++ b/htdocs/compta/sociales/card.php @@ -750,7 +750,6 @@ if ($id > 0) } } - +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/sociales/document.php b/htdocs/compta/sociales/document.php index 6c2bbd22a83..b2f73768e96 100644 --- a/htdocs/compta/sociales/document.php +++ b/htdocs/compta/sociales/document.php @@ -168,7 +168,6 @@ else print $langs->trans("ErrorUnknown"); } - +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/sociales/index.php b/htdocs/compta/sociales/index.php index bd323c972fe..6a0250804f1 100644 --- a/htdocs/compta/sociales/index.php +++ b/htdocs/compta/sociales/index.php @@ -304,5 +304,6 @@ else dol_print_error($db); } +// End of page llxFooter(); $db->close(); diff --git a/htdocs/compta/sociales/info.php b/htdocs/compta/sociales/info.php index 4e184e2099f..bd21db108c1 100644 --- a/htdocs/compta/sociales/info.php +++ b/htdocs/compta/sociales/info.php @@ -115,6 +115,6 @@ print ''; print ''; +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/sociales/payments.php b/htdocs/compta/sociales/payments.php index 3b7f68f8c83..b70cc3649b2 100644 --- a/htdocs/compta/sociales/payments.php +++ b/htdocs/compta/sociales/payments.php @@ -480,7 +480,6 @@ if (! empty($conf->salaries->enabled) && $user->rights->salaries->read) print ''; - +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/stats/byratecountry.php b/htdocs/compta/stats/byratecountry.php index 2c43db42d13..74ec0bfe4ae 100644 --- a/htdocs/compta/stats/byratecountry.php +++ b/htdocs/compta/stats/byratecountry.php @@ -414,7 +414,6 @@ print "\n"; print '
'.$langs->trans("TurnoverPerSaleTaxRateInCommitmentAccountingNotRelevant") . '
'; } - +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/stats/cabyprodserv.php b/htdocs/compta/stats/cabyprodserv.php index 5d28ab3e077..712bb950bb2 100644 --- a/htdocs/compta/stats/cabyprodserv.php +++ b/htdocs/compta/stats/cabyprodserv.php @@ -461,5 +461,6 @@ if ($modecompta == 'CREANCES-DETTES') print '
'.$langs->trans("TurnoverPerProductInCommitmentAccountingNotRelevant") . '
'; } +// End of page llxFooter(); $db->close(); diff --git a/htdocs/compta/stats/cabyuser.php b/htdocs/compta/stats/cabyuser.php index ccb286c1420..72dfd3a5637 100644 --- a/htdocs/compta/stats/cabyuser.php +++ b/htdocs/compta/stats/cabyuser.php @@ -465,7 +465,6 @@ print ""; print ''; print ''; - +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/stats/casoc.php b/htdocs/compta/stats/casoc.php index 8e00dfe5fbe..af6bd7fc625 100644 --- a/htdocs/compta/stats/casoc.php +++ b/htdocs/compta/stats/casoc.php @@ -646,6 +646,6 @@ print ""; print ''; +// End of page llxFooter(); - $db->close(); diff --git a/htdocs/compta/stats/index.php b/htdocs/compta/stats/index.php index c255d236664..38df153a560 100644 --- a/htdocs/compta/stats/index.php +++ b/htdocs/compta/stats/index.php @@ -629,6 +629,6 @@ print ''; */ +// End of page llxFooter(); - $db->close();