From a612aefab753cf82ea219aced24409381042d626 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 12 Dec 2019 11:11:08 +0100 Subject: [PATCH] Fix HTML5 --- .../canvas/default/tpl/adherentcard_create.tpl.php | 2 +- .../adherents/canvas/default/tpl/adherentcard_edit.tpl.php | 2 +- htdocs/adherents/index.php | 1 - htdocs/core/class/html.form.class.php | 2 +- htdocs/core/class/html.formmail.class.php | 2 +- htdocs/core/lib/admin.lib.php | 6 +++--- htdocs/core/lib/ldap.lib.php | 2 +- htdocs/core/modules/bom/doc/doc_generic_bom_odt.modules.php | 4 ++-- .../modules/commande/doc/doc_generic_order_odt.modules.php | 4 ++-- .../contract/doc/doc_generic_contract_odt.modules.php | 2 +- .../expedition/doc/doc_generic_shipment_odt.modules.php | 4 ++-- .../modules/facture/doc/doc_generic_invoice_odt.modules.php | 4 ++-- htdocs/core/modules/mrp/doc/doc_generic_mo_odt.modules.php | 4 ++-- .../modules/product/doc/doc_generic_product_odt.modules.php | 2 +- .../modules/project/doc/doc_generic_project_odt.modules.php | 4 ++-- .../project/task/doc/doc_generic_task_odt.modules.php | 4 ++-- .../propale/doc/doc_generic_proposal_odt.modules.php | 4 ++-- .../reception/doc/doc_generic_reception_odt.modules.php | 4 ++-- htdocs/core/modules/societe/doc/doc_generic_odt.modules.php | 4 ++-- .../modules/stock/doc/doc_generic_stock_odt.modules.php | 2 +- .../pdf/doc_generic_supplier_order_odt.modules.php | 4 ++-- .../doc/doc_generic_supplier_proposal_odt.modules.php | 4 ++-- .../core/modules/user/doc/doc_generic_user_odt.modules.php | 2 +- .../usergroup/doc/doc_generic_usergroup_odt.modules.php | 2 +- htdocs/don/payment/payment.php | 2 +- .../mymodule/doc/doc_generic_myobject_odt.modules.php | 4 ++-- 26 files changed, 40 insertions(+), 41 deletions(-) diff --git a/htdocs/adherents/canvas/default/tpl/adherentcard_create.tpl.php b/htdocs/adherents/canvas/default/tpl/adherentcard_create.tpl.php index 4572164fdcf..9778db176d6 100644 --- a/htdocs/adherents/canvas/default/tpl/adherentcard_create.tpl.php +++ b/htdocs/adherents/canvas/default/tpl/adherentcard_create.tpl.php @@ -116,7 +116,7 @@ echo $this->control->tpl['ajax_selectcountry']; ?> trans("Note"); ?> - + diff --git a/htdocs/adherents/canvas/default/tpl/adherentcard_edit.tpl.php b/htdocs/adherents/canvas/default/tpl/adherentcard_edit.tpl.php index 942ddb2d647..1e75fd57dd6 100644 --- a/htdocs/adherents/canvas/default/tpl/adherentcard_edit.tpl.php +++ b/htdocs/adherents/canvas/default/tpl/adherentcard_edit.tpl.php @@ -125,7 +125,7 @@ echo $this->control->tpl['ajax_selectcountry']; trans("Note"); ?> - + diff --git a/htdocs/adherents/index.php b/htdocs/adherents/index.php index dcd3d48d323..28fb8b3b29a 100644 --- a/htdocs/adherents/index.php +++ b/htdocs/adherents/index.php @@ -124,7 +124,6 @@ if ($result) } -//print ''; print '
'; diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 88f3d2e460c..7671c50a09c 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -7411,7 +7411,7 @@ class Form if ($urladvanced) $ret.=''; else $ret.=''; } - $ret.='Photo'; + $ret.='Photo'; if ($addlinktofullsize) $ret.=''; } elseif ($altfile && file_exists($dir."/".$altfile)) diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php index e66b2630ea1..2fd1b409ed7 100644 --- a/htdocs/core/class/html.formmail.class.php +++ b/htdocs/core/class/html.formmail.class.php @@ -973,7 +973,7 @@ class FormMail extends Form $defaultmessage = preg_replace("/^\n+/", "", $defaultmessage); } $out .= ''; - $out .= ''; + $out .= ''; $out .= $form->textwithpicto($langs->trans('MailText'), $helpforsubstitution, 1, 'help', '', 0, 2, 'substittooltipfrombody'); $out .= ''; $out .= ''; diff --git a/htdocs/core/lib/admin.lib.php b/htdocs/core/lib/admin.lib.php index 1b5849f9476..288e7058a08 100644 --- a/htdocs/core/lib/admin.lib.php +++ b/htdocs/core/lib/admin.lib.php @@ -254,7 +254,7 @@ function run_sql($sqlfile, $silent = 1, $entity = '', $usesavepoint = 1, $handle } else { - if (! $silent) print ''; + if (! $silent) print ''; if (! $silent) print '
'.$langs->trans("Failed to get max rowid for ".$table)."
"; if (! $silent) print ''; $error++; @@ -339,7 +339,7 @@ function run_sql($sqlfile, $silent = 1, $entity = '', $usesavepoint = 1, $handle $cursor=$reg[1]; if (empty($listofinsertedrowid[$cursor])) { - if (! $silent) print ''; + if (! $silent) print ''; if (! $silent) print '
'.$langs->trans("FileIsNotCorrect")."
"; if (! $silent) print ''; $error++; @@ -396,7 +396,7 @@ function run_sql($sqlfile, $silent = 1, $entity = '', $usesavepoint = 1, $handle // Is it an error we accept if (! in_array($errno, $okerrors)) { - if (! $silent) print ''; + if (! $silent) print ''; if (! $silent) print '
'.$langs->trans("Error")." ".$db->errno().": ".$newsql."
".$db->error()."
"; if (! $silent) print ''."\n"; dol_syslog('Admin.lib::run_sql Request '.($i+1)." Error ".$db->errno()." ".$newsql."
".$db->error(), LOG_ERR); diff --git a/htdocs/core/lib/ldap.lib.php b/htdocs/core/lib/ldap.lib.php index 01ebdd277e1..6e9fd42b932 100644 --- a/htdocs/core/lib/ldap.lib.php +++ b/htdocs/core/lib/ldap.lib.php @@ -163,7 +163,7 @@ function show_ldap_content($result, $level, $count, $var, $hide = 0, $subcount = $hide=0; if (! is_numeric($key)) { - print ''; + print ''; print ''; print $key; print ''; diff --git a/htdocs/core/modules/bom/doc/doc_generic_bom_odt.modules.php b/htdocs/core/modules/bom/doc/doc_generic_bom_odt.modules.php index beaaf3cc19b..be50e7bb757 100644 --- a/htdocs/core/modules/bom/doc/doc_generic_bom_odt.modules.php +++ b/htdocs/core/modules/bom/doc/doc_generic_bom_odt.modules.php @@ -168,12 +168,12 @@ class doc_generic_bom_odt extends ModelePDFBom { $texte .= $file['name'].'
'; } - $texte .= '
'; + $texte .= '
'; } $texte .= ''; - $texte .= ''; + $texte .= ''; $texte .= $langs->trans("ExampleOfDirectoriesForModelGen"); $texte .= ''; $texte .= ''; diff --git a/htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php b/htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php index 22154d40d79..794e7c57a29 100644 --- a/htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php +++ b/htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php @@ -175,12 +175,12 @@ class doc_generic_order_odt extends ModelePDFCommandes { $texte .= $file['name'].'
'; } - $texte .= '
'; + $texte .= '
'; } $texte .= ''; - $texte .= ''; + $texte .= ''; $texte .= $langs->trans("ExampleOfDirectoriesForModelGen"); $texte .= ''; $texte .= ''; diff --git a/htdocs/core/modules/contract/doc/doc_generic_contract_odt.modules.php b/htdocs/core/modules/contract/doc/doc_generic_contract_odt.modules.php index ca2146703bd..e7770981d09 100644 --- a/htdocs/core/modules/contract/doc/doc_generic_contract_odt.modules.php +++ b/htdocs/core/modules/contract/doc/doc_generic_contract_odt.modules.php @@ -170,7 +170,7 @@ class doc_generic_contract_odt extends ModelePDFContract $texte .= ''; - $texte .= ''; + $texte .= ''; $texte .= $langs->trans("ExampleOfDirectoriesForModelGen"); $texte .= ''; $texte .= ''; diff --git a/htdocs/core/modules/expedition/doc/doc_generic_shipment_odt.modules.php b/htdocs/core/modules/expedition/doc/doc_generic_shipment_odt.modules.php index 7dbd3002e33..18ef68550a4 100644 --- a/htdocs/core/modules/expedition/doc/doc_generic_shipment_odt.modules.php +++ b/htdocs/core/modules/expedition/doc/doc_generic_shipment_odt.modules.php @@ -175,12 +175,12 @@ class doc_generic_shipment_odt extends ModelePdfExpedition { $texte.=$file['name'].'
'; } - $texte.='
'; + $texte.='
'; } $texte.= ''; - $texte.= ''; + $texte.= ''; $texte.= $langs->trans("ExampleOfDirectoriesForModelGen"); $texte.= ''; $texte.= ''; diff --git a/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php b/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php index bb39f88c45d..be264918a89 100644 --- a/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php +++ b/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php @@ -174,12 +174,12 @@ class doc_generic_invoice_odt extends ModelePDFFactures { $texte.=$file['name'].'
'; } - $texte.='
'; + $texte.='
'; } $texte.= ''; - $texte.= ''; + $texte.= ''; $texte.= $langs->trans("ExampleOfDirectoriesForModelGen"); $texte.= ''; $texte.= ''; diff --git a/htdocs/core/modules/mrp/doc/doc_generic_mo_odt.modules.php b/htdocs/core/modules/mrp/doc/doc_generic_mo_odt.modules.php index ef61306c692..735fa64bd6e 100644 --- a/htdocs/core/modules/mrp/doc/doc_generic_mo_odt.modules.php +++ b/htdocs/core/modules/mrp/doc/doc_generic_mo_odt.modules.php @@ -175,12 +175,12 @@ class doc_generic_mo_odt extends ModelePDFMo { $texte .= $file['name'].'
'; } - $texte .= '
'; + $texte .= '
'; } $texte .= ''; - $texte .= ''; + $texte .= ''; $texte .= $langs->trans("ExampleOfDirectoriesForModelGen"); $texte .= ''; $texte .= ''; diff --git a/htdocs/core/modules/product/doc/doc_generic_product_odt.modules.php b/htdocs/core/modules/product/doc/doc_generic_product_odt.modules.php index 5e0cc4d4076..c0fa4d0f6eb 100644 --- a/htdocs/core/modules/product/doc/doc_generic_product_odt.modules.php +++ b/htdocs/core/modules/product/doc/doc_generic_product_odt.modules.php @@ -194,7 +194,7 @@ class doc_generic_product_odt extends ModelePDFProduct $texte .= ''; - $texte .= ''; + $texte .= ''; $texte .= $langs->trans("ExampleOfDirectoriesForModelGen"); $texte .= ''; $texte .= ''; diff --git a/htdocs/core/modules/project/doc/doc_generic_project_odt.modules.php b/htdocs/core/modules/project/doc/doc_generic_project_odt.modules.php index 938d58a4065..488938a725b 100644 --- a/htdocs/core/modules/project/doc/doc_generic_project_odt.modules.php +++ b/htdocs/core/modules/project/doc/doc_generic_project_odt.modules.php @@ -446,12 +446,12 @@ class doc_generic_project_odt extends ModelePDFProjects { $texte .= $file['name'].'
'; } - $texte .= '
'; + $texte .= '
'; } $texte .= ''; - $texte .= ''; + $texte .= ''; $texte .= $langs->trans("ExampleOfDirectoriesForModelGen"); $texte .= ''; $texte .= ''; diff --git a/htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php b/htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php index a53e7647711..386de7bfdd7 100644 --- a/htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php +++ b/htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php @@ -406,12 +406,12 @@ class doc_generic_task_odt extends ModelePDFTask { $texte .= $file['name'].'
'; } - $texte .= '
'; + $texte .= '
'; } $texte .= ''; - $texte .= ''; + $texte .= ''; $texte .= $langs->trans("ExampleOfDirectoriesForModelGen"); $texte .= ''; $texte .= ''; diff --git a/htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php b/htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php index b3c26ffd0bb..b955da102ab 100644 --- a/htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php +++ b/htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php @@ -178,7 +178,7 @@ class doc_generic_proposal_odt extends ModelePDFPropales { $texte .= $file['name'].'
'; } - $texte .= '
'; + $texte .= '
'; if ($conf->global->MAIN_PROPAL_CHOOSE_ODT_DOCUMENT > 0) { @@ -208,7 +208,7 @@ class doc_generic_proposal_odt extends ModelePDFPropales $texte .= ''; - $texte .= ''; + $texte .= ''; $texte .= $langs->trans("ExampleOfDirectoriesForModelGen"); $texte .= ''; $texte .= ''; diff --git a/htdocs/core/modules/reception/doc/doc_generic_reception_odt.modules.php b/htdocs/core/modules/reception/doc/doc_generic_reception_odt.modules.php index 0cd252924f3..e57d4dc2733 100644 --- a/htdocs/core/modules/reception/doc/doc_generic_reception_odt.modules.php +++ b/htdocs/core/modules/reception/doc/doc_generic_reception_odt.modules.php @@ -169,12 +169,12 @@ class doc_generic_reception_odt extends ModelePdfReception { $texte.=$file['name'].'
'; } - $texte.='
'; + $texte.='
'; } $texte.= ''; - $texte.= ''; + $texte.= ''; $texte.= $langs->trans("ExampleOfDirectoriesForModelGen"); $texte.= ''; $texte.= ''; diff --git a/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php b/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php index 7bed674bf55..cafacc6ac57 100644 --- a/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php +++ b/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php @@ -158,12 +158,12 @@ class doc_generic_odt extends ModeleThirdPartyDoc { $texte .= $file['name'].'
'; } - $texte .= '
'; + $texte .= '
'; } $texte .= ''; - $texte .= ''; + $texte .= ''; $texte .= $langs->trans("ExampleOfDirectoriesForModelGen"); $texte .= ''; $texte .= ''; diff --git a/htdocs/core/modules/stock/doc/doc_generic_stock_odt.modules.php b/htdocs/core/modules/stock/doc/doc_generic_stock_odt.modules.php index 0d6d2e3d420..4d8692822d7 100644 --- a/htdocs/core/modules/stock/doc/doc_generic_stock_odt.modules.php +++ b/htdocs/core/modules/stock/doc/doc_generic_stock_odt.modules.php @@ -194,7 +194,7 @@ class doc_generic_stock_odt extends ModelePDFStock $texte.= ''; - $texte.= ''; + $texte.= ''; $texte.= $langs->trans("ExampleOfDirectoriesForModelGen"); $texte.= ''; $texte.= ''; diff --git a/htdocs/core/modules/supplier_order/pdf/doc_generic_supplier_order_odt.modules.php b/htdocs/core/modules/supplier_order/pdf/doc_generic_supplier_order_odt.modules.php index bdb5e88bdb8..cfaf1334b5b 100644 --- a/htdocs/core/modules/supplier_order/pdf/doc_generic_supplier_order_odt.modules.php +++ b/htdocs/core/modules/supplier_order/pdf/doc_generic_supplier_order_odt.modules.php @@ -176,12 +176,12 @@ class doc_generic_supplier_order_odt extends ModelePDFSuppliersOrders { $texte.=$file['name'].'
'; } - $texte.='
'; + $texte.='
'; } $texte.= ''; - $texte.= ''; + $texte.= ''; $texte.= $langs->trans("ExampleOfDirectoriesForModelGen"); $texte.= ''; $texte.= ''; diff --git a/htdocs/core/modules/supplier_proposal/doc/doc_generic_supplier_proposal_odt.modules.php b/htdocs/core/modules/supplier_proposal/doc/doc_generic_supplier_proposal_odt.modules.php index 95f7b0e45d0..dcc9457e588 100644 --- a/htdocs/core/modules/supplier_proposal/doc/doc_generic_supplier_proposal_odt.modules.php +++ b/htdocs/core/modules/supplier_proposal/doc/doc_generic_supplier_proposal_odt.modules.php @@ -180,7 +180,7 @@ class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal { $texte.=$file['name'].'
'; } - $texte.='
'; + $texte.='
'; if ($conf->global->MAIN_SUPPLIER_PROPOSAL_CHOOSE_ODT_DOCUMENT > 0) { @@ -210,7 +210,7 @@ class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal $texte.= ''; - $texte.= ''; + $texte.= ''; $texte.= $langs->trans("ExampleOfDirectoriesForModelGen"); $texte.= ''; $texte.= ''; diff --git a/htdocs/core/modules/user/doc/doc_generic_user_odt.modules.php b/htdocs/core/modules/user/doc/doc_generic_user_odt.modules.php index c788ce0b03c..ebd40b806a5 100644 --- a/htdocs/core/modules/user/doc/doc_generic_user_odt.modules.php +++ b/htdocs/core/modules/user/doc/doc_generic_user_odt.modules.php @@ -192,7 +192,7 @@ class doc_generic_user_odt extends ModelePDFUser $texte.= ''; - $texte.= ''; + $texte.= ''; $texte.= $langs->trans("ExampleOfDirectoriesForModelGen"); $texte.= ''; $texte.= ''; diff --git a/htdocs/core/modules/usergroup/doc/doc_generic_usergroup_odt.modules.php b/htdocs/core/modules/usergroup/doc/doc_generic_usergroup_odt.modules.php index ef204e50a16..2dbe87bdccf 100644 --- a/htdocs/core/modules/usergroup/doc/doc_generic_usergroup_odt.modules.php +++ b/htdocs/core/modules/usergroup/doc/doc_generic_usergroup_odt.modules.php @@ -195,7 +195,7 @@ class doc_generic_usergroup_odt extends ModelePDFUserGroup $texte.= ''; - $texte.= ''; + $texte.= ''; $texte.= $langs->trans("ExampleOfDirectoriesForModelGen"); $texte.= ''; $texte.= ''; diff --git a/htdocs/don/payment/payment.php b/htdocs/don/payment/payment.php index 6ca66ad18a5..3fed9dd165f 100644 --- a/htdocs/don/payment/payment.php +++ b/htdocs/don/payment/payment.php @@ -215,7 +215,7 @@ if ($action == 'create') print ''; print ''.$langs->trans("Comments").''; - print ''; + print ''; print ''; print ''; diff --git a/htdocs/modulebuilder/template/core/modules/mymodule/doc/doc_generic_myobject_odt.modules.php b/htdocs/modulebuilder/template/core/modules/mymodule/doc/doc_generic_myobject_odt.modules.php index db6462eb90a..6b1fd839e07 100644 --- a/htdocs/modulebuilder/template/core/modules/mymodule/doc/doc_generic_myobject_odt.modules.php +++ b/htdocs/modulebuilder/template/core/modules/mymodule/doc/doc_generic_myobject_odt.modules.php @@ -175,12 +175,12 @@ class doc_generic_myobject_odt extends ModelePDFMyObject { $texte .= $file['name'].'
'; } - $texte .= '
'; + $texte .= '
'; } $texte .= ''; - $texte .= ''; + $texte .= ''; $texte .= $langs->trans("ExampleOfDirectoriesForModelGen"); $texte .= ''; $texte .= '';