From 5d2f0811522b961bfab483a33fbb02fa89b93ec8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Doursenaud?= Date: Thu, 7 May 2015 12:20:20 +0200 Subject: [PATCH] [Qual] Fixed HTML select form selected attribute Dolibarr uses HTML 4.01 or HTML5 doctypes. The select form selected attribute should not have a value. --- htdocs/accountancy/admin/index.php | 4 +- .../class/html.formventilation.class.php | 10 +- htdocs/admin/facture.php | 6 +- htdocs/admin/menus/edit.php | 18 +-- htdocs/admin/tools/dolibarr_export.php | 4 +- htdocs/cashdesk/tpl/facturation1.tpl.php | 4 +- htdocs/comm/prospect/list.php | 4 +- htdocs/compta/bank/account.php | 2 +- htdocs/compta/bank/ligne.php | 2 +- htdocs/compta/bank/rappro.php | 4 +- htdocs/compta/facture.php | 10 +- htdocs/core/class/extrafields.class.php | 8 +- htdocs/core/class/html.form.class.php | 116 +++++++++--------- htdocs/core/class/html.formactions.class.php | 6 +- htdocs/core/class/html.formadmin.class.php | 16 +-- .../class/html.formaskpricesupplier.class.php | 2 +- htdocs/core/class/html.formbank.class.php | 2 +- htdocs/core/class/html.formbarcode.class.php | 8 +- htdocs/core/class/html.formcompany.class.php | 14 +-- htdocs/core/class/html.formcontract.class.php | 2 +- htdocs/core/class/html.formcron.class.php | 8 +- .../class/html.formintervention.class.php | 2 +- htdocs/core/class/html.formmailing.class.php | 4 +- htdocs/core/class/html.formorder.class.php | 18 +-- htdocs/core/class/html.formother.class.php | 34 ++--- htdocs/core/class/html.formprojet.class.php | 2 +- htdocs/core/class/html.formpropal.class.php | 2 +- htdocs/core/class/html.formsms.class.php | 4 +- .../class/html.formsocialcontrib.class.php | 2 +- htdocs/cron/card.php | 2 +- htdocs/ecm/class/htmlecm.form.class.php | 2 +- htdocs/expensereport/card.php | 2 +- .../class/expensereport.class.php | 8 +- htdocs/expensereport/export_csv.php | 4 +- htdocs/exports/class/export.class.php | 2 +- htdocs/holiday/admin/tomergewithholiday.php | 4 +- htdocs/holiday/class/holiday.class.php | 4 +- htdocs/install/fileconf.php | 2 +- htdocs/product/card.php | 8 +- .../product/class/html.formproduct.class.php | 4 +- htdocs/product/document.php | 2 +- htdocs/product/stock/card.php | 6 +- .../class/html.formresource.class.php | 6 +- .../canvas/actions_card_common.class.php | 8 +- htdocs/societe/soc.php | 16 +-- htdocs/societe/societe.php | 12 +- 46 files changed, 205 insertions(+), 205 deletions(-) diff --git a/htdocs/accountancy/admin/index.php b/htdocs/accountancy/admin/index.php index 0a005862054..c1ad179342a 100644 --- a/htdocs/accountancy/admin/index.php +++ b/htdocs/accountancy/admin/index.php @@ -221,7 +221,7 @@ if ($resql) { $row = $db->fetch_row($resql); print ''; $i ++; @@ -291,4 +291,4 @@ print "\n"; print '

'; print ''; llxFooter(); -$db->close(); \ No newline at end of file +$db->close(); diff --git a/htdocs/accountancy/class/html.formventilation.class.php b/htdocs/accountancy/class/html.formventilation.class.php index f2b6ba6346c..abd66a7885d 100644 --- a/htdocs/accountancy/class/html.formventilation.class.php +++ b/htdocs/accountancy/class/html.formventilation.class.php @@ -66,7 +66,7 @@ class FormVentilation extends Form $selected = ''; if ($selectedkey == $obj->import_key) { - $selected = ' selected="selected" '; + $selected = ' selected '; } $out .= ''; @@ -126,8 +126,8 @@ class FormVentilation extends Form // Remember guy's we store in database llx_facturedet the rowid of accountingaccount and not the account_number // Because same account_number can be share between different accounting_system and do have the same meaning if (($selectid != '') && $selectid == $obj->rowid) { - // $out .= ''; - $out .= ''; + // $out .= ''; + $out .= ''; } else { // $out .= ''; $out .= ''; @@ -184,7 +184,7 @@ class FormVentilation extends Form $label = $obj->pcg_type; if (($selectid != '') && $selectid == $obj->pcg_type) { - $out .= ''; + $out .= ''; } else { $out .= ''; } @@ -240,7 +240,7 @@ class FormVentilation extends Form $label = $obj->pcg_subtype; if (($selectid != '') && $selectid == $obj->pcg_subtype) { - $out .= ''; + $out .= ''; } else { $out .= ''; } diff --git a/htdocs/admin/facture.php b/htdocs/admin/facture.php index 2dca4821727..e993d2c276c 100644 --- a/htdocs/admin/facture.php +++ b/htdocs/admin/facture.php @@ -670,7 +670,7 @@ if (! empty($conf->banque->enabled)) $row = $db->fetch_row($resql); print ''; $i++; @@ -694,7 +694,7 @@ print "".$langs->trans("SuggestPaymentByChequeToAddress").""; print ""; print ''; print ''; - print ''; - print ''; + print ''; + print ''; print ''; } // print ''; @@ -356,8 +356,8 @@ if ($action == 'create') // Target print ''.$langs->trans('Target').''.$langs->trans('DetailTarget').''; // Enabled @@ -406,9 +406,9 @@ elseif ($action == 'edit') // User print ''.$langs->trans('MenuForUsers').''.$langs->trans('DetailUser').''; // Type @@ -438,8 +438,8 @@ elseif ($action == 'edit') // Target print ''.$langs->trans('Target').''.$langs->trans('DetailTarget').''; // Enabled diff --git a/htdocs/admin/tools/dolibarr_export.php b/htdocs/admin/tools/dolibarr_export.php index 7cd98625ac9..842efb3a0ac 100644 --- a/htdocs/admin/tools/dolibarr_export.php +++ b/htdocs/admin/tools/dolibarr_export.php @@ -215,7 +215,7 @@ print ''; - +