diff --git a/htdocs/accountancy/admin/categories.php b/htdocs/accountancy/admin/categories.php index f0013632b537d05ca4ba24d711a7fbc53736158f..b1836836e84eafad4c1598ae683b5de80e19f8be 100644 --- a/htdocs/accountancy/admin/categories.php +++ b/htdocs/accountancy/admin/categories.php @@ -138,7 +138,7 @@ if ($action == 'display' || $action == 'delete') { if(!empty($obj)){ foreach ( $obj as $cpt ) { $var = ! $var; - print "<tr $bc[$var]>"; + print '<tr'. $bc[$var].'>'; print '<td>' . length_accountg($cpt->account_number) . '</td>'; print '<td>' . $cpt->label . '</td>'; print $form->formconfirm($_SERVER["PHP_SELF"]."?account_category=$cat_id&cptid=".$cpt->rowid, $langs->trans("DeleteCptCategory"), $langs->trans("ConfirmDeleteCptCategory"), "delete", '', 0, "action-delete".$j); diff --git a/htdocs/accountancy/admin/importaccounts.php b/htdocs/accountancy/admin/importaccounts.php index 0dc560aa62e631d118dcbde085f4ccde217207f0..720f3a4f0124c3dc61e2d03713ae1ace230769f9 100644 --- a/htdocs/accountancy/admin/importaccounts.php +++ b/htdocs/accountancy/admin/importaccounts.php @@ -138,7 +138,7 @@ if ($result) { while ( $i < min($num_lines, $limit) ) { $objp = $db->fetch_object($result); $var = ! $var; - print "<tr $bc[$var]>"; + print '<tr'. $bc[$var].'>'; print '<td align="left">'; print $objp->accounting; diff --git a/htdocs/accountancy/admin/productaccount.php b/htdocs/accountancy/admin/productaccount.php index 80ed3f6fb477712d5d7d0f776b03ebbb9eff08c7..63060e1ed60f4dbe48c124942707f5beb22009e6 100644 --- a/htdocs/accountancy/admin/productaccount.php +++ b/htdocs/accountancy/admin/productaccount.php @@ -328,10 +328,10 @@ if ($result) { $product_static = new Product($db); - print "<tr $bc[$var]>"; + print '<tr'. $bc[$var].'>'; print "</tr>"; - print "<tr $bc[$var]>"; + print '<tr'. $bc[$var].'>'; // Ref produit as link $product_static->ref = $obj->ref; $product_static->id = $obj->rowid; diff --git a/htdocs/accountancy/bookkeeping/balance.php b/htdocs/accountancy/bookkeeping/balance.php index e89799d765e7d7c4e69f76f2f0590147089bfd76..736aec486442dfca42eebcf2fb888fc95e7bd3cc 100644 --- a/htdocs/accountancy/bookkeeping/balance.php +++ b/htdocs/accountancy/bookkeeping/balance.php @@ -223,7 +223,7 @@ else { if(empty($description)){ $link = '<a href="../admin/card.php?action=create&compte=' . length_accountg($line->numero_compte) . '">' . img_edit_add() .'</a>'; } - print "<tr $bc[$var]>"; + print '<tr'. $bc[$var].'>'; print '<td>' . length_accountg($line->numero_compte) . '</td>'; print '<td>' . $description . '</td>'; diff --git a/htdocs/accountancy/bookkeeping/card.php b/htdocs/accountancy/bookkeeping/card.php index 5421a4a350dabbfdc70c4cde1e4ec32272c4be8d..7293797ecc60227771d646180110960d2d0d54ee 100644 --- a/htdocs/accountancy/bookkeeping/card.php +++ b/htdocs/accountancy/bookkeeping/card.php @@ -346,7 +346,7 @@ if ($action == 'create') { foreach ( $book->linesmvt as $line ) { $var = ! $var; - print "<tr $bc[$var]>"; + print '<tr'. $bc[$var].'>'; $total_debit += $line->debit; $total_credit += $line->credit; @@ -400,7 +400,7 @@ if ($action == 'create') { if ($action == "" || $action == 'add') { $var = ! $var; - print "<tr $bc[$var]>"; + print '<tr'. $bc[$var].'>'; print '<td>'; print $formventilation->select_account($account_number, 'account_number', 0, array (), 1, 1, ''); print '</td>'; diff --git a/htdocs/accountancy/bookkeeping/list.php b/htdocs/accountancy/bookkeeping/list.php index 557143164a9492b1f062597f13e2aa80f78c42e4..cb5d7caf006b643557a3f1ef099a37133f62f3f2 100644 --- a/htdocs/accountancy/bookkeeping/list.php +++ b/htdocs/accountancy/bookkeeping/list.php @@ -368,7 +368,7 @@ foreach ( $object->lines as $line ) { $total_debit += $line->debit; $total_credit += $line->credit; - print "<tr $bc[$var]>"; + print '<tr'. $bc[$var].'>'; print '<td><a href="./card.php?piece_num=' . $line->piece_num . '">' . $line->piece_num . '</a></td>'; print '<td align="center">' . dol_print_date($line->doc_date, 'day') . '</td>'; diff --git a/htdocs/accountancy/bookkeeping/listbyyear.php b/htdocs/accountancy/bookkeeping/listbyyear.php index 10640c1887ab1722b4a2cd47d14ff527999452bf..23eeb79621a7412d15d67b558d6985f62fc01ba5 100644 --- a/htdocs/accountancy/bookkeeping/listbyyear.php +++ b/htdocs/accountancy/bookkeeping/listbyyear.php @@ -269,7 +269,7 @@ $var = True; foreach ( $object->lines as $line ) { $var = ! $var; - print "<tr $bc[$var]>"; + print '<tr'. $bc[$var].'>'; print '<td>' . $line->piece_num . '</td>' . "\n"; print '<td>' . $line->doc_type . '</td>' . "\n"; print '<td>' . dol_print_date($line->doc_date) . '</td>'; diff --git a/htdocs/accountancy/customer/lines.php b/htdocs/accountancy/customer/lines.php index 292b52b58632618e914883d2c378c2e2bd6e2559..3549651cbd6c56f32a9a2bd23105c3ff8514cd9f 100644 --- a/htdocs/accountancy/customer/lines.php +++ b/htdocs/accountancy/customer/lines.php @@ -288,7 +288,7 @@ if ($result) { $var = ! $var; $codecompta = length_accountg($objp->account_number) . ' - ' . $objp->label_compte; - print "<tr $bc[$var]>"; + print '<tr'. $bc[$var].'>'; // Ref Invoice $facture_static->ref = $objp->facnumber; diff --git a/htdocs/accountancy/customer/list.php b/htdocs/accountancy/customer/list.php index 438eb30c6212b5858b1ccd18da274cadd6cb70bc..167f558d830abbc9708b9ff6cca936414429784b 100644 --- a/htdocs/accountancy/customer/list.php +++ b/htdocs/accountancy/customer/list.php @@ -302,7 +302,7 @@ if ($result) { if ($objp->code_sell_l != $objp->code_sell_p) $code_sell_p_l_differ = 'color:red'; - print "<tr $bc[$var]>"; + print '<tr'. $bc[$var].'>'; // Ref Invoice $facture_static->ref = $objp->facnumber; diff --git a/htdocs/accountancy/report/result.php b/htdocs/accountancy/report/result.php index 48d587b575b766625d1f5e804097ee0bfe690d1c..72a4d6e96b219f148007ba4f180f787987b6c6ca 100644 --- a/htdocs/accountancy/report/result.php +++ b/htdocs/accountancy/report/result.php @@ -127,7 +127,7 @@ if(!empty($cats)) $resultN = $AccCat->getResult($cpt['account_number'], 0, $year_current, $cpt['dc']); $sommes[$code]['NP'] += $resultNP; $sommes[$code]['N'] += $resultN; - print "<tr $bc[$var]>"; + print '<tr'. $bc[$var].'>'; print '<td>' . $cpt['account_number'] . '</td>'; print '<td>' . $cpt['name_cpt'] . '</td>'; print '<td>' . price($resultNP) . '</td>'; diff --git a/htdocs/accountancy/supplier/lines.php b/htdocs/accountancy/supplier/lines.php index 6ab2cf589a623b988855d124394840941f3ceae0..a0b2365350f676e73c8309633dedf585bffdf78d 100644 --- a/htdocs/accountancy/supplier/lines.php +++ b/htdocs/accountancy/supplier/lines.php @@ -236,7 +236,7 @@ if ($result) { $var = ! $var; $codeCompta = length_accountg($objp->account_number) . ' - ' . $objp->label; - print "<tr $bc[$var]>"; + print '<tr'. $bc[$var].'>'; // Ref Invoice $facturefournisseur_static->ref = $objp->facnumber; diff --git a/htdocs/accountancy/supplier/list.php b/htdocs/accountancy/supplier/list.php index 8685cb7d5d4dc16c39c0b7a574dedfdc659adbcb..c98ba0502228b118abaeeb0554688b1ee8bcd0de 100644 --- a/htdocs/accountancy/supplier/list.php +++ b/htdocs/accountancy/supplier/list.php @@ -314,7 +314,7 @@ if ($result) { if ($objp->code_buy_l != $objp->code_buy_p) $code_buy_p_l_differ = 'color:red'; - print "<tr $bc[$var]>"; + print '<tr'. $bc[$var].'>'; // Ref Invoice $facturefourn_static->ref = $objp->ref; diff --git a/htdocs/expensereport/synchro_compta.php b/htdocs/expensereport/synchro_compta.php index 59a6b8926fe1228d48e6a5da5d39a98d3ef5b970..31c2d98584084123048a96eea52184ef655c3e72 100644 --- a/htdocs/expensereport/synchro_compta.php +++ b/htdocs/expensereport/synchro_compta.php @@ -165,7 +165,7 @@ else: while($i<$num): $objp = $db->fetch_object($resql); $var=!$var; - print "<tr $bc[$var]>"; + print '<tr'. $bc[$var].'>'; print '<td>'.$objp->ref.'</td>'; print '<td>'.dol_print_date($db->jdate($objp->date_valid),'day').'</td>'; print '<td><a href="'.DOL_URL_ROOT.'/user/card.php?id='.$objp->fk_user_author.'">'.img_object($langs->trans("ShowUser"),"user").' '.$objp->declarant_NDF.'</a></td>'; diff --git a/htdocs/product/price.php b/htdocs/product/price.php index 67bb3165fb640fa6894eef831e119fdeec016af5..694297b5b2fbf0b687f41ec19477013613689ee7 100644 --- a/htdocs/product/price.php +++ b/htdocs/product/price.php @@ -1315,7 +1315,7 @@ if ((empty($conf->global->PRODUIT_CUSTOMER_PRICES) || $action=='showlog_default_ { $objp = $db->fetch_object($result); $var = ! $var; - print "<tr $bc[$var]>"; + print '<tr'. $bc[$var].'>'; // Date print "<td>" . dol_print_date($db->jdate($objp->dp), "dayhour") . "</td>"; diff --git a/htdocs/societe/price.php b/htdocs/societe/price.php index 45eba9b397f68f89129bf71904eda353b9bb003d..4c98860341774bec2d9658c85e626e2ef3a36b79 100644 --- a/htdocs/societe/price.php +++ b/htdocs/societe/price.php @@ -416,7 +416,7 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES)) { foreach ( $prodcustprice->lines as $line ) { - print "<tr $bc[$var]>"; + print '<tr'. $bc[$var].'>'; $staticprod = new Product($db); $staticprod->fetch($line->fk_product); diff --git a/scripts/accountancy/export-thirdpartyaccount.php b/scripts/accountancy/export-thirdpartyaccount.php index 05236aabf7efe51e0e119488eb8c11019b7ca97d..c84ffdabc0f95ee4209046b2797007d62cac0f7a 100755 --- a/scripts/accountancy/export-thirdpartyaccount.php +++ b/scripts/accountancy/export-thirdpartyaccount.php @@ -207,7 +207,7 @@ if ($resql) { $var = ! $var; - print "<tr $bc[$var]>"; + print '<tr'. $bc[$var].'>'; print '<td>'; $thirdpartystatic->id = $obj->rowid; $thirdpartystatic->name = $obj->name;