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 '