diff --git a/htdocs/modulebuilder/admin/setup.php b/htdocs/modulebuilder/admin/setup.php
index 5bc1fb7c206..26e64785524 100644
--- a/htdocs/modulebuilder/admin/setup.php
+++ b/htdocs/modulebuilder/admin/setup.php
@@ -155,5 +155,6 @@ if (GETPOST('withtab', 'alpha')) {
print '
';
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/modulebuilder/index.php b/htdocs/modulebuilder/index.php
index 2eb20f48fea..ea3824fc5fb 100644
--- a/htdocs/modulebuilder/index.php
+++ b/htdocs/modulebuilder/index.php
@@ -2487,8 +2487,6 @@ elseif (! empty($module))
dol_fiche_end(); // End modules
-
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/modulebuilder/template/mymoduleindex.php b/htdocs/modulebuilder/template/mymoduleindex.php
index f439d4fd9d8..b2b9356217e 100644
--- a/htdocs/modulebuilder/template/mymoduleindex.php
+++ b/htdocs/modulebuilder/template/mymoduleindex.php
@@ -233,6 +233,6 @@ if (! empty($conf->mymodule->enabled) && $user->rights->mymodule->read)
print '';
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/modulebuilder/template/myobject_agenda.php b/htdocs/modulebuilder/template/myobject_agenda.php
index dfd69037baf..7559c874e68 100644
--- a/htdocs/modulebuilder/template/myobject_agenda.php
+++ b/htdocs/modulebuilder/template/myobject_agenda.php
@@ -256,7 +256,6 @@ if ($object->id > 0)
}
}
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/modulebuilder/template/myobject_card.php b/htdocs/modulebuilder/template/myobject_card.php
index 16a83ee7d0d..3f2d9b14dac 100644
--- a/htdocs/modulebuilder/template/myobject_card.php
+++ b/htdocs/modulebuilder/template/myobject_card.php
@@ -467,7 +467,6 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
*/
}
-
// End of page
llxFooter();
$db->close();
diff --git a/htdocs/modulebuilder/template/myobject_document.php b/htdocs/modulebuilder/template/myobject_document.php
index 9dd021326b0..a2db0266012 100644
--- a/htdocs/modulebuilder/template/myobject_document.php
+++ b/htdocs/modulebuilder/template/myobject_document.php
@@ -161,6 +161,6 @@ else
accessforbidden('',0,0);
}
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/modulebuilder/template/myobject_note.php b/htdocs/modulebuilder/template/myobject_note.php
index d240f07ef53..6063d337679 100644
--- a/htdocs/modulebuilder/template/myobject_note.php
+++ b/htdocs/modulebuilder/template/myobject_note.php
@@ -159,6 +159,6 @@ if ($id > 0 || ! empty($ref))
dol_fiche_end();
}
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/opensurvey/card.php b/htdocs/opensurvey/card.php
index af75bf4783b..0df6400bcc9 100644
--- a/htdocs/opensurvey/card.php
+++ b/htdocs/opensurvey/card.php
@@ -430,6 +430,6 @@ if ($object->allow_comments) {
print '';
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/opensurvey/index.php b/htdocs/opensurvey/index.php
index 3b800b748ff..4c60a807445 100644
--- a/htdocs/opensurvey/index.php
+++ b/htdocs/opensurvey/index.php
@@ -78,8 +78,6 @@ print '';
print '';
-
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/opensurvey/list.php b/htdocs/opensurvey/list.php
index de8feaad8da..ecb26047e52 100644
--- a/htdocs/opensurvey/list.php
+++ b/htdocs/opensurvey/list.php
@@ -296,6 +296,6 @@ print ''."\n";
print '';
print '';
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/opensurvey/wizard/choix_autre.php b/htdocs/opensurvey/wizard/choix_autre.php
index 9acf9d441e2..366842513c8 100644
--- a/htdocs/opensurvey/wizard/choix_autre.php
+++ b/htdocs/opensurvey/wizard/choix_autre.php
@@ -161,6 +161,6 @@ print ''."\n";
print '
'."\n";
print ''."\n";
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/opensurvey/wizard/choix_date.php b/htdocs/opensurvey/wizard/choix_date.php
index fb7312b891c..5aa478d9450 100644
--- a/htdocs/opensurvey/wizard/choix_date.php
+++ b/htdocs/opensurvey/wizard/choix_date.php
@@ -564,6 +564,6 @@ print ''."\n";
print '
'."\n";
print ''."\n";
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/opensurvey/wizard/create_survey.php b/htdocs/opensurvey/wizard/create_survey.php
index 2e33d377ca2..d7c35fdd082 100644
--- a/htdocs/opensurvey/wizard/create_survey.php
+++ b/htdocs/opensurvey/wizard/create_survey.php
@@ -204,6 +204,6 @@ else
print '
'."\n";
print ''."\n";
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/opensurvey/wizard/index.php b/htdocs/opensurvey/wizard/index.php
index 4d03b7d2d8f..f15284e2e83 100644
--- a/htdocs/opensurvey/wizard/index.php
+++ b/htdocs/opensurvey/wizard/index.php
@@ -57,6 +57,6 @@ print '
';
print '';
print '';
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/paybox/admin/paybox.php b/htdocs/paybox/admin/paybox.php
index 4c68abab520..df1a5758478 100644
--- a/htdocs/paybox/admin/paybox.php
+++ b/htdocs/paybox/admin/paybox.php
@@ -250,5 +250,6 @@ print '
';
include DOL_DOCUMENT_ROOT.'/core/tpl/onlinepaymentlinks.tpl.php';
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/paypal/admin/paypal.php b/htdocs/paypal/admin/paypal.php
index 381151cac93..57acfe7390e 100644
--- a/htdocs/paypal/admin/paypal.php
+++ b/htdocs/paypal/admin/paypal.php
@@ -326,5 +326,6 @@ $token='';
include DOL_DOCUMENT_ROOT.'/core/tpl/onlinepaymentlinks.tpl.php';
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/printing/admin/printing.php b/htdocs/printing/admin/printing.php
index 96dd916290e..b2300c7125a 100644
--- a/htdocs/printing/admin/printing.php
+++ b/htdocs/printing/admin/printing.php
@@ -361,6 +361,6 @@ if ($mode == 'userconf' && $user->admin)
}
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/printing/index.php b/htdocs/printing/index.php
index 384d0834cc0..47dd65b9f0c 100644
--- a/htdocs/printing/index.php
+++ b/htdocs/printing/index.php
@@ -68,6 +68,6 @@ foreach ($result as $driver)
}
}
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/product/admin/dynamic_prices.php b/htdocs/product/admin/dynamic_prices.php
index 348380e9b37..4f40c85e2a9 100644
--- a/htdocs/product/admin/dynamic_prices.php
+++ b/htdocs/product/admin/dynamic_prices.php
@@ -357,5 +357,6 @@ if ($action == 'create_updater' || $action == 'edit_updater') {
print '';
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/product/admin/price_rules.php b/htdocs/product/admin/price_rules.php
index 0049daeaa7d..3c6bf5abe8a 100644
--- a/htdocs/product/admin/price_rules.php
+++ b/htdocs/product/admin/price_rules.php
@@ -200,6 +200,6 @@ print '
print '';
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/product/admin/product.php b/htdocs/product/admin/product.php
index ea3539d193e..2cdb5c1ca52 100644
--- a/htdocs/product/admin/product.php
+++ b/htdocs/product/admin/product.php
@@ -744,7 +744,7 @@ print '';
print '';
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/product/admin/product_extrafields.php b/htdocs/product/admin/product_extrafields.php
index 7da3e800468..82eafd230d7 100644
--- a/htdocs/product/admin/product_extrafields.php
+++ b/htdocs/product/admin/product_extrafields.php
@@ -126,6 +126,6 @@ if ($action == 'edit' && ! empty($attrname))
require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_edit.tpl.php';
}
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/product/admin/product_lot_extrafields.php b/htdocs/product/admin/product_lot_extrafields.php
index 23e87d23476..8e57daf7491 100644
--- a/htdocs/product/admin/product_lot_extrafields.php
+++ b/htdocs/product/admin/product_lot_extrafields.php
@@ -116,6 +116,6 @@ if ($action == 'edit' && ! empty($attrname))
require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_edit.tpl.php';
}
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/product/admin/product_tools.php b/htdocs/product/admin/product_tools.php
index ed4480aeaa2..a153e9f1ab6 100644
--- a/htdocs/product/admin/product_tools.php
+++ b/htdocs/product/admin/product_tools.php
@@ -342,6 +342,6 @@ else
print '';
}
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/product/composition/card.php b/htdocs/product/composition/card.php
index c3f568a958c..5f91a0e369e 100644
--- a/htdocs/product/composition/card.php
+++ b/htdocs/product/composition/card.php
@@ -657,7 +657,6 @@ if ($id > 0 || ! empty($ref))
}
}
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/product/dynamic_price/editor.php b/htdocs/product/dynamic_price/editor.php
index 9187775f8e9..baa738c20c5 100644
--- a/htdocs/product/dynamic_price/editor.php
+++ b/htdocs/product/dynamic_price/editor.php
@@ -244,5 +244,6 @@ print '';
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/product/inventory/card.php b/htdocs/product/inventory/card.php
index 80b17a5e31d..d143aa4e3c8 100644
--- a/htdocs/product/inventory/card.php
+++ b/htdocs/product/inventory/card.php
@@ -409,7 +409,6 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
*/
}
-
// End of page
llxFooter();
$db->close();
diff --git a/htdocs/product/stats/card.php b/htdocs/product/stats/card.php
index 3982ea7b87e..52ffa0a58c8 100644
--- a/htdocs/product/stats/card.php
+++ b/htdocs/product/stats/card.php
@@ -433,6 +433,6 @@ if (! $id)
dol_fiche_end();
}
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/product/stats/commande.php b/htdocs/product/stats/commande.php
index 77941d940df..f85fb375b5a 100644
--- a/htdocs/product/stats/commande.php
+++ b/htdocs/product/stats/commande.php
@@ -257,5 +257,6 @@ if ($id > 0 || ! empty($ref))
dol_print_error();
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/product/stats/commande_fournisseur.php b/htdocs/product/stats/commande_fournisseur.php
index da5c8f24911..ed49d34fbc3 100644
--- a/htdocs/product/stats/commande_fournisseur.php
+++ b/htdocs/product/stats/commande_fournisseur.php
@@ -265,5 +265,6 @@ if ($id > 0 || ! empty($ref)) {
dol_print_error();
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/product/stats/contrat.php b/htdocs/product/stats/contrat.php
index c01cbd40530..55ae3a29939 100644
--- a/htdocs/product/stats/contrat.php
+++ b/htdocs/product/stats/contrat.php
@@ -236,6 +236,6 @@ else
dol_print_error();
}
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/product/stats/facture.php b/htdocs/product/stats/facture.php
index d0c75ac90b4..fa4e468a5f9 100644
--- a/htdocs/product/stats/facture.php
+++ b/htdocs/product/stats/facture.php
@@ -278,5 +278,6 @@ if ($id > 0 || ! empty($ref))
dol_print_error();
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/product/stats/facture_fournisseur.php b/htdocs/product/stats/facture_fournisseur.php
index 6bd722220ba..b3f8d1e41c0 100644
--- a/htdocs/product/stats/facture_fournisseur.php
+++ b/htdocs/product/stats/facture_fournisseur.php
@@ -263,5 +263,6 @@ if ($id > 0 || ! empty($ref))
dol_print_error();
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/product/stats/propal.php b/htdocs/product/stats/propal.php
index 80256037dfe..a58bb01961e 100644
--- a/htdocs/product/stats/propal.php
+++ b/htdocs/product/stats/propal.php
@@ -261,5 +261,6 @@ if ($id > 0 || ! empty($ref))
dol_print_error();
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/product/stats/supplier_proposal.php b/htdocs/product/stats/supplier_proposal.php
index cac015171cf..ca165a7cfd1 100644
--- a/htdocs/product/stats/supplier_proposal.php
+++ b/htdocs/product/stats/supplier_proposal.php
@@ -260,5 +260,6 @@ if ($id > 0 || ! empty($ref))
dol_print_error();
}
+// End of page
llxFooter();
$db->close();