diff --git a/htdocs/accountancy/admin/account.php b/htdocs/accountancy/admin/account.php
index 493c9e62717..2587a58aef6 100644
--- a/htdocs/accountancy/admin/account.php
+++ b/htdocs/accountancy/admin/account.php
@@ -406,5 +406,6 @@ if ($resql)
dol_print_error($db);
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/accountancy/admin/accountmodel.php b/htdocs/accountancy/admin/accountmodel.php
index f024f54c41c..2c7d92f3735 100644
--- a/htdocs/accountancy/admin/accountmodel.php
+++ b/htdocs/accountancy/admin/accountmodel.php
@@ -1004,7 +1004,7 @@ if ($id)
print ' ';
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/accountancy/admin/card.php b/htdocs/accountancy/admin/card.php
index 9643227da64..6a92a3f6080 100644
--- a/htdocs/accountancy/admin/card.php
+++ b/htdocs/accountancy/admin/card.php
@@ -397,6 +397,6 @@ else if ($id > 0 || $ref) {
}
}
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/accountancy/admin/categories.php b/htdocs/accountancy/admin/categories.php
index aec34469559..735c5595ddc 100644
--- a/htdocs/accountancy/admin/categories.php
+++ b/htdocs/accountancy/admin/categories.php
@@ -184,6 +184,6 @@ if ($action == 'display' || $action == 'delete') {
print "";
}
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/accountancy/admin/categories_list.php b/htdocs/accountancy/admin/categories_list.php
index 15a50e7b8e8..900205b7588 100644
--- a/htdocs/accountancy/admin/categories_list.php
+++ b/htdocs/accountancy/admin/categories_list.php
@@ -800,7 +800,7 @@ if ($id)
print ' ';
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/accountancy/admin/defaultaccounts.php b/htdocs/accountancy/admin/defaultaccounts.php
index c33d4326836..8cd45c1cfda 100644
--- a/htdocs/accountancy/admin/defaultaccounts.php
+++ b/htdocs/accountancy/admin/defaultaccounts.php
@@ -190,5 +190,6 @@ print '
";
print '';
- llxFooter();
}
+// End of page
+llxFooter();
$db->close();
diff --git a/htdocs/accountancy/bookkeeping/balancebymonth.php b/htdocs/accountancy/bookkeeping/balancebymonth.php
index 03265e434f6..3a0a1f73308 100644
--- a/htdocs/accountancy/bookkeeping/balancebymonth.php
+++ b/htdocs/accountancy/bookkeeping/balancebymonth.php
@@ -140,5 +140,6 @@ if ($resql) {
}
print "\n";
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/accountancy/bookkeeping/card.php b/htdocs/accountancy/bookkeeping/card.php
index 92c5713880c..e17cefd77bb 100644
--- a/htdocs/accountancy/bookkeeping/card.php
+++ b/htdocs/accountancy/bookkeeping/card.php
@@ -714,5 +714,6 @@ if ($action == 'create')
dol_fiche_end();
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/accountancy/bookkeeping/list.php b/htdocs/accountancy/bookkeeping/list.php
index b0a91f7ce36..ee44b52ab7d 100644
--- a/htdocs/accountancy/bookkeeping/list.php
+++ b/htdocs/accountancy/bookkeeping/list.php
@@ -748,6 +748,6 @@ print '
';
print '';
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/accountancy/bookkeeping/listbyaccount.php b/htdocs/accountancy/bookkeeping/listbyaccount.php
index 80a4f0db5e8..55e9c8ab7ad 100644
--- a/htdocs/accountancy/bookkeeping/listbyaccount.php
+++ b/htdocs/accountancy/bookkeeping/listbyaccount.php
@@ -421,5 +421,6 @@ print '';
print "";
print '';
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/accountancy/customer/card.php b/htdocs/accountancy/customer/card.php
index 7e1387db951..677bc627c80 100644
--- a/htdocs/accountancy/customer/card.php
+++ b/htdocs/accountancy/customer/card.php
@@ -159,5 +159,6 @@ if (! empty($id)) {
print "Error ID incorrect";
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/accountancy/customer/index.php b/htdocs/accountancy/customer/index.php
index 4191243e412..45387722719 100644
--- a/htdocs/accountancy/customer/index.php
+++ b/htdocs/accountancy/customer/index.php
@@ -415,6 +415,6 @@ if ($conf->global->MAIN_FEATURES_LEVEL > 0) // This part of code looks strange.
}
}
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/accountancy/customer/lines.php b/htdocs/accountancy/customer/lines.php
index cc0ced6b067..83ddd1bd888 100644
--- a/htdocs/accountancy/customer/lines.php
+++ b/htdocs/accountancy/customer/lines.php
@@ -400,6 +400,6 @@ if ($result) {
print $db->lasterror();
}
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/accountancy/customer/list.php b/htdocs/accountancy/customer/list.php
index 69396131b02..b5fec4a0e7c 100644
--- a/htdocs/accountancy/customer/list.php
+++ b/htdocs/accountancy/customer/list.php
@@ -201,8 +201,9 @@ llxHeader('', $langs->trans("Ventilation"));
if (empty($chartaccountcode))
{
print $langs->trans("ErrorChartOfAccountSystemNotSelected");
- llxFooter();
- $db->close();
+ // End of page
+ llxFooter();
+ $db->close();
exit;
}
@@ -524,5 +525,6 @@ jQuery(document).ready(function() {
});
';
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/accountancy/expensereport/card.php b/htdocs/accountancy/expensereport/card.php
index d9b2137157d..b245e2539a7 100644
--- a/htdocs/accountancy/expensereport/card.php
+++ b/htdocs/accountancy/expensereport/card.php
@@ -167,5 +167,6 @@ if (! empty($id)) {
print "Error ID incorrect";
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/accountancy/expensereport/index.php b/htdocs/accountancy/expensereport/index.php
index 47a6f15e8c6..7f906e93879 100644
--- a/htdocs/accountancy/expensereport/index.php
+++ b/htdocs/accountancy/expensereport/index.php
@@ -345,5 +345,6 @@ if ($conf->global->MAIN_FEATURES_LEVEL > 0) // This part of code looks strange.
print '';
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/accountancy/expensereport/lines.php b/htdocs/accountancy/expensereport/lines.php
index 473bc379057..ae368a20de1 100644
--- a/htdocs/accountancy/expensereport/lines.php
+++ b/htdocs/accountancy/expensereport/lines.php
@@ -349,6 +349,6 @@ if ($result) {
print $db->lasterror();
}
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/accountancy/expensereport/list.php b/htdocs/accountancy/expensereport/list.php
index a20f88f1c30..8057c9809f2 100644
--- a/htdocs/accountancy/expensereport/list.php
+++ b/htdocs/accountancy/expensereport/list.php
@@ -180,8 +180,9 @@ llxHeader('', $langs->trans("ExpenseReportsVentilation"));
if (empty($chartaccountcode))
{
print $langs->trans("ErrorChartOfAccountSystemNotSelected");
- llxFooter();
- $db->close();
+ // End of page
+ llxFooter();
+ $db->close();
exit;
}
@@ -422,5 +423,6 @@ jQuery(document).ready(function() {
});
';
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/accountancy/index.php b/htdocs/accountancy/index.php
index 2881de98132..53ba48ff9d9 100644
--- a/htdocs/accountancy/index.php
+++ b/htdocs/accountancy/index.php
@@ -163,5 +163,6 @@ else
print $langs->trans("Module10Desc")." \n";
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/accountancy/supplier/card.php b/htdocs/accountancy/supplier/card.php
index f126d00f2e9..439b8625342 100644
--- a/htdocs/accountancy/supplier/card.php
+++ b/htdocs/accountancy/supplier/card.php
@@ -162,5 +162,6 @@ if (! empty($id)) {
print "Error ID incorrect";
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/accountancy/supplier/index.php b/htdocs/accountancy/supplier/index.php
index 3a6af92e41b..3e6a6991f6c 100644
--- a/htdocs/accountancy/supplier/index.php
+++ b/htdocs/accountancy/supplier/index.php
@@ -342,6 +342,6 @@ if ($conf->global->MAIN_FEATURES_LEVEL > 0) // This part of code looks strange.
print '';
}
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/accountancy/supplier/lines.php b/htdocs/accountancy/supplier/lines.php
index ef54dec564d..326d249f86d 100644
--- a/htdocs/accountancy/supplier/lines.php
+++ b/htdocs/accountancy/supplier/lines.php
@@ -406,7 +406,6 @@ if ($result) {
print $db->lasterror();
}
-
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/accountancy/supplier/list.php b/htdocs/accountancy/supplier/list.php
index 57fdf0ace48..18c9fa11a3c 100644
--- a/htdocs/accountancy/supplier/list.php
+++ b/htdocs/accountancy/supplier/list.php
@@ -202,8 +202,9 @@ llxHeader('', $langs->trans("SuppliersVentilation"));
if (empty($chartaccountcode))
{
print $langs->trans("ErrorChartOfAccountSystemNotSelected");
- llxFooter();
- $db->close();
+ // End of page
+ llxFooter();
+ $db->close();
exit;
}
@@ -532,5 +533,6 @@ jQuery(document).ready(function() {
});
';
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/adherents/admin/adherent.php b/htdocs/adherents/admin/adherent.php
index 4511ee0e8a7..2abc3b10841 100644
--- a/htdocs/adherents/admin/adherent.php
+++ b/htdocs/adherents/admin/adherent.php
@@ -265,7 +265,6 @@ form_constantes($constantes, 0, $helptext);
dol_fiche_end();
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/adherents/admin/adherent_emails.php b/htdocs/adherents/admin/adherent_emails.php
index 88514d83da3..76d40e57c17 100644
--- a/htdocs/adherents/admin/adherent_emails.php
+++ b/htdocs/adherents/admin/adherent_emails.php
@@ -160,7 +160,6 @@ form_constantes($constantes, 0, $helptext);
dol_fiche_end();
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/adherents/admin/adherent_extrafields.php b/htdocs/adherents/admin/adherent_extrafields.php
index cfdea50538f..f47f92faa4c 100644
--- a/htdocs/adherents/admin/adherent_extrafields.php
+++ b/htdocs/adherents/admin/adherent_extrafields.php
@@ -113,6 +113,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/adherents/admin/adherent_type_extrafields.php b/htdocs/adherents/admin/adherent_type_extrafields.php
index 2c849628ab9..e78c4ef29e5 100644
--- a/htdocs/adherents/admin/adherent_type_extrafields.php
+++ b/htdocs/adherents/admin/adherent_type_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/adherents/admin/website.php b/htdocs/adherents/admin/website.php
index b35df5f0083..31d9c43afbb 100644
--- a/htdocs/adherents/admin/website.php
+++ b/htdocs/adherents/admin/website.php
@@ -250,7 +250,6 @@ if (! empty($conf->global->MEMBER_ENABLE_PUBLIC))
print ''.$urlwithroot.'/public/members/new.php'.$entity_qr.'';
}
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/adherents/agenda.php b/htdocs/adherents/agenda.php
index 2b663ecf2bc..8fb1851e021 100644
--- a/htdocs/adherents/agenda.php
+++ b/htdocs/adherents/agenda.php
@@ -175,8 +175,6 @@ if ($object->id > 0)
}
}
-
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/adherents/card.php b/htdocs/adherents/card.php
index 990c8349e33..bc09ac2c250 100644
--- a/htdocs/adherents/card.php
+++ b/htdocs/adherents/card.php
@@ -1896,6 +1896,6 @@ else
}
}
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/adherents/cartes/carte.php b/htdocs/adherents/cartes/carte.php
index be3a13d8771..ff7e9c3be2e 100644
--- a/htdocs/adherents/cartes/carte.php
+++ b/htdocs/adherents/cartes/carte.php
@@ -310,6 +310,6 @@ print ' ';
print ' ';
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/adherents/document.php b/htdocs/adherents/document.php
index 8e12dec056e..4c91efc265c 100644
--- a/htdocs/adherents/document.php
+++ b/htdocs/adherents/document.php
@@ -170,6 +170,6 @@ else
print $langs->trans("ErrorRecordNotFound");
}
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/adherents/htpasswd.php b/htdocs/adherents/htpasswd.php
index 5814ed3bf70..adc3d32eea4 100644
--- a/htdocs/adherents/htpasswd.php
+++ b/htdocs/adherents/htpasswd.php
@@ -86,7 +86,6 @@ else
dol_print_error($db);
}
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/adherents/index.php b/htdocs/adherents/index.php
index c9e3d1936c6..030700bb0f6 100644
--- a/htdocs/adherents/index.php
+++ b/htdocs/adherents/index.php
@@ -435,6 +435,6 @@ print "";
print '';
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/adherents/ldap.php b/htdocs/adherents/ldap.php
index ff0bad063bd..b6bffd3d1bd 100644
--- a/htdocs/adherents/ldap.php
+++ b/htdocs/adherents/ldap.php
@@ -221,5 +221,6 @@ else
print '';
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/adherents/list.php b/htdocs/adherents/list.php
index 3a1dd04443f..db017d71f61 100644
--- a/htdocs/adherents/list.php
+++ b/htdocs/adherents/list.php
@@ -827,6 +827,6 @@ print '';
if ($num > $limit || $page) print_barre_liste('', $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $nbtotalofrecords, 'title_generic.png', 0, '', '', $limit, 1);
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/adherents/note.php b/htdocs/adherents/note.php
index 1b887406df3..ae278b5dbb5 100644
--- a/htdocs/adherents/note.php
+++ b/htdocs/adherents/note.php
@@ -120,6 +120,6 @@ if ($id)
}
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/adherents/stats/byproperties.php b/htdocs/adherents/stats/byproperties.php
index ded3dec120e..7ae29a7eeb9 100644
--- a/htdocs/adherents/stats/byproperties.php
+++ b/htdocs/adherents/stats/byproperties.php
@@ -143,7 +143,6 @@ print '';
dol_fiche_end();
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/adherents/stats/geo.php b/htdocs/adherents/stats/geo.php
index 1c6944c2a0a..9de537ed39a 100644
--- a/htdocs/adherents/stats/geo.php
+++ b/htdocs/adherents/stats/geo.php
@@ -309,8 +309,6 @@ if ($mode)
dol_fiche_end();
-
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/adherents/stats/index.php b/htdocs/adherents/stats/index.php
index 083d81d6db6..902c2d35359 100644
--- a/htdocs/adherents/stats/index.php
+++ b/htdocs/adherents/stats/index.php
@@ -229,7 +229,6 @@ print '';
dol_fiche_end();
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/adherents/subscription.php b/htdocs/adherents/subscription.php
index 3e4af5438c6..7e3dfe28b0e 100644
--- a/htdocs/adherents/subscription.php
+++ b/htdocs/adherents/subscription.php
@@ -1108,7 +1108,6 @@ else
print $langs->trans("ErrorRecordNotFound");
}
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/adherents/subscription/card.php b/htdocs/adherents/subscription/card.php
index f905225a396..34b58c5b04d 100644
--- a/htdocs/adherents/subscription/card.php
+++ b/htdocs/adherents/subscription/card.php
@@ -417,7 +417,6 @@ if ($rowid && $action != 'edit')
print '';
}
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/adherents/subscription/info.php b/htdocs/adherents/subscription/info.php
index 05856c35f75..649a1e22996 100644
--- a/htdocs/adherents/subscription/info.php
+++ b/htdocs/adherents/subscription/info.php
@@ -76,5 +76,6 @@ print '';
dol_fiche_end();
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/adherents/subscription/list.php b/htdocs/adherents/subscription/list.php
index 21ba01088e4..91e5b2f8837 100644
--- a/htdocs/adherents/subscription/list.php
+++ b/htdocs/adherents/subscription/list.php
@@ -381,6 +381,6 @@ else
dol_print_error($db);
}
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php
index 56363599c10..e9ad0b91498 100644
--- a/htdocs/adherents/type.php
+++ b/htdocs/adherents/type.php
@@ -787,7 +787,6 @@ if ($rowid > 0)
}
}
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/adherents/type_ldap.php b/htdocs/adherents/type_ldap.php
index 7edb42e6c76..5d60beb2a4d 100644
--- a/htdocs/adherents/type_ldap.php
+++ b/htdocs/adherents/type_ldap.php
@@ -187,5 +187,6 @@ else
print '';
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/admin/agenda.php b/htdocs/admin/agenda.php
index 6fedfa6d2cb..7f41927b478 100644
--- a/htdocs/admin/agenda.php
+++ b/htdocs/admin/agenda.php
@@ -202,6 +202,6 @@ print "\n";
print " ";
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/admin/agenda_extrafields.php b/htdocs/admin/agenda_extrafields.php
index 69e834e22e2..887fba847e4 100644
--- a/htdocs/admin/agenda_extrafields.php
+++ b/htdocs/admin/agenda_extrafields.php
@@ -117,6 +117,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/admin/agenda_extsites.php b/htdocs/admin/agenda_extsites.php
index 906ecd8d092..236483f5ed4 100644
--- a/htdocs/admin/agenda_extsites.php
+++ b/htdocs/admin/agenda_extsites.php
@@ -238,7 +238,6 @@ print '';
print "\n";
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/admin/agenda_other.php b/htdocs/admin/agenda_other.php
index 2d20d285720..842c8d01470 100644
--- a/htdocs/admin/agenda_other.php
+++ b/htdocs/admin/agenda_other.php
@@ -399,6 +399,6 @@ print '';
print " ";
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/admin/agenda_reminder.php b/htdocs/admin/agenda_reminder.php
index e78a8e089ed..269880236cb 100644
--- a/htdocs/admin/agenda_reminder.php
+++ b/htdocs/admin/agenda_reminder.php
@@ -247,6 +247,6 @@ print '';
print " ";
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/admin/agenda_xcal.php b/htdocs/admin/agenda_xcal.php
index 481a850790e..d76d95da47a 100644
--- a/htdocs/admin/agenda_xcal.php
+++ b/htdocs/admin/agenda_xcal.php
@@ -198,6 +198,6 @@ if (! empty($conf->use_javascript_ajax))
print '';
}
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/admin/bank.php b/htdocs/admin/bank.php
index a4e9e4bb210..1e9acde2665 100644
--- a/htdocs/admin/bank.php
+++ b/htdocs/admin/bank.php
@@ -432,6 +432,6 @@ print "\n";
print '';
dol_fiche_end();
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/admin/bank_extrafields.php b/htdocs/admin/bank_extrafields.php
index 99b8d09f277..3b95c158f27 100644
--- a/htdocs/admin/bank_extrafields.php
+++ b/htdocs/admin/bank_extrafields.php
@@ -114,6 +114,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/admin/barcode.php b/htdocs/admin/barcode.php
index a7a863c4725..4e0c683a73f 100644
--- a/htdocs/admin/barcode.php
+++ b/htdocs/admin/barcode.php
@@ -405,5 +405,6 @@ if ($conf->produit->enabled)
print " ";
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/admin/boxes.php b/htdocs/admin/boxes.php
index 04fd76e96fc..9f3453f7587 100644
--- a/htdocs/admin/boxes.php
+++ b/htdocs/admin/boxes.php
@@ -488,7 +488,6 @@ print '
'."\n";
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/admin/chequereceipts.php b/htdocs/admin/chequereceipts.php
index df628ecc87f..82b0ed3848c 100644
--- a/htdocs/admin/chequereceipts.php
+++ b/htdocs/admin/chequereceipts.php
@@ -280,6 +280,6 @@ dol_fiche_end();
print '';
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/admin/clicktodial.php b/htdocs/admin/clicktodial.php
index c2cfaf9f72a..34a641137dc 100644
--- a/htdocs/admin/clicktodial.php
+++ b/htdocs/admin/clicktodial.php
@@ -140,6 +140,6 @@ if (! empty($conf->global->CLICKTODIAL_URL))
}
}
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/admin/commande.php b/htdocs/admin/commande.php
index cee12e4b08e..64df9194197 100644
--- a/htdocs/admin/commande.php
+++ b/htdocs/admin/commande.php
@@ -679,7 +679,6 @@ print "\n";
print '';
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/admin/company.php b/htdocs/admin/company.php
index 949038b4413..4a006c56268 100644
--- a/htdocs/admin/company.php
+++ b/htdocs/admin/company.php
@@ -1153,7 +1153,6 @@ else
print '
';
}
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/admin/compta.php b/htdocs/admin/compta.php
index 8e17541bfef..214c30dc544 100644
--- a/htdocs/admin/compta.php
+++ b/htdocs/admin/compta.php
@@ -164,5 +164,6 @@ print "\n";
print '
';
print '';
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/admin/confexped.php b/htdocs/admin/confexped.php
index e4691a42e78..9e6745e6c29 100644
--- a/htdocs/admin/confexped.php
+++ b/htdocs/admin/confexped.php
@@ -147,5 +147,6 @@ print '';
print '';
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/admin/const.php b/htdocs/admin/const.php
index 9dd68c16326..be5f785f9e4 100644
--- a/htdocs/admin/const.php
+++ b/htdocs/admin/const.php
@@ -314,7 +314,6 @@ if ($conf->use_javascript_ajax)
print "\n";
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/admin/contract.php b/htdocs/admin/contract.php
index 74f7acb04f3..60be9e062ba 100644
--- a/htdocs/admin/contract.php
+++ b/htdocs/admin/contract.php
@@ -509,7 +509,6 @@ print '';
dol_fiche_end();
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/admin/dav.php b/htdocs/admin/dav.php
index ea4bbf97af0..e882a56e2b8 100644
--- a/htdocs/admin/dav.php
+++ b/htdocs/admin/dav.php
@@ -143,6 +143,6 @@ $message.=img_picto('','object_globe.png').' '.$langs->trans("WebDavServer",'Web
$message.=' ';
print $message;
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/admin/defaultvalues.php b/htdocs/admin/defaultvalues.php
index 84271cff38f..984ddfbefd7 100644
--- a/htdocs/admin/defaultvalues.php
+++ b/htdocs/admin/defaultvalues.php
@@ -412,7 +412,6 @@ dol_fiche_end();
print "\n";
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/admin/delais.php b/htdocs/admin/delais.php
index ae3c43c5b24..14dfb9922f6 100644
--- a/htdocs/admin/delais.php
+++ b/htdocs/admin/delais.php
@@ -415,5 +415,6 @@ if($action == 'edit') {
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php
index 32995bce38f..0c25f3a5bd8 100644
--- a/htdocs/admin/dict.php
+++ b/htdocs/admin/dict.php
@@ -1735,7 +1735,7 @@ else
print ' ';
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/admin/ecm.php b/htdocs/admin/ecm.php
index dc2f3e489f7..3126f432938 100644
--- a/htdocs/admin/ecm.php
+++ b/htdocs/admin/ecm.php
@@ -109,5 +109,6 @@ print '';
print '';
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/admin/events.php b/htdocs/admin/events.php
index 1d1ec548853..606d3a5f201 100644
--- a/htdocs/admin/events.php
+++ b/htdocs/admin/events.php
@@ -114,6 +114,6 @@ print "";
print "\n";
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/admin/expedition.php b/htdocs/admin/expedition.php
index eb18f904229..c851010635e 100644
--- a/htdocs/admin/expedition.php
+++ b/htdocs/admin/expedition.php
@@ -507,5 +507,6 @@ print '
$(function() {
}); ';
dol_fiche_end();
-llxFooter();
+// End of page
+llxFooter();
$db->close();
diff --git a/htdocs/admin/export.php b/htdocs/admin/export.php
index b6f12a723ff..292c3604799 100644
--- a/htdocs/admin/export.php
+++ b/htdocs/admin/export.php
@@ -6,7 +6,7 @@
* Copyright (C) 2004 Eric Seigne
* Copyright (C) 2005-2012 Regis Houssin
* Copyright (C) 2011-2012 Juanjo Menent
- * Copyright (C) 2011-2015 Philippe Grand
+ * Copyright (C) 2011-2018 Philippe Grand
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -32,9 +32,7 @@ require '../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
// Load translation files required by the page
-$langs->loadLangs(array('admin', 'exports'));
-
-$langs->load('other');
+$langs->loadLangs(array('admin', 'exports', 'other'));
if (! $user->admin)
accessforbidden();
@@ -73,7 +71,7 @@ dol_fiche_head(
// Setup page goes here
$form=new Form($db);
-$var=false;
+
print '
';
print '
';
print '
'.$langs->trans("ExportModel").'
'."\n";
@@ -82,8 +80,7 @@ print '
'."\n";
// Example with a yes / no select
-$var=!$var;
-print '