diff --git a/htdocs/adherents/document.php b/htdocs/adherents/document.php
index 4c91efc265c..46b2b827d73 100644
--- a/htdocs/adherents/document.php
+++ b/htdocs/adherents/document.php
@@ -91,7 +91,7 @@ if ($id > 0)
if ($result > 0)
{
- // Construit liste des fichiers
+ // Build file list
$filearray=dol_dir_list($upload_dir,"files",0,'','(\.meta|_preview.*\.png)$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1);
$totalsize=0;
foreach($filearray as $key => $file)
diff --git a/htdocs/admin/mails.php b/htdocs/admin/mails.php
index e4f6ffc397a..4ad7a74bcb9 100644
--- a/htdocs/admin/mails.php
+++ b/htdocs/admin/mails.php
@@ -366,7 +366,7 @@ if ($action == 'edit')
{
$mainstmpid=(! empty($conf->global->MAIN_MAIL_SMTPS_ID)?$conf->global->MAIN_MAIL_SMTPS_ID:'');
- print '
| '.$langs->trans("MAIN_MAIL_SMTPS_PW").' | ';
// SuperAdministrator access only
if (empty($conf->multicompany->enabled) || ($user->admin && !$user->entity))
{
diff --git a/htdocs/asset/document.php b/htdocs/asset/document.php
index 6427befd03e..92efa8918ee 100644
--- a/htdocs/asset/document.php
+++ b/htdocs/asset/document.php
@@ -100,7 +100,7 @@ if ($object->id)
dol_fiche_head($head, 'document', $langs->trans("Asset"), -1, 'generic');
- // Construit liste des fichiers
+ // Build file list
$filearray=dol_dir_list($upload_dir,"files",0,'','(\.meta|_preview.*\.png)$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1);
$totalsize=0;
foreach($filearray as $key => $file)
diff --git a/htdocs/comm/action/document.php b/htdocs/comm/action/document.php
index 7fc12129cc5..a5998e220f7 100644
--- a/htdocs/comm/action/document.php
+++ b/htdocs/comm/action/document.php
@@ -239,7 +239,7 @@ if ($object->id > 0)
print '';
- // Construit liste des fichiers
+ // Build file list
$filearray=dol_dir_list($upload_dir,"files",0,'','(\.meta|_preview.*\.png)$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1);
$totalsize=0;
foreach($filearray as $key => $file)
diff --git a/htdocs/comm/mailing/cibles.php b/htdocs/comm/mailing/cibles.php
index 6caa262500e..7b01c1c5a22 100644
--- a/htdocs/comm/mailing/cibles.php
+++ b/htdocs/comm/mailing/cibles.php
@@ -303,8 +303,6 @@ if ($object->fetch($id) >= 0)
// Sort $modulenames
sort($modulenames);
- $var = true;
-
// Loop on each submodule
foreach($modulenames as $modulename)
{
@@ -330,16 +328,14 @@ if ($object->fetch($id) >= 0)
// Si le module mailing est qualifie
if ($qualified)
{
- $var = ! $var;
-
if ($allowaddtarget)
{
- print ' ';
print "\n";
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/resource/note.php b/htdocs/resource/note.php
index 9116cdd0387..f811d0e07ed 100644
--- a/htdocs/resource/note.php
+++ b/htdocs/resource/note.php
@@ -100,5 +100,6 @@ if ($id > 0 || ! empty($ref))
dol_fiche_end();
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/societe/admin/contact_extrafields.php b/htdocs/societe/admin/contact_extrafields.php
index 6a359232a16..34bdb688835 100644
--- a/htdocs/societe/admin/contact_extrafields.php
+++ b/htdocs/societe/admin/contact_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/societe/admin/societe.php b/htdocs/societe/admin/societe.php
index ecbefe2cb1d..a833363aff1 100644
--- a/htdocs/societe/admin/societe.php
+++ b/htdocs/societe/admin/societe.php
@@ -835,7 +835,6 @@ print '';
dol_fiche_end();
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/societe/admin/societe_extrafields.php b/htdocs/societe/admin/societe_extrafields.php
index 11131eb25af..39f3ab53866 100644
--- a/htdocs/societe/admin/societe_extrafields.php
+++ b/htdocs/societe/admin/societe_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/societe/agenda.php b/htdocs/societe/agenda.php
index ebd35a6575c..ffcd894e84a 100644
--- a/htdocs/societe/agenda.php
+++ b/htdocs/societe/agenda.php
@@ -190,7 +190,6 @@ if ($socid > 0)
}
}
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php
index 419c007906a..5343c5509a1 100644
--- a/htdocs/societe/card.php
+++ b/htdocs/societe/card.php
@@ -2650,7 +2650,6 @@ else
}
}
-
// End of page
llxFooter();
$db->close();
diff --git a/htdocs/societe/checkvat/checkVatPopup.php b/htdocs/societe/checkvat/checkVatPopup.php
index e15c0864574..1222689358f 100644
--- a/htdocs/societe/checkvat/checkVatPopup.php
+++ b/htdocs/societe/checkvat/checkVatPopup.php
@@ -174,6 +174,6 @@ if ($messagetoshow)
print nl2br($messagetoshow);
}
-
+// End of page
llxFooter();
-$db->close();
+$db->close();;
diff --git a/htdocs/societe/consumption.php b/htdocs/societe/consumption.php
index 947c35a2d5c..c46f046f483 100644
--- a/htdocs/societe/consumption.php
+++ b/htdocs/societe/consumption.php
@@ -650,6 +650,6 @@ else {
print "";
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/societe/contact.php b/htdocs/societe/contact.php
index 37fb07eb652..24ec0026455 100644
--- a/htdocs/societe/contact.php
+++ b/htdocs/societe/contact.php
@@ -171,8 +171,6 @@ if ($action != 'presend')
}
}
-
-
// End of page
llxFooter();
$db->close();
diff --git a/htdocs/societe/document.php b/htdocs/societe/document.php
index e393fa64a2c..25478e133af 100644
--- a/htdocs/societe/document.php
+++ b/htdocs/societe/document.php
@@ -105,7 +105,7 @@ if ($object->id)
dol_fiche_head($head, 'document', $langs->trans("ThirdParty"), -1, 'company');
- // Construit liste des fichiers
+ // Build file list
$filearray=dol_dir_list($upload_dir,"files",0,'','(\.meta|_preview.*\.png)$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1);
$totalsize=0;
foreach($filearray as $key => $file)
@@ -169,6 +169,6 @@ else
accessforbidden('',0,0);
}
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/societe/index.php b/htdocs/societe/index.php
index 1bed6e635a0..b7ce405b433 100644
--- a/htdocs/societe/index.php
+++ b/htdocs/societe/index.php
@@ -365,6 +365,6 @@ else
//print ' |
';
print '';
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php
index d0e7fd19062..a8ae45b317c 100644
--- a/htdocs/societe/list.php
+++ b/htdocs/societe/list.php
@@ -1301,5 +1301,6 @@ print "";
print '';
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/societe/note.php b/htdocs/societe/note.php
index e31a07e8e65..169d2b687e9 100644
--- a/htdocs/societe/note.php
+++ b/htdocs/societe/note.php
@@ -129,6 +129,7 @@ else
print $langs->trans("ErrorRecordNotFound");
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/societe/notify/card.php b/htdocs/societe/notify/card.php
index cd8212ae327..fb4b51f17c8 100644
--- a/htdocs/societe/notify/card.php
+++ b/htdocs/societe/notify/card.php
@@ -532,7 +532,6 @@ if ($result > 0)
}
else dol_print_error('','RecordNotFound');
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/societe/notify/index.php b/htdocs/societe/notify/index.php
index 3326e431178..9980cf19a2a 100644
--- a/htdocs/societe/notify/index.php
+++ b/htdocs/societe/notify/index.php
@@ -105,6 +105,6 @@ else
dol_print_error($db);
}
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php
index 89aad30e2f5..d099cfcc103 100644
--- a/htdocs/societe/paymentmodes.php
+++ b/htdocs/societe/paymentmodes.php
@@ -1610,7 +1610,6 @@ if ($socid && ($action == 'create' || $action == 'createcard') && $user->rights-
print '';
}
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/societe/price.php b/htdocs/societe/price.php
index e35cf186ae3..45d7f9ad020 100644
--- a/htdocs/societe/price.php
+++ b/htdocs/societe/price.php
@@ -615,6 +615,6 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
}
}
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/societe/project.php b/htdocs/societe/project.php
index 08e2f593acb..dd06346ca33 100644
--- a/htdocs/societe/project.php
+++ b/htdocs/societe/project.php
@@ -147,7 +147,6 @@ if ($socid)
$result=show_projects($conf, $langs, $db, $object, $_SERVER["PHP_SELF"].'?socid='.$object->id, 1, $addbutton);
}
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/societe/societecontact.php b/htdocs/societe/societecontact.php
index dfe78041f8a..a2f09f9b77d 100644
--- a/htdocs/societe/societecontact.php
+++ b/htdocs/societe/societecontact.php
@@ -343,5 +343,6 @@ if ($id > 0 || ! empty($ref))
}
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/societe/website.php b/htdocs/societe/website.php
index d00b3144185..760bfef4d27 100644
--- a/htdocs/societe/website.php
+++ b/htdocs/societe/website.php
@@ -549,8 +549,6 @@ if (in_array('builddoc',$arrayofmassactions) && ($nbtotalofrecords === '' || $nb
print $formfile->showdocuments('massfilesarea_mymodule','',$filedir,$urlsource,0,$delallowed,'',1,1,0,48,1,$param,$title,'','','',null,$hidegeneratedfilelistifempty);
}
-
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/stripe/admin/stripe.php b/htdocs/stripe/admin/stripe.php
index 964280055c2..e142ca524b4 100644
--- a/htdocs/stripe/admin/stripe.php
+++ b/htdocs/stripe/admin/stripe.php
@@ -354,7 +354,7 @@ if (! empty($conf->use_javascript_ajax))
print '';
}
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/stripe/charge.php b/htdocs/stripe/charge.php
index 1464c9c2e6b..2f3d184fdb9 100644
--- a/htdocs/stripe/charge.php
+++ b/htdocs/stripe/charge.php
@@ -207,5 +207,6 @@ if (!$rowid)
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/stripe/transaction.php b/htdocs/stripe/transaction.php
index fc7ffa828e0..5b9282a6e79 100644
--- a/htdocs/stripe/transaction.php
+++ b/htdocs/stripe/transaction.php
@@ -203,5 +203,6 @@ if (! $rowid) {
print '';
} else {}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/supplier_proposal/admin/supplier_proposal_extrafields.php b/htdocs/supplier_proposal/admin/supplier_proposal_extrafields.php
index 545d953e753..24ae20848f1 100644
--- a/htdocs/supplier_proposal/admin/supplier_proposal_extrafields.php
+++ b/htdocs/supplier_proposal/admin/supplier_proposal_extrafields.php
@@ -143,6 +143,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/supplier_proposal/admin/supplier_proposaldet_extrafields.php b/htdocs/supplier_proposal/admin/supplier_proposaldet_extrafields.php
index 1f5b9582558..7d153a78cdc 100644
--- a/htdocs/supplier_proposal/admin/supplier_proposaldet_extrafields.php
+++ b/htdocs/supplier_proposal/admin/supplier_proposaldet_extrafields.php
@@ -145,6 +145,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/supplier_proposal/contact.php b/htdocs/supplier_proposal/contact.php
index fdf51406e8e..7be0dcbc78a 100644
--- a/htdocs/supplier_proposal/contact.php
+++ b/htdocs/supplier_proposal/contact.php
@@ -202,6 +202,6 @@ if ($id > 0 || ! empty($ref))
}
}
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/supplier_proposal/document.php b/htdocs/supplier_proposal/document.php
index 12de448829e..cf500246290 100644
--- a/htdocs/supplier_proposal/document.php
+++ b/htdocs/supplier_proposal/document.php
@@ -87,7 +87,7 @@ if ($object->id > 0)
$head = supplier_proposal_prepare_head($object);
dol_fiche_head($head, 'document', $langs->trans('CommRequest'), -1, 'supplier_proposal');
- // Construit liste des fichiers
+ // Build file list
$filearray=dol_dir_list($upload_dir,"files",0,'','(\.meta|_preview.*\.png)$',$sortfield,(strtolower($sortorder)=='desc'?SORT_DESC:SORT_ASC),1);
$totalsize=0;
foreach($filearray as $key => $file)
@@ -170,5 +170,6 @@ else
print $langs->trans("ErrorUnknown");
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/supplier_proposal/index.php b/htdocs/supplier_proposal/index.php
index 0e1b51480c1..cec80662c41 100644
--- a/htdocs/supplier_proposal/index.php
+++ b/htdocs/supplier_proposal/index.php
@@ -375,6 +375,6 @@ if (! empty($conf->supplier_proposal->enabled) && $user->rights->supplier_propos
print '';
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/supplier_proposal/info.php b/htdocs/supplier_proposal/info.php
index 3f83b4dca88..95a753272be 100644
--- a/htdocs/supplier_proposal/info.php
+++ b/htdocs/supplier_proposal/info.php
@@ -123,5 +123,6 @@ print '';
dol_fiche_end();
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/supplier_proposal/note.php b/htdocs/supplier_proposal/note.php
index ba54859a207..ff531b05d83 100644
--- a/htdocs/supplier_proposal/note.php
+++ b/htdocs/supplier_proposal/note.php
@@ -143,6 +143,6 @@ if ($id > 0 || ! empty($ref))
}
}
-
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/ticket/document.php b/htdocs/ticket/document.php
index e31cd98912d..d1d80387f6e 100644
--- a/htdocs/ticket/document.php
+++ b/htdocs/ticket/document.php
@@ -138,7 +138,7 @@ if ($object->id)
dol_fiche_end();
- // Construit liste des fichiers
+ // Build file list
$filearray = dol_dir_list($upload_dir, "files", 0, '', '\.meta$', $sortfield, (strtolower($sortorder) == 'desc' ? SORT_DESC : SORT_ASC), 1);
$totalsize = 0;
foreach ($filearray as $key => $file) {
@@ -158,5 +158,6 @@ else
accessforbidden('', 0, 0);
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/user/admin/group_extrafields.php b/htdocs/user/admin/group_extrafields.php
index 9f431909957..48e2b4091d6 100644
--- a/htdocs/user/admin/group_extrafields.php
+++ b/htdocs/user/admin/group_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/user/admin/user_extrafields.php b/htdocs/user/admin/user_extrafields.php
index ff07845f92d..81dc7c290c1 100644
--- a/htdocs/user/admin/user_extrafields.php
+++ b/htdocs/user/admin/user_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/user/agenda_extsites.php b/htdocs/user/agenda_extsites.php
index 1764ab5baf4..3146f1095b0 100644
--- a/htdocs/user/agenda_extsites.php
+++ b/htdocs/user/agenda_extsites.php
@@ -218,7 +218,6 @@ print "";
print "\n";
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/user/bank.php b/htdocs/user/bank.php
index 7f11911a46b..136384877fb 100644
--- a/htdocs/user/bank.php
+++ b/htdocs/user/bank.php
@@ -559,6 +559,6 @@ if ($id && $action == 'edit' && $user->rights->user->user->creer) print '
if ($id && $action == 'create' && $user->rights->user->user->creer) print '';
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/user/card.php b/htdocs/user/card.php
index 8fd979015bf..6c57af79de2 100644
--- a/htdocs/user/card.php
+++ b/htdocs/user/card.php
@@ -2538,5 +2538,6 @@ if (! empty($conf->api->enabled) && ! empty($conf->use_javascript_ajax))
print '';
}
+// End of page
llxFooter();
$db->close();
diff --git a/htdocs/user/clicktodial.php b/htdocs/user/clicktodial.php
index a4c4e90f99d..bfab243bbaf 100644
--- a/htdocs/user/clicktodial.php
+++ b/htdocs/user/clicktodial.php
@@ -216,7 +216,6 @@ if ($id > 0)
}
-
+// End of page
llxFooter();
-
$db->close();
diff --git a/htdocs/user/document.php b/htdocs/user/document.php
index a917a972ddc..6b22a303f96 100644
--- a/htdocs/user/document.php
+++ b/htdocs/user/document.php
@@ -141,7 +141,7 @@ if ($object->id)
print '