From b599481ef6aee92fb17abebc6b172d4c269bdc61 Mon Sep 17 00:00:00 2001
From: Grand Philippe <contact@atoo-net.com>
Date: Thu, 20 Jun 2013 09:18:12 +0200
Subject: [PATCH] standardize code

---
 htdocs/adherents/card_subscriptions.php       |  2 +-
 htdocs/adherents/cotisations.php              |  2 +-
 htdocs/adherents/index.php                    | 12 ++++-----
 htdocs/admin/osc-languages.php                |  2 +-
 htdocs/admin/system/database-tables.php       |  4 +--
 htdocs/admin/system/dbtable.php               |  2 +-
 htdocs/admin/system/modules.php               |  2 +-
 htdocs/admin/tools/listsessions.php           |  2 +-
 htdocs/bookmarks/liste.php                    |  2 +-
 htdocs/boutique/client/fiche.php              |  2 +-
 htdocs/boutique/client/index.php              |  2 +-
 htdocs/boutique/commande/ca.php               |  4 +--
 htdocs/boutique/commande/fiche.php            |  2 +-
 htdocs/boutique/commande/index.php            |  2 +-
 htdocs/boutique/critiques/bestproduct.php     |  2 +-
 htdocs/boutique/critiques/index.php           |  2 +-
 htdocs/boutique/index.php                     |  2 +-
 htdocs/boutique/notification/index.php        |  2 +-
 htdocs/boutique/notification/produits.php     |  2 +-
 htdocs/boutique/produits/index.php            |  2 +-
 htdocs/boutique/produits/osc-liste.php        |  2 +-
 htdocs/boutique/promotion/index.php           |  2 +-
 htdocs/comm/action/contact.php                |  2 +-
 htdocs/comm/action/index.php                  |  2 +-
 htdocs/comm/action/listactions.php            |  2 +-
 htdocs/comm/bookmark.php                      |  2 +-
 htdocs/comm/contact.php                       |  2 +-
 htdocs/comm/fiche.php                         |  4 +--
 htdocs/comm/list.php                          |  2 +-
 htdocs/comm/mailing/cibles.php                |  2 +-
 htdocs/comm/mailing/index.php                 |  2 +-
 htdocs/comm/mailing/liste.php                 |  2 +-
 htdocs/comm/propal/apercu.php                 |  2 +-
 htdocs/comm/propal/index.php                  |  8 +++---
 htdocs/comm/remx.php                          |  6 ++---
 htdocs/commande/apercu.php                    |  4 +--
 htdocs/commande/customer.php                  |  2 +-
 htdocs/commande/index.php                     |  8 +++---
 htdocs/compta/bank/bilan.php                  |  8 +++---
 htdocs/compta/bank/releve.php                 |  2 +-
 htdocs/compta/bank/search.php                 |  2 +-
 htdocs/compta/charges/index.php               |  4 +--
 htdocs/compta/clients.php                     |  2 +-
 htdocs/compta/dons/stats.php                  |  6 ++---
 htdocs/compta/facture/apercu.php              |  4 +--
 htdocs/compta/facture/fiche-rec.php           |  4 +--
 htdocs/compta/facture/prelevement.php         |  2 +-
 htdocs/compta/index.php                       |  6 ++---
 htdocs/compta/localtax/clients.php            |  2 +-
 htdocs/compta/localtax/index.php              |  2 +-
 htdocs/compta/localtax/reglement.php          |  2 +-
 htdocs/compta/paiement/avalider.php           |  2 +-
 htdocs/compta/paiement/cheque/fiche.php       |  2 +-
 htdocs/compta/paiement/cheque/index.php       |  2 +-
 htdocs/compta/paiement/cheque/liste.php       |  2 +-
 htdocs/compta/paiement/liste.php              |  2 +-
 htdocs/compta/paiement_charge.php             |  2 +-
 htdocs/compta/prelevement/bons.php            |  2 +-
 htdocs/compta/prelevement/create.php          |  2 +-
 htdocs/compta/prelevement/factures.php        |  4 +--
 htdocs/compta/prelevement/fiche-stat.php      |  2 +-
 htdocs/compta/prelevement/ligne.php           |  2 +-
 htdocs/compta/prelevement/lignes.php          |  4 +--
 htdocs/compta/prelevement/liste.php           |  2 +-
 htdocs/compta/prelevement/rejets.php          |  2 +-
 htdocs/compta/prelevement/stats.php           |  4 +--
 htdocs/compta/recap-compta.php                |  2 +-
 htdocs/compta/resultat/clientfourn.php        | 26 +++++++++----------
 htdocs/compta/sociales/index.php              |  2 +-
 htdocs/compta/stats/index.php                 |  8 +++---
 htdocs/compta/tva/clients.php                 |  2 +-
 htdocs/compta/tva/index.php                   |  2 +-
 htdocs/compta/tva/quadri.php                  |  4 +--
 htdocs/compta/tva/reglement.php               |  2 +-
 .../compta/ventilation/fournisseur/lignes.php |  2 +-
 .../compta/ventilation/fournisseur/liste.php  |  2 +-
 htdocs/compta/ventilation/lignes.php          |  2 +-
 htdocs/compta/ventilation/liste.php           |  2 +-
 htdocs/contact/list.php                       |  2 +-
 htdocs/contrat/fiche.php                      |  4 +--
 htdocs/core/class/dolprintipp.class.php       |  2 +-
 htdocs/core/lib/company.lib.php               |  2 +-
 htdocs/core/lib/sendings.lib.php              |  2 +-
 htdocs/expedition/index.php                   |  4 +--
 htdocs/expedition/liste.php                   |  2 +-
 htdocs/exports/export.php                     |  4 +--
 htdocs/fichinter/apercu.php                   |  4 +--
 htdocs/fichinter/list.php                     |  2 +-
 htdocs/fourn/commande/dispatch.php            |  2 +-
 htdocs/fourn/commande/history.php             |  2 +-
 htdocs/fourn/commande/index.php               | 10 +++----
 htdocs/fourn/commande/liste.php               |  2 +-
 htdocs/fourn/fiche.php                        |  2 +-
 htdocs/fourn/index.php                        |  6 ++---
 htdocs/fourn/product/index.php                |  2 +-
 htdocs/fourn/product/liste.php                |  2 +-
 htdocs/fourn/recap-fourn.php                  |  4 +--
 htdocs/livraison/fiche.php                    |  4 +--
 htdocs/margin/agentMargins.php                |  2 +-
 htdocs/margin/customerMargins.php             |  2 +-
 htdocs/margin/tabs/productMargins.php         |  2 +-
 htdocs/margin/tabs/thirdpartyMargins.php      |  2 +-
 htdocs/product/popuprop.php                   |  2 +-
 htdocs/product/price.php                      |  2 +-
 htdocs/product/stats/commande.php             |  2 +-
 htdocs/product/stats/commande_fournisseur.php |  2 +-
 htdocs/product/stats/contrat.php              |  2 +-
 htdocs/product/stats/facture.php              |  2 +-
 htdocs/product/stats/facture_fournisseur.php  |  2 +-
 htdocs/product/stock/index.php                |  4 +--
 htdocs/product/stock/liste.php                |  2 +-
 htdocs/product/stock/mouvement.php            |  2 +-
 htdocs/product/stock/valo.php                 |  2 +-
 htdocs/projet/activity/index.php              |  8 +++---
 htdocs/projet/element.php                     |  2 +-
 htdocs/projet/index.php                       |  4 +--
 htdocs/projet/tasks/contact.php               |  4 +--
 htdocs/public/members/public_list.php         |  2 +-
 htdocs/societe/commerciaux.php                |  2 +-
 htdocs/societe/index.php                      |  2 +-
 htdocs/societe/societe.php                    |  2 +-
 htdocs/user/group/fiche.php                   |  2 +-
 htdocs/user/group/index.php                   |  2 +-
 htdocs/user/home.php                          |  4 +--
 htdocs/user/index.php                         |  2 +-
 125 files changed, 190 insertions(+), 190 deletions(-)

diff --git a/htdocs/adherents/card_subscriptions.php b/htdocs/adherents/card_subscriptions.php
index 524e6c04e7a..81a5227e575 100644
--- a/htdocs/adherents/card_subscriptions.php
+++ b/htdocs/adherents/card_subscriptions.php
@@ -700,7 +700,7 @@ if ($rowid)
             {
                 $objp = $db->fetch_object($result);
                 $var=!$var;
-                print "<tr $bc[$var]>";
+                print "<tr ".$bc[$var].">";
                 $cotisationstatic->ref=$objp->crowid;
                 $cotisationstatic->id=$objp->crowid;
                 print '<td>'.$cotisationstatic->getNomUrl(1).'</td>';
diff --git a/htdocs/adherents/cotisations.php b/htdocs/adherents/cotisations.php
index ad71332eff2..1175f22536c 100644
--- a/htdocs/adherents/cotisations.php
+++ b/htdocs/adherents/cotisations.php
@@ -136,7 +136,7 @@ if ($result)
             print "<form method=\"post\" action=\"cotisations.php\">";
             print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
         }
-        print "<tr $bc[$var]>";
+        print "<tr ".$bc[$var].">";
 
         // Ref
         print '<td>'.$cotisation->getNomUrl(1).'</td>';
diff --git a/htdocs/adherents/index.php b/htdocs/adherents/index.php
index 6c0b0dc4019..59ed0b36e84 100644
--- a/htdocs/adherents/index.php
+++ b/htdocs/adherents/index.php
@@ -27,7 +27,7 @@
 require '../main.inc.php';
 require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php';
 require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent_type.class.php';
-require_once DOL_DOCUMENT_ROOT.'/adherents/class/cotisation.class.php';
+require_once DOL_DOCUMENT_ROOT.'/adherents/class/cotisation.class.php';
 
 $langs->load("companies");
 $langs->load("members");
@@ -135,15 +135,15 @@ print '<tr class="liste_titre">';
 print '<td colspan="3">'.$langs->trans("SearchAMember").'</td>';
 print "</tr>\n";
 $var=false;
-print "<tr $bc[$var]>";
+print "<tr ".$bc[$var].">";
 print '<td>';
 print $langs->trans("Ref").':</td><td><input type="text" name="search_ref" class="flat" size="16">';
 print '</td><td rowspan="3"><input class="button" type="submit" value="'.$langs->trans("Search").'"></td></tr>';
-print "<tr $bc[$var]>";
+print "<tr ".$bc[$var].">";
 print '<td>';
 print $langs->trans("Name").':</td><td><input type="text" name="search_lastname" class="flat" size="16">';
 print '</td></tr>';
-print "<tr $bc[$var]>";
+print "<tr ".$bc[$var].">";
 print '<td>';
 print $langs->trans("Other").':</td><td><input type="text" name="sall" class="flat" size="16">';
 print '</td></tr>';
@@ -338,7 +338,7 @@ print "</tr>\n";
 foreach ($AdherentType as $key => $adhtype)
 {
 	$var=!$var;
-	print "<tr $bc[$var]>";
+	print "<tr ".$bc[$var].">";
 	print '<td>'.$adhtype->getNomUrl(1, dol_size(32)).'</td>';
 	print '<td align="right">'.(isset($MemberToValidate[$key]) && $MemberToValidate[$key] > 0?$MemberToValidate[$key]:'').' '.$staticmember->LibStatut(-1,$adhtype->cotisation,0,3).'</td>';
 	print '<td align="right">'.(isset($MembersValidated[$key]) && ($MembersValidated[$key]-(isset($MemberUpToDate[$key])?$MemberUpToDate[$key]:0) > 0) ? $MembersValidated[$key]-(isset($MemberUpToDate[$key])?$MemberUpToDate[$key]:0):'').' '.$staticmember->LibStatut(1,$adhtype->cotisation,0,3).'</td>';
@@ -402,7 +402,7 @@ krsort($Total);
 foreach ($Total as $key=>$value)
 {
 	$var=!$var;
-	print "<tr $bc[$var]>";
+	print "<tr ".$bc[$var].">";
 	print "<td><a href=\"cotisations.php?date_select=$key\">$key</a></td>";
 	print "<td align=\"right\">".$Number[$key]."</td>";
 	print "<td align=\"right\">".price($value)."</td>";
diff --git a/htdocs/admin/osc-languages.php b/htdocs/admin/osc-languages.php
index 0d6df08a8b7..83446034f0d 100644
--- a/htdocs/admin/osc-languages.php
+++ b/htdocs/admin/osc-languages.php
@@ -72,7 +72,7 @@ if ($resql)
 	while ($i < $num) {
 		$objp = $db->fetch_object($resql);
 		$var=!$var;
-		print "<TR $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		print "<TD>$objp->languages_id</TD>\n";
 		print "<TD>$objp->name</TD>\n";
 		print "<TD>$objp->code</TD>\n";
diff --git a/htdocs/admin/system/database-tables.php b/htdocs/admin/system/database-tables.php
index 7e82bab5e3f..eb638b68711 100644
--- a/htdocs/admin/system/database-tables.php
+++ b/htdocs/admin/system/database-tables.php
@@ -103,7 +103,7 @@ else
 			{
 				$obj = $db->fetch_object($resql);
 				$var=!$var;
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 
 				print '<td><a href="dbtable.php?table='.$obj->Name.'">'.$obj->Name.'</a></td>';
 				print '<td>'.$obj->Engine.'</td>';
@@ -156,7 +156,7 @@ else
 			{
 				$row = $db->fetch_row($resql);
 				$var=!$var;
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 				print '<td>'.$row[0].'</td>';
 				print '<td align="right">'.$row[1].'</td>';
 				print '<td align="right">'.$row[2].'</td>';
diff --git a/htdocs/admin/system/dbtable.php b/htdocs/admin/system/dbtable.php
index f5eaaaa4ea4..fe182c2e73e 100644
--- a/htdocs/admin/system/dbtable.php
+++ b/htdocs/admin/system/dbtable.php
@@ -112,7 +112,7 @@ else
 			{
 				$row = $db->fetch_row($resql);
 				$var=!$var;
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 
 				print "<td>$row[0]</td>";
 				print "<td>$row[1]</td>";
diff --git a/htdocs/admin/system/modules.php b/htdocs/admin/system/modules.php
index 0baed9e53bc..73fd45d9099 100644
--- a/htdocs/admin/system/modules.php
+++ b/htdocs/admin/system/modules.php
@@ -106,7 +106,7 @@ foreach($sortorder as $numero=>$name)
 	$idperms="";
 	$var=!$var;
 	// Module
-	print "<tr $bc[$var]><td width=\"300\" nowrap=\"nowrap\">";
+	print "<tr ".$bc[$var]."><td width=\"300\" nowrap=\"nowrap\">";
 	$alt=$name.' - '.$modules_files[$numero];
     if (! empty($picto[$numero]))
     {
diff --git a/htdocs/admin/tools/listsessions.php b/htdocs/admin/tools/listsessions.php
index 780e4427078..b4ca64c95a5 100644
--- a/htdocs/admin/tools/listsessions.php
+++ b/htdocs/admin/tools/listsessions.php
@@ -145,7 +145,7 @@ if ($savehandler == 'files')
 	{
 		$var=!$var;
 
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 
 		// Login
 		print '<td>'.$sessionentry['login'].'</td>';
diff --git a/htdocs/bookmarks/liste.php b/htdocs/bookmarks/liste.php
index c3634b6c726..c322360fb4a 100644
--- a/htdocs/bookmarks/liste.php
+++ b/htdocs/bookmarks/liste.php
@@ -103,7 +103,7 @@ if ($resql)
         $obj = $db->fetch_object($resql);
 
         $var=!$var;
-        print "<tr $bc[$var]>";
+        print "<tr ".$bc[$var].">";
 
         // Id
         print '<td align="left">';
diff --git a/htdocs/boutique/client/fiche.php b/htdocs/boutique/client/fiche.php
index feaf7d2068e..31d7bf3e81e 100644
--- a/htdocs/boutique/client/fiche.php
+++ b/htdocs/boutique/client/fiche.php
@@ -80,7 +80,7 @@ if ($id > 0)
 			{
 				$objp = $dbosc->fetch_object($resql);
 				$var=!$var;
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 
 				print '<td><a href="'.DOL_URL_ROOT.'/boutique/commande/fiche.php?id='.$objp->orders_id.'"><img src="/theme/'.$conf->theme.'/img/filenew.png" border="0" alt="Fiche">&nbsp;';
 
diff --git a/htdocs/boutique/client/index.php b/htdocs/boutique/client/index.php
index 8b67d4311f5..82eb9ef4bb0 100644
--- a/htdocs/boutique/client/index.php
+++ b/htdocs/boutique/client/index.php
@@ -70,7 +70,7 @@ if ($resql)
     {
       $objp = $dbosc->fetch_object($resql);
       $var=!$var;
-      print "<tr $bc[$var]>";
+      print "<tr ".$bc[$var].">";
       print '<td><a href="fiche.php?id='.$objp->customers_id.'">'.$objp->customers_firstname."</a></td>\n";
       print '<td><a href="fiche.php?id='.$objp->customers_id.'">'.$objp->customers_lastname."</a></td>\n";
       print "<td>$objp->customers_email_address</td>\n";
diff --git a/htdocs/boutique/commande/ca.php b/htdocs/boutique/commande/ca.php
index c8f170af15c..b5f4bab9e1c 100644
--- a/htdocs/boutique/commande/ca.php
+++ b/htdocs/boutique/commande/ca.php
@@ -66,7 +66,7 @@ if ($resql)
     {
       $objp = $dbosc->fetch_object($resql);
       $var=!$var;
-      print "<tr $bc[$var]>";
+      print "<tr ".$bc[$var].">";
       print '<td>Somme des commandes</td>';
       print '<td align="right">'.price($objp->value).'</td>';
 
@@ -94,7 +94,7 @@ if ($resql)
     {
       $objp = $dbosc->fetch_object($resql);
       $var=!$var;
-      print "<tr $bc[$var]>";
+      print "<tr ".$bc[$var].">";
       print '<td>Somme des frais de port</td>';
       print '<td align="right">'.price($objp->value).'</td></tr>';
       $i++;
diff --git a/htdocs/boutique/commande/fiche.php b/htdocs/boutique/commande/fiche.php
index e7f0e83537f..e00f9007940 100644
--- a/htdocs/boutique/commande/fiche.php
+++ b/htdocs/boutique/commande/fiche.php
@@ -86,7 +86,7 @@ if ($id > 0)
 			{
 				$objp = $dbosc->fetch_object($resql);
 				$var=!$var;
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 				print '<td align="left" width="40%">';
 				print '<a href="fiche.php?id='.$objp->products_id.'"><img src="/theme/'.$conf->theme.'/img/filenew.png" border="0" width="16" height="16" alt="Fiche livre"></a>';
 
diff --git a/htdocs/boutique/commande/index.php b/htdocs/boutique/commande/index.php
index 382ecba6600..c5d166cf4e4 100644
--- a/htdocs/boutique/commande/index.php
+++ b/htdocs/boutique/commande/index.php
@@ -69,7 +69,7 @@ if ($resql)
     {
       $objp = $dbosc->fetch_object($resql);
       $var=!$var;
-      print "<tr $bc[$var]>";
+      print "<tr ".$bc[$var].">";
 
       print '<td><a href="fiche.php?id='.$objp->orders_id.'"><img src="/theme/'.$conf->theme.'/img/filenew.png" border="0" alt="Fiche">&nbsp;';
       print $objp->orders_id ."</a></td><td>";
diff --git a/htdocs/boutique/critiques/bestproduct.php b/htdocs/boutique/critiques/bestproduct.php
index 45e3fba2a88..556c1926979 100644
--- a/htdocs/boutique/critiques/bestproduct.php
+++ b/htdocs/boutique/critiques/bestproduct.php
@@ -74,7 +74,7 @@ if ($resql)
 	while ($i < $num) {
 		$objp = $dbosc->fetch_object($resql);
 		$var=!$var;
-		print "<TR $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		print '<TD><a href="'.DOL_URL_ROOT.'/boutique/livre/fiche.php?oscid='.$objp->products_id.'">'.$objp->products_model.'</a></TD>';
 		print '<TD align="center">'.$objp->rat."</TD>\n";
 		print '<TD align="center">'.$objp->products_quantity."</TD>\n";
diff --git a/htdocs/boutique/critiques/index.php b/htdocs/boutique/critiques/index.php
index fd6bdb528f4..186756f6e42 100644
--- a/htdocs/boutique/critiques/index.php
+++ b/htdocs/boutique/critiques/index.php
@@ -70,7 +70,7 @@ if ($resql) {
 	while ($i < $num) {
 		$objp = $dbosc->fetch_object($resql);
 		$var=!$var;
-		print "<TR $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		print "<TD>".substr($objp->products_name, 0, 30)."</TD>\n";
 		print '<TD><a href="fiche.php?id='.$objp->reviews_id.'">'.substr($objp->reviews_text, 0, 40)." ...</a></td>\n";
 		print "<td align=\"center\">$objp->reviews_rating</TD>\n";
diff --git a/htdocs/boutique/index.php b/htdocs/boutique/index.php
index 0e791515f09..91301c69dec 100644
--- a/htdocs/boutique/index.php
+++ b/htdocs/boutique/index.php
@@ -70,7 +70,7 @@ if ($result)
 		{
 			$objp = $dbosc->fetch_object($result);
 			$var=!$var;
-			print "<tr $bc[$var]>";
+			print "<tr ".$bc[$var].">";
 			print '<td align="left">'.$objp->mois.'</td>';
 			print '<td align="right">'.price($objp->value).'</td>';
 
diff --git a/htdocs/boutique/notification/index.php b/htdocs/boutique/notification/index.php
index 62fbe0ce597..3a27326e1fb 100644
--- a/htdocs/boutique/notification/index.php
+++ b/htdocs/boutique/notification/index.php
@@ -70,7 +70,7 @@ if ($resql)
     {
       $objp = $dbosc->fetch_object($resql);
       $var=!$var;
-      print "<tr $bc[$var]>";
+      print "<tr ".$bc[$var].">";
       print "<td width='70%'><a href=\"fiche.php?id=$objp->rowid\">$objp->customers_firstname $objp->customers_lastname</a></TD>\n";
       print '<td><a href="'.DOL_URL_ROOT.'/boutique/livre/fiche.php?oscid='.$objp->products_id.'">'.$objp->products_name."</a></td>";
       print "</tr>\n";
diff --git a/htdocs/boutique/notification/produits.php b/htdocs/boutique/notification/produits.php
index 18f66b696e7..eb897497540 100644
--- a/htdocs/boutique/notification/produits.php
+++ b/htdocs/boutique/notification/produits.php
@@ -71,7 +71,7 @@ if ($resql)
     {
       $objp = $dbosc->fetch_object($resql);
       $var=!$var;
-      print "<TR $bc[$var]>";
+      print "<tr ".$bc[$var].">";
 
       print '<td><a href="'.DOL_URL_ROOT.'/boutique/livre/fiche.php?oscid='.$objp->products_id.'">'.$objp->products_name."</a></td>";
       print '<td align="center">'.$objp->nb.'</td>';
diff --git a/htdocs/boutique/produits/index.php b/htdocs/boutique/produits/index.php
index 71dd2bd8d53..f8bae975445 100644
--- a/htdocs/boutique/produits/index.php
+++ b/htdocs/boutique/produits/index.php
@@ -67,7 +67,7 @@ if ($resql)
     {
       $objp = $dbosc->fetch_object($resql);
       $var=!$var;
-      print "<tr $bc[$var]>";
+      print "<tr ".$bc[$var].">";
       print '<td><a href="fiche.php?id='.$objp->customers_id.'">'.$objp->customers_firstname."</a></td>\n";
       print '<td><a href="fiche.php?id='.$objp->customers_id.'">'.$objp->customers_lastname."</a></td>\n";
       print "<td>$objp->customers_email_address</td>\n";
diff --git a/htdocs/boutique/produits/osc-liste.php b/htdocs/boutique/produits/osc-liste.php
index 84084bfde7a..ef1369dd503 100644
--- a/htdocs/boutique/produits/osc-liste.php
+++ b/htdocs/boutique/produits/osc-liste.php
@@ -81,7 +81,7 @@ if ($resql)
   {
     $objp = $dbosc->fetch_object($resql);
     $var=!$var;
-    print "<TR $bc[$var]>";
+    print "<tr ".$bc[$var].">";
     print "<TD>$objp->products_id</TD>\n";
     print "<TD>$objp->products_model</TD>\n";
     print "<TD>$objp->products_name</TD>\n";
diff --git a/htdocs/boutique/promotion/index.php b/htdocs/boutique/promotion/index.php
index f70b793cd64..7cbba5c5014 100644
--- a/htdocs/boutique/promotion/index.php
+++ b/htdocs/boutique/promotion/index.php
@@ -82,7 +82,7 @@ if ($resql)
       $objp = $dbosc->fetch_object($i);
       $var=!$var;
 
-      print "<tr $bc[$var]>";
+      print "<tr ".$bc[$var].">";
       print '<td>'.$objp->products_model."</td>";
       print '<td>'.$objp->products_name."</td>";
 
diff --git a/htdocs/comm/action/contact.php b/htdocs/comm/action/contact.php
index 87a13f28c55..6baafcaf036 100644
--- a/htdocs/comm/action/contact.php
+++ b/htdocs/comm/action/contact.php
@@ -264,7 +264,7 @@ if ($id > 0 || ! empty($ref))
 			print '<input type="hidden" name="id" value="'.$id.'">';
 
 			// Ligne ajout pour contact interne
-			print "<tr $bc[$var]>";
+			print "<tr ".$bc[$var].">";
 
 			print '<td class="nowrap">';
 			print img_object('','user').' '.$langs->trans("Users");
diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php
index 165101e3cfa..7facb9b5459 100644
--- a/htdocs/comm/action/index.php
+++ b/htdocs/comm/action/index.php
@@ -971,7 +971,7 @@ function show_day_events($db, $day, $month, $year, $monthshown, $style, &$eventa
     print '</td><td align="right" class="nowrap">';
     if ($user->rights->agenda->myactions->create || $user->rights->agenda->allactions->create)
     {
-    	$newparam.='&month='.str_pad($month, 2, "0", STR_PAD_LEFT).'&year='.$year;
+    	$newparam.='&month='.str_pad($month, 2, "0", STR_PAD_LEFT).'&year='.$year;
 
         //$param='month='.$monthshown.'&year='.$year;
         $hourminsec='100000';
diff --git a/htdocs/comm/action/listactions.php b/htdocs/comm/action/listactions.php
index 2fdf9315712..ebe68fa3328 100644
--- a/htdocs/comm/action/listactions.php
+++ b/htdocs/comm/action/listactions.php
@@ -260,7 +260,7 @@ if ($resql)
 
 		$var=!$var;
 
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 
 		// Action (type)
 		print '<td>';
diff --git a/htdocs/comm/bookmark.php b/htdocs/comm/bookmark.php
index dff26cb2618..1b5b1100736 100644
--- a/htdocs/comm/bookmark.php
+++ b/htdocs/comm/bookmark.php
@@ -122,7 +122,7 @@ if ($resql)
       $obj = $db->fetch_object($resql);
 
       $var=!$var;
-      print "<tr $bc[$var]>";
+      print "<tr ".$bc[$var].">";
       //print "<td>" . ($i + 1 + ($limit * $page)) . "</td>";
       print "<td align=\"center\"><b>".$obj->bid."</b></td>";
       print "<td><a href='".DOL_URL_ROOT."/user/fiche.php?id=".$obj->fk_user."'>".img_object($langs->trans("ShowUser"),"user").' '.$obj->lastname." ".$obj->firstname."</a></td>\n";
diff --git a/htdocs/comm/contact.php b/htdocs/comm/contact.php
index e55f88de7aa..4281eab9cb1 100644
--- a/htdocs/comm/contact.php
+++ b/htdocs/comm/contact.php
@@ -156,7 +156,7 @@ if ($resql)
 
       $var=!$var;
 
-      print "<tr $bc[$var]>";
+      print "<tr ".$bc[$var].">";
       print '<td><a href="'.DOL_URL_ROOT.'/contact/fiche.php?id='.$obj->cidp.'&socid='.$obj->rowid.'">'.img_object($langs->trans("ShowContact"),"contact");
       print '</a>&nbsp;<a href="'.DOL_URL_ROOT.'/contact/fiche.php?id='.$obj->cidp.'&socid='.$obj->rowid.'">'.$obj->name.'</a></td>';
       print "<td>$obj->firstname</TD>";
diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php
index c785704d456..811e4a8d211 100644
--- a/htdocs/comm/fiche.php
+++ b/htdocs/comm/fiche.php
@@ -626,7 +626,7 @@ if ($id > 0)
 
 				$objp = $db->fetch_object($resql);
 				$var=!$var;
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 				print '<td class="nowrap">';
 				$contrat->id=$objp->id;
 				$contrat->ref=$objp->ref?$objp->ref:$objp->id;
@@ -748,7 +748,7 @@ if ($id > 0)
 			{
 				$objp = $db->fetch_object($resql);
 				$var=!$var;
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 				print '<td class="nowrap">';
 				$facturestatic->id=$objp->facid;
 				$facturestatic->ref=$objp->facnumber;
diff --git a/htdocs/comm/list.php b/htdocs/comm/list.php
index 28696228e45..0c989fa5388 100755
--- a/htdocs/comm/list.php
+++ b/htdocs/comm/list.php
@@ -233,7 +233,7 @@ if ($result)
 
 		$var=!$var;
 
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		print '<td>';
 		$thirdpartystatic->id=$obj->rowid;
         $thirdpartystatic->name=$obj->name;
diff --git a/htdocs/comm/mailing/cibles.php b/htdocs/comm/mailing/cibles.php
index 3c7d425feb1..538d4c04fc4 100644
--- a/htdocs/comm/mailing/cibles.php
+++ b/htdocs/comm/mailing/cibles.php
@@ -450,7 +450,7 @@ if ($object->fetch($id) >= 0)
 				$obj = $db->fetch_object($resql);
 				$var=!$var;
 
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 				print '<td>'.$obj->email.'</td>';
 				print '<td>'.$obj->lastname.'</td>';
 				print '<td>'.$obj->firstname.'</td>';
diff --git a/htdocs/comm/mailing/index.php b/htdocs/comm/mailing/index.php
index 088ee43a02a..42944afabef 100644
--- a/htdocs/comm/mailing/index.php
+++ b/htdocs/comm/mailing/index.php
@@ -175,7 +175,7 @@ if ($result)
 	  $obj = $db->fetch_object($result);
 	  $var=!$var;
 
-	  print "<tr $bc[$var]>";
+	  print "<tr ".$bc[$var].">";
 	  print '<td class="nowrap"><a href="fiche.php?id='.$obj->rowid.'">'.img_object($langs->trans("ShowEMail"),"email").' '.$obj->rowid.'</a></td>';
 	  print '<td>'.dol_trunc($obj->titre,38).'</td>';
 	  print '<td align="center">'.dol_print_date($db->jdate($obj->date_creat),'day').'</td>';
diff --git a/htdocs/comm/mailing/liste.php b/htdocs/comm/mailing/liste.php
index b05f859f54e..41a4e57a7ac 100644
--- a/htdocs/comm/mailing/liste.php
+++ b/htdocs/comm/mailing/liste.php
@@ -136,7 +136,7 @@ if ($result)
 
 		$var=!$var;
 
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		print '<td><a href="'.DOL_URL_ROOT.'/comm/mailing/fiche.php?id='.$obj->rowid.'">';
 		print img_object($langs->trans("ShowEMail"),"email").' '.stripslashes($obj->rowid).'</a></td>';
 		print '<td>'.$obj->titre.'</td>';
diff --git a/htdocs/comm/propal/apercu.php b/htdocs/comm/propal/apercu.php
index 78f57e15f14..2fd7c86fb9a 100644
--- a/htdocs/comm/propal/apercu.php
+++ b/htdocs/comm/propal/apercu.php
@@ -140,7 +140,7 @@ if ($id > 0 || ! empty($ref))
 			print_titre($langs->trans("Documents"));
 			print '<table class="border" width="100%">';
 
-			print "<tr $bc[$var]><td>".$langs->trans("Propal")." PDF</td>";
+			print "<tr ".$bc[$var]."><td>".$langs->trans("Propal")." PDF</td>";
 
 			print '<td><a data-ajax="false" href="'.DOL_URL_ROOT . '/document.php?modulepart=propal&file='.urlencode($relativepath).'">'.$object->ref.'.pdf</a></td>';
 
diff --git a/htdocs/comm/propal/index.php b/htdocs/comm/propal/index.php
index 2a31d4a48b7..70eb2e49092 100644
--- a/htdocs/comm/propal/index.php
+++ b/htdocs/comm/propal/index.php
@@ -180,7 +180,7 @@ if (! empty($conf->propal->enabled))
 			{
 				$var=!$var;
 				$obj = $db->fetch_object($resql);
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 
 				$propalstatic->id=$obj->rowid;
 				$propalstatic->ref=$obj->ref;
@@ -241,7 +241,7 @@ if ($resql)
 			$var=!$var;
 			$obj = $db->fetch_object($resql);
 
-			print "<tr $bc[$var]>";
+			print "<tr ".$bc[$var].">";
 			print '<td width="20%" class="nowrap">';
 
 			$propalstatic->id=$obj->rowid;
@@ -402,7 +402,7 @@ if (! empty($conf->propal->enabled))
 			{
 				$var=!$var;
 				$obj = $db->fetch_object($resql);
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 				print '<td class="nowrap">';
 
 				$propalstatic->id=$obj->rowid;
@@ -474,7 +474,7 @@ if (! empty($conf->propal->enabled))
 			{
 				$var=!$var;
 				$obj = $db->fetch_object($resql);
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 				print '<td width="20%" class="nowrap">';
 
 				$propalstatic->id=$obj->rowid;
diff --git a/htdocs/comm/remx.php b/htdocs/comm/remx.php
index 56dec89394d..cfa83e78875 100644
--- a/htdocs/comm/remx.php
+++ b/htdocs/comm/remx.php
@@ -338,7 +338,7 @@ if ($socid > 0)
 		{
 			$obj = $db->fetch_object($resql);
 			$var = !$var;
-			print "<tr $bc[$var]>";
+			print "<tr ".$bc[$var].">";
 			print '<td>'.dol_print_date($db->jdate($obj->dc),'dayhour').'</td>';
 			if ($obj->description == '(CREDIT_NOTE)')
 			{
@@ -384,7 +384,7 @@ if ($socid > 0)
 
 			if ($_GET["action"]=='split' && $_GET['remid'] == $obj->rowid)
 			{
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 				print '<td colspan="8">';
 				$amount1=price2num($obj->amount_ttc/2,'MT');
 				$amount2=($obj->amount_ttc-$amount1);
@@ -495,7 +495,7 @@ if ($socid > 0)
 		{
 			$obj = array_shift($tab_sqlobj);
 			$var = !$var;
-			print "<tr $bc[$var]>";
+			print "<tr ".$bc[$var].">";
 			print '<td>'.dol_print_date($db->jdate($obj->dc),'dayhour').'</td>';
 			if ($obj->description == '(CREDIT_NOTE)')
 			{
diff --git a/htdocs/commande/apercu.php b/htdocs/commande/apercu.php
index f92a309a53c..b4b92e760c5 100644
--- a/htdocs/commande/apercu.php
+++ b/htdocs/commande/apercu.php
@@ -126,7 +126,7 @@ if ($id > 0 || ! empty($ref))
 			print_titre($langs->trans("Documents"));
 			print '<table class="border" width="100%">';
 
-			print "<tr $bc[$var]><td>".$langs->trans("Order")." PDF</td>";
+			print "<tr ".$bc[$var]."><td>".$langs->trans("Order")." PDF</td>";
 
 			print '<td><a data-ajax="false" href="'.DOL_URL_ROOT . '/document.php?modulepart=commande&file='.urlencode($relativepath).'">'.$object->ref.'.pdf</a></td>';
 			print '<td align="right">'.dol_print_size(dol_filesize($file)).'</td>';
@@ -137,7 +137,7 @@ if ($id > 0 || ! empty($ref))
 			// TODO obsolete ?
 			if (file_exists($filedetail))
 			{
-				print "<tr $bc[$var]><td>Commande detaillee</td>";
+				print "<tr ".$bc[$var]."><td>Commande detaillee</td>";
 
 				print '<td><a data-ajax="false" href="'.DOL_URL_ROOT . '/document.php?modulepart=commande&file='.urlencode($relativepathdetail).'">'.$object->ref.'-detail.pdf</a></td>';
 				print '<td align="right">'.dol_print_size(dol_filesize($filedetail)).'</td>';
diff --git a/htdocs/commande/customer.php b/htdocs/commande/customer.php
index bc04697f93f..35a5891d604 100755
--- a/htdocs/commande/customer.php
+++ b/htdocs/commande/customer.php
@@ -154,7 +154,7 @@ if ($resql)
 
 		$var=!$var;
 
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		print '<td>';
 		
         $result='';
diff --git a/htdocs/commande/index.php b/htdocs/commande/index.php
index d9f5cca0415..3c69388c8c9 100644
--- a/htdocs/commande/index.php
+++ b/htdocs/commande/index.php
@@ -194,7 +194,7 @@ if (! empty($conf->commande->enabled))
 			{
 				$var=!$var;
 				$obj = $db->fetch_object($resql);
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 				print '<td class="nowrap">';
 				print "<a href=\"fiche.php?id=".$obj->rowid."\">".img_object($langs->trans("ShowOrder"),"order").' '.$obj->ref."</a></td>";
 				print '<td><a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$obj->socid.'">'.img_object($langs->trans("ShowCompany"),"company").' '.dol_trunc($obj->nom,24).'</a></td></tr>';
@@ -246,7 +246,7 @@ if ($resql)
 			$var=!$var;
 			$obj = $db->fetch_object($resql);
 
-			print "<tr $bc[$var]>";
+			print "<tr ".$bc[$var].">";
 			print '<td width="20%" class="nowrap">';
 
 			$commandestatic->id=$obj->rowid;
@@ -315,7 +315,7 @@ if (! empty($conf->commande->enabled))
 			{
 				$var=!$var;
 				$obj = $db->fetch_object($resql);
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 				print '<td class="nowrap" width="20%">';
 
 				$commandestatic->id=$obj->rowid;
@@ -386,7 +386,7 @@ if (! empty($conf->commande->enabled))
 			{
 				$var=!$var;
 				$obj = $db->fetch_object($resql);
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 				print '<td width="20%" class="nowrap">';
 
 				$commandestatic->id=$obj->rowid;
diff --git a/htdocs/compta/bank/bilan.php b/htdocs/compta/bank/bilan.php
index a5e6605ad85..e3942381d1e 100644
--- a/htdocs/compta/bank/bilan.php
+++ b/htdocs/compta/bank/bilan.php
@@ -69,22 +69,22 @@ print "</tr>\n";
 $var=!$var;
 $sql = "SELECT sum(amount) as amount FROM ".MAIN_DB_PREFIX."paiement";
 $paiem = valeur($sql);
-print "<tr $bc[$var]><td>Somme des paiements (associes a une facture)</td><td align=\"right\">".price($paiem)."</td></tr>";
+print "<tr ".$bc[$var]."><td>Somme des paiements (associes a une facture)</td><td align=\"right\">".price($paiem)."</td></tr>";
 
 $var=!$var;
 $sql = "SELECT sum(amount) as amount FROM ".MAIN_DB_PREFIX."bank WHERE amount > 0";
 $credits = valeur($sql);
-print "<tr $bc[$var]><td>Somme des credits</td><td align=\"right\">".price($credits)."</td></tr>";
+print "<tr ".$bc[$var]."><td>Somme des credits</td><td align=\"right\">".price($credits)."</td></tr>";
 
 $var=!$var;
 $sql = "SELECT sum(amount) as amount FROM ".MAIN_DB_PREFIX."bank WHERE amount < 0";
 $debits = valeur($sql);
-print "<tr $bc[$var]><td>Somme des debits</td><td align=\"right\">".price($debits)."</td></tr>";
+print "<tr ".$bc[$var]."><td>Somme des debits</td><td align=\"right\">".price($debits)."</td></tr>";
 
 $var=!$var;
 $sql = "SELECT sum(amount) as amount FROM ".MAIN_DB_PREFIX."bank ";
 $solde = valeur($sql);
-print "<tr $bc[$var]><td>".$langs->trans("BankBalance")."</td><td align=\"right\">".price($solde)."</td></tr>";
+print "<tr ".$bc[$var]."><td>".$langs->trans("BankBalance")."</td><td align=\"right\">".price($solde)."</td></tr>";
 
 
 print "</table>";
diff --git a/htdocs/compta/bank/releve.php b/htdocs/compta/bank/releve.php
index b62ea51118c..c76e35a5ed8 100644
--- a/htdocs/compta/bank/releve.php
+++ b/htdocs/compta/bank/releve.php
@@ -295,7 +295,7 @@ else
 			$total = $total + $objp->amount;
 
 			$var=!$var;
-			print "<tr $bc[$var]>";
+			print "<tr ".$bc[$var].">";
 
 			// Date operation
 			print '<td class="nowrap" align="center">'.dol_print_date($db->jdate($objp->do),"day").'</td>';
diff --git a/htdocs/compta/bank/search.php b/htdocs/compta/bank/search.php
index ea7d29beb0f..9a3a55bfaf4 100644
--- a/htdocs/compta/bank/search.php
+++ b/htdocs/compta/bank/search.php
@@ -206,7 +206,7 @@ if ($resql)
 		if ($printline) {
 			$var=!$var;
 
-			print "<tr $bc[$var]>";
+			print "<tr ".$bc[$var].">";
 
 			// Ref
 			print '<td align="left" class="nowrap">';
diff --git a/htdocs/compta/charges/index.php b/htdocs/compta/charges/index.php
index 2c26a5d6361..909417d0e71 100644
--- a/htdocs/compta/charges/index.php
+++ b/htdocs/compta/charges/index.php
@@ -132,7 +132,7 @@ if ($resql)
 	{
 		$obj = $db->fetch_object($resql);
 		$var = !$var;
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		// Date
 		$date=$obj->periode;
 		if (empty($date)) $date=$obj->date_ech;
@@ -220,7 +220,7 @@ if (empty($_GET["mode"]) || $_GET["mode"] != 'sconly')
 	        $total = $total + $obj->amount;
 
 	        $var=!$var;
-	        print "<tr $bc[$var]>";
+	        print "<tr ".$bc[$var].">";
 	        print '<td align="left">'.dol_print_date($db->jdate($obj->dm),'day').' ? </td>'."\n";
 
 	        print "<td>".$obj->label."</td>\n";
diff --git a/htdocs/compta/clients.php b/htdocs/compta/clients.php
index 96fd0231efb..f54f893d79c 100644
--- a/htdocs/compta/clients.php
+++ b/htdocs/compta/clients.php
@@ -185,7 +185,7 @@ if ($resql)
 
 		$var=!$var;
 
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		print '<td>';
 		$thirdpartystatic->id=$obj->rowid;
 		$thirdpartystatic->nom=$obj->nom;
diff --git a/htdocs/compta/dons/stats.php b/htdocs/compta/dons/stats.php
index affbab7d56f..b2f71859831 100644
--- a/htdocs/compta/dons/stats.php
+++ b/htdocs/compta/dons/stats.php
@@ -63,12 +63,12 @@ if ($result)
     print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td align="right">'.$langs->trans("Value").'</td></tr>';
 
     $var=!$var;
-    print "<tr $bc[$var]>";
+    print "<tr ".$bc[$var].">";
     print '<td>'.$langs->trans("DonationsNumber").'</td><td align="right">'.$num.'</td></tr>';
     $var=!$var;
-    print "<tr $bc[$var]>".'<td>'.$langs->trans("AmountTotal").'</td><td align="right">'.price($total).'</td>';
+    print "<tr ".$bc[$var].">".'<td>'.$langs->trans("AmountTotal").'</td><td align="right">'.price($total).'</td>';
     $var=!$var;
-    print "<tr $bc[$var]>".'<td>'.$langs->trans("Average").'</td><td align="right">'.price($total / ($num?$num:1)).'</td>';
+    print "<tr ".$bc[$var].">".'<td>'.$langs->trans("Average").'</td><td align="right">'.price($total / ($num?$num:1)).'</td>';
     print "</tr>";
 
     print "</table>";
diff --git a/htdocs/compta/facture/apercu.php b/htdocs/compta/facture/apercu.php
index 2adb3941595..ab508e50035 100644
--- a/htdocs/compta/facture/apercu.php
+++ b/htdocs/compta/facture/apercu.php
@@ -316,7 +316,7 @@ if ($id > 0 || ! empty($ref))
             print_titre($langs->trans("Documents"));
             print '<table class="border" width="100%">';
 
-            print "<tr $bc[$var]><td>".$langs->trans("Bill")." PDF</td>";
+            print "<tr ".$bc[$var]."><td>".$langs->trans("Bill")." PDF</td>";
 
             print '<td><a data-ajax="false" href="'.DOL_URL_ROOT . '/document.php?modulepart=facture&file='.urlencode($relativepath).'">'.$object->ref.'.pdf</a></td>';
             print '<td align="right">'.dol_print_size(dol_filesize($file)). '</td>';
@@ -326,7 +326,7 @@ if ($id > 0 || ! empty($ref))
             // Si fichier detail PDF existe
             if (file_exists($filedetail)) // facture detaillee supplementaire
             {
-                print "<tr $bc[$var]><td>Facture detaillee</td>";
+                print "<tr ".$bc[$var]."><td>Facture detaillee</td>";
 
                 print '<td><a data-ajax="false" href="'.DOL_URL_ROOT . '/document.php?modulepart=facture&file='.urlencode($relativepathdetail).'">'.$object->ref.'-detail.pdf</a></td>';
                 print '<td align="right">'.dol_print_size(dol_filesize($filedetail)).'</td>';
diff --git a/htdocs/compta/facture/fiche-rec.php b/htdocs/compta/facture/fiche-rec.php
index 67b36fdc586..f098eee307f 100644
--- a/htdocs/compta/facture/fiche-rec.php
+++ b/htdocs/compta/facture/fiche-rec.php
@@ -437,7 +437,7 @@ else
 				if (! empty($objp->date_end)) $type=1;
 
 				// Show line
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 				if ($object->lines[$i]->fk_product > 0)
 				{
 					print '<td>';
@@ -548,7 +548,7 @@ else
 					$objp = $db->fetch_object($result);
 					$var=!$var;
 
-					print "<tr $bc[$var]>";
+					print "<tr ".$bc[$var].">";
 
 					print '<td><a href="'.$_SERVER['PHP_SELF'].'?id='.$objp->facid.'">'.img_object($langs->trans("ShowBill"),"bill").' '.$objp->titre;
 					print "</a></td>\n";
diff --git a/htdocs/compta/facture/prelevement.php b/htdocs/compta/facture/prelevement.php
index 51432a3e4d2..f86c0603cd6 100644
--- a/htdocs/compta/facture/prelevement.php
+++ b/htdocs/compta/facture/prelevement.php
@@ -546,7 +546,7 @@ if ($object->id > 0)
 			$obj = $db->fetch_object($result);
 			$var=!$var;
 
-			print "<tr $bc[$var]>";
+			print "<tr ".$bc[$var].">";
 
 			print '<td align="left">'.dol_print_date($db->jdate($obj->date_demande),'day')."</td>\n";
 
diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php
index e67e4868dcc..f26b9a06089 100644
--- a/htdocs/compta/index.php
+++ b/htdocs/compta/index.php
@@ -679,7 +679,7 @@ if (! empty($conf->tax->enabled) && $user->rights->tax->charges->lire)
 				while ($i < $num)
 				{
 					$obj = $db->fetch_object($resql);
-					print "<tr $bc[$var]>";
+					print "<tr ".$bc[$var].">";
 					$chargestatic->id=$obj->rowid;
 					$chargestatic->ref=$obj->libelle;
 					$chargestatic->lib=$obj->libelle;
@@ -762,7 +762,7 @@ if (! empty($conf->facture->enabled) && ! empty($conf->commande->enabled) && $us
 			{
 				$obj = $db->fetch_object($resql);
 
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 				print '<td class="nowrap">';
 
 				$commandestatic->id=$obj->rowid;
@@ -1026,7 +1026,7 @@ if ($resql)
 		$obj = $db->fetch_object($resql);
 		$var=!$var;
 
-		print "<tr $bc[$var]><td>".dol_print_date($obj->da,"day")."</td>";
+		print "<tr ".$bc[$var]."><td>".dol_print_date($obj->da,"day")."</td>";
 		print "<td><a href=\"action/fiche.php\">$obj->libelle $obj->label</a></td></tr>";
 		$i++;
 	}
diff --git a/htdocs/compta/localtax/clients.php b/htdocs/compta/localtax/clients.php
index d82e7fabad9..e2eb5ab610c 100644
--- a/htdocs/compta/localtax/clients.php
+++ b/htdocs/compta/localtax/clients.php
@@ -244,7 +244,7 @@ if (is_array($coll_list))
 					$intra = '';
 				}
 			}
-			print "<tr $bc[$var]>";
+			print "<tr ".$bc[$var].">";
 			print "<td nowrap>".$i."</td>";
 			$company_static->id=$coll->socid;
 			$company_static->nom=$coll->nom;
diff --git a/htdocs/compta/localtax/index.php b/htdocs/compta/localtax/index.php
index 0d46cd7ae11..3f0cb9828d5 100644
--- a/htdocs/compta/localtax/index.php
+++ b/htdocs/compta/localtax/index.php
@@ -148,7 +148,7 @@ for ($m = 1 ; $m < 13 ; $m++ )
     }
 
     $var=!$var;
-    print "<tr $bc[$var]>";
+    print "<tr ".$bc[$var].">";
     print '<td nowrap>'.dol_print_date(dol_mktime(0,0,0,$m,1,$y),"%b %Y").'</td>';
 
     $x_coll = 0;
diff --git a/htdocs/compta/localtax/reglement.php b/htdocs/compta/localtax/reglement.php
index 66c88892325..e750403bf2c 100644
--- a/htdocs/compta/localtax/reglement.php
+++ b/htdocs/compta/localtax/reglement.php
@@ -66,7 +66,7 @@ if ($result)
     {
         $obj = $db->fetch_object($result);
         $var=!$var;
-        print "<tr $bc[$var]>";
+        print "<tr ".$bc[$var].">";
 
 		$localtax_static->id=$obj->rowid;
 		$localtax_static->ref=$obj->rowid;
diff --git a/htdocs/compta/paiement/avalider.php b/htdocs/compta/paiement/avalider.php
index 03ebf1d40a6..82936395d2a 100644
--- a/htdocs/compta/paiement/avalider.php
+++ b/htdocs/compta/paiement/avalider.php
@@ -95,7 +95,7 @@ if ($resql)
     {
         $objp = $db->fetch_object($resql);
         $var=!$var;
-        print "<tr $bc[$var]>";
+        print "<tr ".$bc[$var].">";
         print '<td><a href="'.DOL_URL_ROOT.'/compta/paiement/fiche.php?id='.$objp->rowid.'">'.img_object($langs->trans("ShowPayment"),"payment").' '.$objp->rowid.'</a></td>';
         print '<td width="80" align="center">'.dol_print_date($db->jdate($objp->dp),'day')."</td>\n";
         print "<td>$objp->paiement_type $objp->num_paiement</td>\n";
diff --git a/htdocs/compta/paiement/cheque/fiche.php b/htdocs/compta/paiement/cheque/fiche.php
index 3251b4a1ab6..7cf5d15f3a2 100644
--- a/htdocs/compta/paiement/cheque/fiche.php
+++ b/htdocs/compta/paiement/cheque/fiche.php
@@ -553,7 +553,7 @@ else
 				$accounts[$objp->bid]=0;
 			$accounts[$objp->bid] += 1;
 
-			print "<tr $bc[$var]>";
+			print "<tr ".$bc[$var].">";
 			print '<td align="center">'.$i.'</td>';
 			print '<td align="center">'.dol_print_date($db->jdate($objp->date),'day').'</td>';	// Date operation
 			print '<td align="center">'.($objp->num_chq?$objp->num_chq:'&nbsp;').'</td>';
diff --git a/htdocs/compta/paiement/cheque/index.php b/htdocs/compta/paiement/cheque/index.php
index 80ea9ea6817..2fd7a970d92 100644
--- a/htdocs/compta/paiement/cheque/index.php
+++ b/htdocs/compta/paiement/cheque/index.php
@@ -126,7 +126,7 @@ if ($resql)
 		$accountstatic->label=$objp->label;
 
 		$var=!$var;
-		print "<tr $bc[$var]>\n";
+		print "<tr ".$bc[$var].">\n";
 
 		print '<td>'.$checkdepositstatic->getNomUrl(1).'</td>';
 		print '<td>'.dol_print_date($db->jdate($objp->db),'day').'</td>';
diff --git a/htdocs/compta/paiement/cheque/liste.php b/htdocs/compta/paiement/cheque/liste.php
index 705bc15eb88..1c1cf71b11c 100644
--- a/htdocs/compta/paiement/cheque/liste.php
+++ b/htdocs/compta/paiement/cheque/liste.php
@@ -111,7 +111,7 @@ if ($resql)
 	{
 		$objp = $db->fetch_object($resql);
 		$var=!$var;
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 
 		// Num ref cheque
 		print '<td width="80">';
diff --git a/htdocs/compta/paiement/liste.php b/htdocs/compta/paiement/liste.php
index db2b3173a1c..cec77401490 100644
--- a/htdocs/compta/paiement/liste.php
+++ b/htdocs/compta/paiement/liste.php
@@ -180,7 +180,7 @@ if ($resql)
     {
         $objp = $db->fetch_object($resql);
         $var=!$var;
-        print "<tr $bc[$var]>";
+        print "<tr ".$bc[$var].">";
 
         print '<td width="40">';
         $paymentstatic->id=$objp->rowid;
diff --git a/htdocs/compta/paiement_charge.php b/htdocs/compta/paiement_charge.php
index 09d053c47b2..0b2cc3ea709 100755
--- a/htdocs/compta/paiement_charge.php
+++ b/htdocs/compta/paiement_charge.php
@@ -255,7 +255,7 @@ if ($_GET["action"] == 'create')
 
 		$var=!$var;
 
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 
 		//print '<td>'.$charge->getNomUrl(1)."</td>\n";
 
diff --git a/htdocs/compta/prelevement/bons.php b/htdocs/compta/prelevement/bons.php
index 8f2d336defe..1ee076cd170 100644
--- a/htdocs/compta/prelevement/bons.php
+++ b/htdocs/compta/prelevement/bons.php
@@ -99,7 +99,7 @@ if ($result)
       $obj = $db->fetch_object($result);
       $var=!$var;
 
-      print "<tr $bc[$var]><td>";
+      print "<tr ".$bc[$var]."><td>";
 
       print $bon->LibStatut($obj->statut,2);
       print "&nbsp;";
diff --git a/htdocs/compta/prelevement/create.php b/htdocs/compta/prelevement/create.php
index 0e47fd7c109..115902db228 100644
--- a/htdocs/compta/prelevement/create.php
+++ b/htdocs/compta/prelevement/create.php
@@ -254,7 +254,7 @@ if ($result)
         $obj = $db->fetch_object($result);
         $var=!$var;
 
-        print "<tr $bc[$var]><td>";
+        print "<tr ".$bc[$var]."><td>";
         $bprev->id=$obj->rowid;
         $bprev->ref=$obj->ref;
         print $bprev->getNomUrl(1);
diff --git a/htdocs/compta/prelevement/factures.php b/htdocs/compta/prelevement/factures.php
index 115a7829374..74bb3fd12e4 100644
--- a/htdocs/compta/prelevement/factures.php
+++ b/htdocs/compta/prelevement/factures.php
@@ -157,7 +157,7 @@ if ($result)
     {
      	$obj = $db->fetch_object($result);
 
-      	print "<tr $bc[$var]><td>";
+      	print "<tr ".$bc[$var]."><td>";
 
       	print '<a href="'.DOL_URL_ROOT.'/compta/facture.php?facid='.$obj->facid.'">';
       	print img_object($langs->trans("ShowBill"),"bill");
@@ -194,7 +194,7 @@ if ($result)
 
   	if($socid)
     {
-      	print "<tr $bc[$var]><td>";
+      	print "<tr ".$bc[$var]."><td>";
 
      	print '<td>'.$langs->trans("Total").'</td>';
 
diff --git a/htdocs/compta/prelevement/fiche-stat.php b/htdocs/compta/prelevement/fiche-stat.php
index 5fcd70b1a9b..2ac44d056fe 100644
--- a/htdocs/compta/prelevement/fiche-stat.php
+++ b/htdocs/compta/prelevement/fiche-stat.php
@@ -132,7 +132,7 @@ if ($prev_id)
 		{
 			$row = $db->fetch_row($resql);
 
-			print "<tr $bc[$var]><td>";
+			print "<tr ".$bc[$var]."><td>";
 
 			print $ligne->LibStatut($row[1],1);
 
diff --git a/htdocs/compta/prelevement/ligne.php b/htdocs/compta/prelevement/ligne.php
index 54aaf02841a..a0e2d498ee0 100644
--- a/htdocs/compta/prelevement/ligne.php
+++ b/htdocs/compta/prelevement/ligne.php
@@ -299,7 +299,7 @@ if ($id)
 		{
 			$obj = $db->fetch_object($result);
 
-			print "<tr $bc[$var]><td>";
+			print "<tr ".$bc[$var]."><td>";
 
 			print '<a href="'.DOL_URL_ROOT.'/compta/facture.php?facid='.$obj->facid.'">';
 			print img_object($langs->trans("ShowBill"),"bill");
diff --git a/htdocs/compta/prelevement/lignes.php b/htdocs/compta/prelevement/lignes.php
index c322142b6a9..dc8b69ea78d 100644
--- a/htdocs/compta/prelevement/lignes.php
+++ b/htdocs/compta/prelevement/lignes.php
@@ -166,7 +166,7 @@ if ($result)
 	{
 		$obj = $db->fetch_object($result);
 
-		print "<tr $bc[$var]><td>";
+		print "<tr ".$bc[$var]."><td>";
 
 		print $ligne->LibStatut($obj->statut,2);
 		print "&nbsp;";
@@ -199,7 +199,7 @@ if ($result)
 
 	if($socid)
 	{
-		print "<tr $bc[$var]><td>";
+		print "<tr ".$bc[$var]."><td>";
 
 		print '<td>Total</td>';
 
diff --git a/htdocs/compta/prelevement/liste.php b/htdocs/compta/prelevement/liste.php
index cd09dc6cf25..ddcf485ac4d 100644
--- a/htdocs/compta/prelevement/liste.php
+++ b/htdocs/compta/prelevement/liste.php
@@ -141,7 +141,7 @@ if ($result)
 
         $var=!$var;
 
-        print "<tr $bc[$var]><td>";
+        print "<tr ".$bc[$var]."><td>";
 
         print $ligne->LibStatut($obj->statut_ligne,2);
         print "&nbsp;";
diff --git a/htdocs/compta/prelevement/rejets.php b/htdocs/compta/prelevement/rejets.php
index 5744ab0eb7b..b307717e4b3 100644
--- a/htdocs/compta/prelevement/rejets.php
+++ b/htdocs/compta/prelevement/rejets.php
@@ -101,7 +101,7 @@ if ($result)
 	{
 		$obj = $db->fetch_object($result);
 
-		print "<tr $bc[$var]><td>";
+		print "<tr ".$bc[$var]."><td>";
 		print $ligne->LibStatut($obj->statut,2).'&nbsp;';
 		print '<a href="'.DOL_URL_ROOT.'/compta/prelevement/ligne.php?id='.$obj->rowid.'">';
 
diff --git a/htdocs/compta/prelevement/stats.php b/htdocs/compta/prelevement/stats.php
index 418d733dbd4..3da79a89f0c 100644
--- a/htdocs/compta/prelevement/stats.php
+++ b/htdocs/compta/prelevement/stats.php
@@ -102,7 +102,7 @@ if ($resql)
 	{
 		$row = $db->fetch_row($resql);
 
-		print "<tr $bc[$var]><td>";
+		print "<tr ".$bc[$var]."><td>";
 
 		print $ligne->LibStatut($row[2],1);
 		//print $st[$row[2]];
@@ -202,7 +202,7 @@ if ($resql)
 	{
 		$row = $db->fetch_row($resql);
 
-		print "<tr $bc[$var]><td>";
+		print "<tr ".$bc[$var]."><td>";
 		print $Rejet->motifs[$row[2]];
 
 		print '</td><td align="center">'.$row[1];
diff --git a/htdocs/compta/recap-compta.php b/htdocs/compta/recap-compta.php
index 78c81f9ab9c..609a624adce 100644
--- a/htdocs/compta/recap-compta.php
+++ b/htdocs/compta/recap-compta.php
@@ -177,7 +177,7 @@ if ($socid > 0)
 					{
 						$objp = $db->fetch_object($resqlp);
 						//$var=!$var;
-						print "<tr $bc[$var]>";
+						print "<tr ".$bc[$var].">";
 						print '<td align="center">'.dol_print_date($db->jdate($objp->dp),'day')."</td>\n";
 						print '<td>';
 						print '&nbsp; &nbsp; &nbsp; '; // Decalage
diff --git a/htdocs/compta/resultat/clientfourn.php b/htdocs/compta/resultat/clientfourn.php
index d2dd5630843..882554582c1 100644
--- a/htdocs/compta/resultat/clientfourn.php
+++ b/htdocs/compta/resultat/clientfourn.php
@@ -198,7 +198,7 @@ if ($result) {
         $objp = $db->fetch_object($result);
         $var=!$var;
 
-        print "<tr $bc[$var]><td>&nbsp;</td>";
+        print "<tr ".$bc[$var]."><td>&nbsp;</td>";
         print "<td>".$langs->trans("Bills").' <a href="'.DOL_URL_ROOT.'/compta/facture/list.php?socid='.$objp->socid.'">'.$objp->nom."</td>\n";
 
         if ($modecompta == 'CREANCES-DETTES')
@@ -243,7 +243,7 @@ if ($modecompta != 'CREANCES-DETTES')
                 $objp = $db->fetch_object($result);
                 $var=!$var;
 
-                print "<tr $bc[$var]><td>&nbsp;</td>";
+                print "<tr ".$bc[$var]."><td>&nbsp;</td>";
                 print "<td>".$langs->trans("Bills")." ".$langs->trans("Other")." (".$langs->trans("PaymentsNotLinkedToInvoice").")\n";
 
                 if ($modecompta == 'CREANCES-DETTES')
@@ -266,7 +266,7 @@ if ($modecompta != 'CREANCES-DETTES')
 if ($total_ttc == 0)
 {
     $var=!$var;
-    print "<tr $bc[$var]><td>&nbsp;</td>";
+    print "<tr ".$bc[$var]."><td>&nbsp;</td>";
     print '<td colspan="3">'.$langs->trans("None").'</td>';
     print '</tr>';
 }
@@ -330,7 +330,7 @@ if ($result) {
             $objp = $db->fetch_object($result);
             $var=!$var;
 
-            print "<tr $bc[$var]><td>&nbsp;</td>";
+            print "<tr ".$bc[$var]."><td>&nbsp;</td>";
             print "<td>".$langs->trans("Bills")." <a href=\"".DOL_URL_ROOT."/fourn/facture/index.php?socid=".$objp->socid."\">".$objp->nom."</a></td>\n";
 
             if ($modecompta == 'CREANCES-DETTES')
@@ -349,7 +349,7 @@ if ($result) {
     else
     {
         $var=!$var;
-        print "<tr $bc[$var]><td>&nbsp;</td>";
+        print "<tr ".$bc[$var]."><td>&nbsp;</td>";
         print '<td colspan="3">'.$langs->trans("None").'</td>';
         print '</tr>';
     }
@@ -416,7 +416,7 @@ if ($result) {
             $subtotal_ttc += $obj->amount;
 
             $var = !$var;
-            print "<tr $bc[$var]><td>&nbsp;</td>";
+            print "<tr ".$bc[$var]."><td>&nbsp;</td>";
             print '<td>'.$obj->nom.'</td>';
             if ($modecompta == 'CREANCES-DETTES') print '<td align="right">'.price(-$obj->amount).'</td>';
             print '<td align="right">'.price(-$obj->amount).'</td>';
@@ -426,7 +426,7 @@ if ($result) {
     }
     else {
         $var = !$var;
-        print "<tr $bc[$var]><td>&nbsp;</td>";
+        print "<tr ".$bc[$var]."><td>&nbsp;</td>";
         print '<td colspan="3">'.$langs->trans("None").'</td>';
         print '</tr>';
     }
@@ -493,7 +493,7 @@ if ($result) {
             $subtotal_ttc += $obj->amount;
 
             $var = !$var;
-            print "<tr $bc[$var]><td>&nbsp;</td>";
+            print "<tr ".$bc[$var]."><td>&nbsp;</td>";
             print '<td>'.$obj->nom.'</td>';
             if ($modecompta == 'CREANCES-DETTES')
             	print '<td align="right">'.price(-$obj->amount).'</td>';
@@ -504,7 +504,7 @@ if ($result) {
     }
     else {
         $var = !$var;
-        print "<tr $bc[$var]><td>&nbsp;</td>";
+        print "<tr ".$bc[$var]."><td>&nbsp;</td>";
         print '<td colspan="3">'.$langs->trans("None").'</td>';
         print '</tr>';
     }
@@ -581,7 +581,7 @@ if ($modecompta == 'CREANCES-DETTES')
     } else {
         dol_print_error($db);
     }
-    print "<tr $bc[$var]><td>&nbsp;</td>";
+    print "<tr ".$bc[$var]."><td>&nbsp;</td>";
     print "<td>".$langs->trans("VATToPay")."</td>\n";
     print "<td align=\"right\">&nbsp;</td>\n";
     print "<td align=\"right\">".price($amount)."</td>\n";
@@ -624,7 +624,7 @@ if ($modecompta == 'CREANCES-DETTES')
     } else {
         dol_print_error($db);
     }
-    print "<tr $bc[$var]><td>&nbsp;</td>";
+    print "<tr ".$bc[$var]."><td>&nbsp;</td>";
     print "<td>".$langs->trans("VATToCollect")."</td>\n";
     print "<td align=\"right\">&nbsp;</td>\n";
     print "<td align=\"right\">".price($amount)."</td>\n";
@@ -666,7 +666,7 @@ else
     } else {
         dol_print_error($db);
     }
-    print "<tr $bc[$var]><td>&nbsp;</td>";
+    print "<tr ".$bc[$var]."><td>&nbsp;</td>";
     print "<td>".$langs->trans("VATPaid")."</td>\n";
     if ($modecompta == 'CREANCES-DETTES')
     	print "<td align=\"right\">".price($amount)."</td>\n";
@@ -709,7 +709,7 @@ else
     {
         dol_print_error($db);
     }
-    print "<tr $bc[$var]><td>&nbsp;</td>";
+    print "<tr ".$bc[$var]."><td>&nbsp;</td>";
     print "<td>".$langs->trans("VATCollected")."</td>\n";
     if ($modecompta == 'CREANCES-DETTES')
     	print "<td align=\"right\">".price($amount)."</td>\n";
diff --git a/htdocs/compta/sociales/index.php b/htdocs/compta/sociales/index.php
index 2c5f1736d1b..54cb9fc0c42 100644
--- a/htdocs/compta/sociales/index.php
+++ b/htdocs/compta/sociales/index.php
@@ -171,7 +171,7 @@ if ($resql)
 			$obj = $db->fetch_object($resql);
 
 			$var = !$var;
-			print "<tr $bc[$var]>";
+			print "<tr ".$bc[$var].">";
 
 			// Ref
 			print '<td width="60">';
diff --git a/htdocs/compta/stats/index.php b/htdocs/compta/stats/index.php
index 2d90767cffb..209cdba9563 100644
--- a/htdocs/compta/stats/index.php
+++ b/htdocs/compta/stats/index.php
@@ -284,7 +284,7 @@ for ($mois = 1+$nb_mois_decalage ; $mois <= 12+$nb_mois_decalage ; $mois++)
  for ($mois = 1 ; $mois < 13 ; $mois++)
  {
  $var=!$var;
- print "<tr $bc[$var]>";
+ print "<tr ".$bc[$var].">";
 
  print "<td>".dol_print_date(dol_mktime(12,0,0,$mois,1,2000),"%B")."</td>";
  for ($annee = $year_start ; $annee <= $year_end ; $annee++)
@@ -439,7 +439,7 @@ print "</table>";
  $i++;
  }
  $var=!$var;
- print "<tr $bc[$var]><td align=\"right\" colspan=\"5\"><i>Facture a encaisser : </i></td><td align=\"right\"><i>".price($total_ttc_Rac)."</i></td><td colspan=\"5\"><-- bug ici car n'exclut pas le deja r�gl� des factures partiellement r�gl�es</td></tr>";
+ print "<tr ".$bc[$var]."><td align=\"right\" colspan=\"5\"><i>Facture a encaisser : </i></td><td align=\"right\"><i>".price($total_ttc_Rac)."</i></td><td colspan=\"5\"><-- bug ici car n'exclut pas le deja r�gl� des factures partiellement r�gl�es</td></tr>";
  }
  $db->free($resql);
  }
@@ -489,7 +489,7 @@ print "</table>";
  $i++;
  }
  $var=!$var;
- print "<tr $bc[$var]><td align=\"right\" colspan=\"5\"><i>Signe et non facture:</i></td><td align=\"right\"><i>".price($total_pr)."</i></td><td colspan=\"5\"><-- bug ici, ca devrait exclure le deja facture</td></tr>";
+ print "<tr ".$bc[$var]."><td align=\"right\" colspan=\"5\"><i>Signe et non facture:</i></td><td align=\"right\"><i>".price($total_pr)."</i></td><td colspan=\"5\"><-- bug ici, ca devrait exclure le deja facture</td></tr>";
  }
  $db->free($resql);
  }
@@ -497,7 +497,7 @@ print "</table>";
  {
  dol_print_error($db);
  }
- print "<tr $bc[$var]><td align=\"right\" colspan=\"5\"><i>Total CA previsionnel : </i></td><td align=\"right\"><i>".price($total_CA)."</i></td><td colspan=\"3\"><-- bug ici car bug sur les 2 precedents</td></tr>";
+ print "<tr ".$bc[$var]."><td align=\"right\" colspan=\"5\"><i>Total CA previsionnel : </i></td><td align=\"right\"><i>".price($total_CA)."</i></td><td colspan=\"3\"><-- bug ici car bug sur les 2 precedents</td></tr>";
  }
  print "</table>";
 
diff --git a/htdocs/compta/tva/clients.php b/htdocs/compta/tva/clients.php
index a5e0e7fdbb9..83f248a39be 100644
--- a/htdocs/compta/tva/clients.php
+++ b/htdocs/compta/tva/clients.php
@@ -284,7 +284,7 @@ if (is_array($coll_list))
 					$intra = '';
 				}
 			}
-			print "<tr $bc[$var]>";
+			print "<tr ".$bc[$var].">";
 			print "<td nowrap>".$i."</td>";
 			$company_static->id=$coll->socid;
 			$company_static->nom=$coll->nom;
diff --git a/htdocs/compta/tva/index.php b/htdocs/compta/tva/index.php
index 354d8c86535..7f23b6cfded 100644
--- a/htdocs/compta/tva/index.php
+++ b/htdocs/compta/tva/index.php
@@ -157,7 +157,7 @@ for ($m = 1 ; $m < 13 ; $m++ )
     }
 
     $var=!$var;
-    print "<tr $bc[$var]>";
+    print "<tr ".$bc[$var].">";
     print '<td nowrap><a href="quadri_detail.php?leftmenu=tax_vat&month='.$m.'&year='.$y.'">'.dol_print_date(dol_mktime(0,0,0,$m,1,$y),"%b %Y").'</a></td>';
 
     $x_coll = 0;
diff --git a/htdocs/compta/tva/quadri.php b/htdocs/compta/tva/quadri.php
index 393a9ee4efc..d283f877817 100644
--- a/htdocs/compta/tva/quadri.php
+++ b/htdocs/compta/tva/quadri.php
@@ -261,7 +261,7 @@ if ($conf->global->COMPTA_MODE == "CREANCES-DETTES")
 		$x_paye_ht = 0;
 		foreach($x_both as $rate => $both){
 			$var=!$var;
-			print "<tr $bc[$var]>";
+			print "<tr ".$bc[$var].">";
 			print "<td>$rate%</td>";
 			print "<td nowrap align=\"right\">".price($both['coll']['totalht'])."</td>";
 			print "<td nowrap align=\"right\">".price($both['coll']['vat'])."</td>";
@@ -284,7 +284,7 @@ if ($conf->global->COMPTA_MODE == "CREANCES-DETTES")
 		$subtotal = $subtotal + $diff;
 
 		$var=!$var;
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		print '<td colspan="7"></td>';
 		print "<td nowrap align=\"right\">".price($diff)."</td>\n";
 		print "</tr>\n";
diff --git a/htdocs/compta/tva/reglement.php b/htdocs/compta/tva/reglement.php
index 85d3fa4736a..4ca5f298514 100644
--- a/htdocs/compta/tva/reglement.php
+++ b/htdocs/compta/tva/reglement.php
@@ -70,7 +70,7 @@ if ($result)
     {
         $obj = $db->fetch_object($result);
         $var=!$var;
-        print "<tr $bc[$var]>";
+        print "<tr ".$bc[$var].">";
 
 		$tva_static->id=$obj->rowid;
 		$tva_static->ref=$obj->rowid;
diff --git a/htdocs/compta/ventilation/fournisseur/lignes.php b/htdocs/compta/ventilation/fournisseur/lignes.php
index 513736cbe59..0a27fb3ddaa 100644
--- a/htdocs/compta/ventilation/fournisseur/lignes.php
+++ b/htdocs/compta/ventilation/fournisseur/lignes.php
@@ -89,7 +89,7 @@ if ($result)
     {
       $objp = $db->fetch_object($result);
       $var=!$var;
-      print "<tr $bc[$var]>";
+      print "<tr ".$bc[$var].">";
 
       print '<td><a href="'.DOL_URL_ROOT.'/compta/facture.php?facid='.$objp->facid.'">'.$objp->facnumber.'</a></td>';
 
diff --git a/htdocs/compta/ventilation/fournisseur/liste.php b/htdocs/compta/ventilation/fournisseur/liste.php
index a3290dac20f..83256709771 100644
--- a/htdocs/compta/ventilation/fournisseur/liste.php
+++ b/htdocs/compta/ventilation/fournisseur/liste.php
@@ -74,7 +74,7 @@ if ($result)
     {
       $objp = $db->fetch_object($result);
       $var=!$var;
-      print "<tr $bc[$var]>";
+      print "<tr ".$bc[$var].">";
 
       print '<td><a href="'.DOL_URL_ROOT.'/fourn/facture/fiche.php?facid='.$objp->facid.'">'.$objp->facnumber.'</a></td>';
       print '<td>'.stripslashes(nl2br($objp->description)).'</td>';
diff --git a/htdocs/compta/ventilation/lignes.php b/htdocs/compta/ventilation/lignes.php
index c938e9774c4..e8578e7dcf0 100644
--- a/htdocs/compta/ventilation/lignes.php
+++ b/htdocs/compta/ventilation/lignes.php
@@ -104,7 +104,7 @@ if ($result)
 		$var=!$var;
 		$codeCompta = $objp->numero.' '.$objp->intitule;
 
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 
 		// Ref facture
 		$facture_static->ref=$objp->facnumber;
diff --git a/htdocs/compta/ventilation/liste.php b/htdocs/compta/ventilation/liste.php
index 81613640541..4cfe167d60c 100644
--- a/htdocs/compta/ventilation/liste.php
+++ b/htdocs/compta/ventilation/liste.php
@@ -88,7 +88,7 @@ if ($result)
 	{
 		$objp = $db->fetch_object($result);
 		$var=!$var;
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 
 		// Ref facture
 		$facture_static->ref=$objp->facnumber;
diff --git a/htdocs/contact/list.php b/htdocs/contact/list.php
index aa7923926e0..eefbd4b73c6 100755
--- a/htdocs/contact/list.php
+++ b/htdocs/contact/list.php
@@ -318,7 +318,7 @@ if ($result)
 
         $var=!$var;
 
-        print "<tr $bc[$var]>";
+        print "<tr ".$bc[$var].">";
 
 		// Name
 		print '<td valign="middle">';
diff --git a/htdocs/contrat/fiche.php b/htdocs/contrat/fiche.php
index fa9c99a8571..4989fc98440 100644
--- a/htdocs/contrat/fiche.php
+++ b/htdocs/contrat/fiche.php
@@ -1244,7 +1244,7 @@ else
                     print '<input type="hidden" name="idprod" value="'.($objp->fk_product?$objp->fk_product:'0').'">';
                     print '<input type="hidden" name="fournprice" value="'.($objp->fk_fournprice?$objp->fk_fournprice:'0').'">';
                     // Ligne carac
-                    print "<tr $bc[$var]>";
+                    print "<tr ".$bc[$var].">";
                     print '<td>';
                     if ($objp->fk_product)
                     {
@@ -1285,7 +1285,7 @@ else
                     print '<br><input type="submit" class="button" name="cancel" value="'.$langs->trans("Cancel").'">';
                     print '</td>';
                     // Ligne dates prevues
-                    print "<tr $bc[$var]>";
+                    print "<tr ".$bc[$var].">";
                     print '<td colspan="'.($conf->margin->enabled?6:5).'">';
                     print $langs->trans("DateStartPlanned").' ';
                     $form->select_date($db->jdate($objp->date_debut),"date_start_update",$usehm,$usehm,($db->jdate($objp->date_debut)>0?0:1),"update");
diff --git a/htdocs/core/class/dolprintipp.class.php b/htdocs/core/class/dolprintipp.class.php
index c1add1087e2..1ade18a2968 100644
--- a/htdocs/core/class/dolprintipp.class.php
+++ b/htdocs/core/class/dolprintipp.class.php
@@ -166,7 +166,7 @@ class dolprintIPP
         foreach ($jobs as $value )
         {
             $var=!$var;
-            print "<tr $bc[$var]>";
+            print "<tr ".$bc[$var].">";
             print '<td>'.$value->job_id->_value0.'</td>';
             print '<td>'.$value->job_originating_user_name->_value0.'</td>';
             print '<td>'.$value->printer_uri->_value0.'</td>';
diff --git a/htdocs/core/lib/company.lib.php b/htdocs/core/lib/company.lib.php
index 170d2cb9da2..c009a3bbe31 100644
--- a/htdocs/core/lib/company.lib.php
+++ b/htdocs/core/lib/company.lib.php
@@ -448,7 +448,7 @@ function show_projects($conf,$langs,$db,$object,$backtopage='')
                     if ($user->rights->projet->lire && $userAccess > 0)
                     {
                         $var = !$var;
-                        print "<tr $bc[$var]>";
+                        print "<tr ".$bc[$var].">";
 
                         // Ref
                         print '<td><a href="'.DOL_URL_ROOT.'/projet/fiche.php?id='.$obj->rowid.'">'.img_object($langs->trans("ShowProject"),($obj->public?'projectpub':'project'))." ".$obj->ref.'</a></td>';
diff --git a/htdocs/core/lib/sendings.lib.php b/htdocs/core/lib/sendings.lib.php
index 10dffc40faa..f8cc1493b4b 100644
--- a/htdocs/core/lib/sendings.lib.php
+++ b/htdocs/core/lib/sendings.lib.php
@@ -192,7 +192,7 @@ function show_list_sending_receive($origin,$origin_id,$filter='')
 			{
 				$var=!$var;
 				$objp = $db->fetch_object($resql);
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 
 				// Sending id
 				print '<td align="left" class="nowrap"><a href="'.DOL_URL_ROOT.'/expedition/fiche.php?id='.$objp->expedition_id.'">'.img_object($langs->trans("ShowSending"),'sending').' '.$objp->exp_ref.'<a></td>';
diff --git a/htdocs/expedition/index.php b/htdocs/expedition/index.php
index 3153a9a9ef2..94dd06c5b73 100644
--- a/htdocs/expedition/index.php
+++ b/htdocs/expedition/index.php
@@ -144,7 +144,7 @@ if ($resql)
 		{
 			$var=!$var;
 			$obj = $db->fetch_object($resql);
-			print "<tr $bc[$var]>";
+			print "<tr ".$bc[$var].">";
 			print '<td class="nowrap">';
 			$orderstatic->id=$obj->rowid;
 			$orderstatic->ref=$obj->ref;
@@ -196,7 +196,7 @@ if ( $resql )
 		{
 			$var=!$var;
 			$obj = $db->fetch_object($resql);
-			print "<tr $bc[$var]><td width=\"30%\">";
+			print "<tr ".$bc[$var]."><td width=\"30%\">";
 			$orderstatic->id=$obj->rowid;
 			$orderstatic->ref=$obj->ref;
 			print $orderstatic->getNomUrl(1);
diff --git a/htdocs/expedition/liste.php b/htdocs/expedition/liste.php
index 7f4eedf9f6e..10ff087801e 100644
--- a/htdocs/expedition/liste.php
+++ b/htdocs/expedition/liste.php
@@ -114,7 +114,7 @@ if ($resql)
 		$objp = $db->fetch_object($resql);
 
 		$var=!$var;
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		print "<td>";
 		$shipment->id=$objp->rowid;
 		$shipment->ref=$objp->ref;
diff --git a/htdocs/exports/export.php b/htdocs/exports/export.php
index 3befa61e692..754ea46aa0b 100644
--- a/htdocs/exports/export.php
+++ b/htdocs/exports/export.php
@@ -532,7 +532,7 @@ if ($step == 2 && $datatoexport)
     foreach($fieldsarray as $code=>$label)
     {
         $var=!$var;
-        print "<tr $bc[$var]>";
+        print "<tr ".$bc[$var].">";
 
         $i++;
 
@@ -865,7 +865,7 @@ if ($step == 4 && $datatoexport)
     foreach($array_selected as $code=>$value)
     {
         $var=!$var;
-        print "<tr $bc[$var]>";
+        print "<tr ".$bc[$var].">";
 
         $entity=(! empty($objexport->array_export_entities[0][$code])?$objexport->array_export_entities[0][$code]:$objexport->array_export_icon[0]);
         $entityicon=(! empty($entitytoicon[$entity])?$entitytoicon[$entity]:$entity);
diff --git a/htdocs/fichinter/apercu.php b/htdocs/fichinter/apercu.php
index 507a48d2dee..2ba31d41df4 100644
--- a/htdocs/fichinter/apercu.php
+++ b/htdocs/fichinter/apercu.php
@@ -98,7 +98,7 @@ if ($id > 0 || ! empty($ref))
 			print_titre($langs->trans("Documents"));
 			print '<table class="border" width="100%">';
 
-			print "<tr $bc[$var]><td>".$langs->trans("Intervention")." PDF</td>";
+			print "<tr ".$bc[$var]."><td>".$langs->trans("Intervention")." PDF</td>";
 
 			print '<td><a data-ajax="false" href="'.DOL_URL_ROOT . '/document.php?modulepart=ficheinter&file='.urlencode($relativepath).'">'.$object->ref.'.pdf</a></td>';
 			print '<td align="right">'.dol_print_size(dol_filesize($file)).'</td>';
@@ -108,7 +108,7 @@ if ($id > 0 || ! empty($ref))
 			// Si fichier detail PDF existe
 			if (file_exists($filedetail))
 			{
-				print "<tr $bc[$var]><td>Fiche d'intervention detaillee</td>";
+				print "<tr ".$bc[$var]."><td>Fiche d'intervention detaillee</td>";
 
 				print '<td><a data-ajax="false" href="'.DOL_URL_ROOT . '/document.php?modulepart=ficheinter&file='.urlencode($relativepathdetail).'">'.$object->ref.'-detail.pdf</a></td>';
 				print '<td align="right">'.dol_print_size(dol_filesize($filedetail)).'</td>';
diff --git a/htdocs/fichinter/list.php b/htdocs/fichinter/list.php
index a96187dc41d..c87d08ebca8 100755
--- a/htdocs/fichinter/list.php
+++ b/htdocs/fichinter/list.php
@@ -129,7 +129,7 @@ if ($result)
 	{
 		$objp = $db->fetch_object($result);
 		$var=!$var;
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		print "<td>";
 		$interventionstatic->id=$objp->fichid;
 		$interventionstatic->ref=$objp->ref;
diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php
index 4c5dc82bcec..115bd66ae48 100644
--- a/htdocs/fourn/commande/dispatch.php
+++ b/htdocs/fourn/commande/dispatch.php
@@ -373,7 +373,7 @@ if ($id > 0 || ! empty($ref))
 				while ($i < $num)
 				{
 					$objp = $db->fetch_object($resql);
-					print "<tr $bc[$var]>";
+					print "<tr ".$bc[$var].">";
 					print '<td>';
 					print '<a href="'.DOL_URL_ROOT.'/product/fournisseurs.php?id='.$objp->fk_product.'">'.img_object($langs->trans("ShowProduct"),'product').' '.$objp->ref.'</a>';
 					print ' - '.$objp->label;
diff --git a/htdocs/fourn/commande/history.php b/htdocs/fourn/commande/history.php
index bb823288ac3..4463d8ebbd2 100644
--- a/htdocs/fourn/commande/history.php
+++ b/htdocs/fourn/commande/history.php
@@ -152,7 +152,7 @@ if ($id > 0 || ! empty($ref))
 				$var=!$var;
 
 				$obj = $db->fetch_object($resql);
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 
 				print '<td width="20%">'.dol_print_date($db->jdate($obj->dl),"dayhour")."</td>\n";
 
diff --git a/htdocs/fourn/commande/index.php b/htdocs/fourn/commande/index.php
index 3e1943c9b27..52064cb39eb 100755
--- a/htdocs/fourn/commande/index.php
+++ b/htdocs/fourn/commande/index.php
@@ -182,7 +182,7 @@ if ($resql)
         $row = $db->fetch_row($resql);
         $var=!$var;
 
-        print "<tr $bc[$var]>";
+        print "<tr ".$bc[$var].">";
         print '<td>'.$langs->trans($commandestatic->statuts[$row[1]]).'</td>';
         print '<td align="right"><a href="liste.php?statut='.$row[1].'">'.$row[0].' '.$commandestatic->LibStatut($row[1],3).'</a></td>';
 
@@ -230,7 +230,7 @@ if (! empty($conf->fournisseur->enabled))
             {
                 $var=!$var;
                 $obj = $db->fetch_object($resql);
-                print "<tr $bc[$var]>";
+                print "<tr ".$bc[$var].">";
                 print '<td class="nowrap">';
                 print "<a href=\"fiche.php?id=".$obj->rowid."\">".img_object($langs->trans("ShowOrder"),"order").' '.$obj->ref."</a></td>";
                 print '<td><a href="'.DOL_URL_ROOT.'/fourn/fiche.php?socid='.$obj->socid.'">'.img_object($langs->trans("ShowCompany"),"company").' '.dol_trunc($obj->nom,24).'</a></td></tr>';
@@ -273,7 +273,7 @@ if ($resql)
         $obj = $db->fetch_object($resql);
         $var=!$var;
 
-        print "<tr $bc[$var]>";
+        print "<tr ".$bc[$var].">";
         print '<td>';
         $userstatic->id=$obj->rowid;
         $userstatic->lastname=$obj->lastname;
@@ -329,7 +329,7 @@ if ($resql)
             $var=!$var;
             $obj = $db->fetch_object($resql);
 
-            print "<tr $bc[$var]>";
+            print "<tr ".$bc[$var].">";
             print '<td width="20%" class="nowrap">';
 
             $commandestatic->id=$obj->rowid;
@@ -397,7 +397,7 @@ while ($i < $num)
 {
 $var=!$var;
 $obj = $db->fetch_object($resql);
-print "<tr $bc[$var]>";
+print "<tr ".$bc[$var].">";
 print '<td class="nowrap">';
 
 $commandestatic->id=$obj->rowid;
diff --git a/htdocs/fourn/commande/liste.php b/htdocs/fourn/commande/liste.php
index da493a8cd17..bfd2be80cd5 100644
--- a/htdocs/fourn/commande/liste.php
+++ b/htdocs/fourn/commande/liste.php
@@ -152,7 +152,7 @@ if ($resql)
 		$obj = $db->fetch_object($resql);
 		$var=!$var;
 
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 
 		// Ref
 		print '<td><a href="'.DOL_URL_ROOT.'/fourn/commande/fiche.php?id='.$obj->rowid.'">'.img_object($langs->trans("ShowOrder"),"order").' '.$obj->ref.'</a></td>'."\n";
diff --git a/htdocs/fourn/fiche.php b/htdocs/fourn/fiche.php
index 1af03e83a01..5899870b955 100644
--- a/htdocs/fourn/fiche.php
+++ b/htdocs/fourn/fiche.php
@@ -288,7 +288,7 @@ if ($object->fetch($id))
 				$obj = $db->fetch_object($resql);
 				$var=!$var;
 
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 				print '<td><a href="commande/fiche.php?id='.$obj->rowid.'">'.img_object($langs->trans("ShowOrder"),"order")." ".$obj->ref.'</a></td>';
 				print '<td align="center" width="80">';
 				if ($obj->dc)
diff --git a/htdocs/fourn/index.php b/htdocs/fourn/index.php
index b3475db0e43..49b71423b6b 100644
--- a/htdocs/fourn/index.php
+++ b/htdocs/fourn/index.php
@@ -83,7 +83,7 @@ if ($resql)
 		$row = $db->fetch_row($resql);
 		$var=!$var;
 
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		print '<td>'.$langs->trans($commande->statuts[$row[1]]).'</td>';
 		print '<td align="center">'.$row[0].'</td>';
 		print '<td align="center"><a href="'.DOL_URL_ROOT.'/fourn/commande/liste.php?statut='.$row[1].'">'.$commande->LibStatut($row[1],3).'</a></td>';
@@ -265,7 +265,7 @@ if ($resql)
 	{
 		$var=!$var;
 
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		print '<td><a href="fiche.php?socid='.$obj->socid.'">'.img_object($langs->trans("ShowSupplier"),"company").'</a>';
 		print "&nbsp;<a href=\"fiche.php?socid=".$obj->socid."\">".$obj->nom."</a></td>\n";
 		print '<td align="left">'.$obj->code_fournisseur.'&nbsp;</td>';
@@ -301,7 +301,7 @@ if (count($companystatic->SupplierCategories))
 	foreach ($companystatic->SupplierCategories as $rowid => $label)
 	{
 		$var=!$var;
-		print "<tr $bc[$var]>\n";
+		print "<tr ".$bc[$var].">\n";
 		print '<td>';
 		$categstatic->id=$rowid;
 		$categstatic->ref=$label;
diff --git a/htdocs/fourn/product/index.php b/htdocs/fourn/product/index.php
index f9f3d0585f3..91560079688 100644
--- a/htdocs/fourn/product/index.php
+++ b/htdocs/fourn/product/index.php
@@ -124,7 +124,7 @@ if ($resql)
 	{
 	  $objp = $db->fetch_object($resql);
 	  $var=!$var;
-	  print "<tr $bc[$var]>";
+	  print "<tr ".$bc[$var].">";
 	  print "<td><a href=\"fiche.php?id=$objp->rowid\">";
 	  if ($objp->fk_product_type==1) print img_object($langs->trans("ShowService"),"service");
 	  else print img_object($langs->trans("ShowProduct"),"product");
diff --git a/htdocs/fourn/product/liste.php b/htdocs/fourn/product/liste.php
index 3f8b3ed0353..fd9bd404d5a 100644
--- a/htdocs/fourn/product/liste.php
+++ b/htdocs/fourn/product/liste.php
@@ -216,7 +216,7 @@ if ($resql)
 	{
 		$objp = $db->fetch_object($resql);
 		$var=!$var;
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 
 		print '<td>';
 		$productstatic->id=$objp->rowid;
diff --git a/htdocs/fourn/recap-fourn.php b/htdocs/fourn/recap-fourn.php
index 63beb01eff4..e0869fede6f 100644
--- a/htdocs/fourn/recap-fourn.php
+++ b/htdocs/fourn/recap-fourn.php
@@ -136,7 +136,7 @@ if ($socid > 0)
                 $totalpaye = $fac->getSommePaiement();
 
                 $var=!$var;
-                print "<tr $bc[$var]>";
+                print "<tr ".$bc[$var].">";
 
                 print "<td align=\"center\">".dol_print_date($fac->date)."</td>\n";
                 print "<td><a href=\"facture/fiche.php?facid=$fac->id\">".img_object($langs->trans("ShowBill"),"bill")." ".$fac->ref."</a></td>\n";
@@ -172,7 +172,7 @@ if ($socid > 0)
                     {
                         $objp = $db->fetch_object($resqlp);
                         //$var=!$var;
-                        print "<tr $bc[$var]>";
+                        print "<tr ".$bc[$var].">";
                         print '<td align="center">'.dol_print_date($db->jdate($objp->dp))."</td>\n";
                         print '<td>';
                         print '&nbsp; &nbsp; &nbsp; '; // Decalage
diff --git a/htdocs/livraison/fiche.php b/htdocs/livraison/fiche.php
index 2849daa9c67..3012439a697 100644
--- a/htdocs/livraison/fiche.php
+++ b/htdocs/livraison/fiche.php
@@ -327,7 +327,7 @@ if ($action == 'create')
 
 			$line = $commande->lines[$i];
 			$var=!$var;
-			print "<tr $bc[$var]>\n";
+			print "<tr ".$bc[$var].">\n";
 			if ($line->fk_product > 0)
 			{
 				$product->fetch($line->fk_product);
@@ -597,7 +597,7 @@ else
 			{
 				$var=!$var;
 
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 				if ($delivery->lines[$i]->fk_product > 0)
 				{
 					$product = new Product($db);
diff --git a/htdocs/margin/agentMargins.php b/htdocs/margin/agentMargins.php
index 718dea6f6d6..9bf75d0a332 100644
--- a/htdocs/margin/agentMargins.php
+++ b/htdocs/margin/agentMargins.php
@@ -209,7 +209,7 @@ if ($result)
 
 			$var=!$var;
 
-			print "<tr $bc[$var]>";
+			print "<tr ".$bc[$var].">";
 			if ($agentid > 0) {
 				$companystatic->id=$objp->socid;
 				$companystatic->nom=$objp->nom;
diff --git a/htdocs/margin/customerMargins.php b/htdocs/margin/customerMargins.php
index e92192c0d71..9ce32a701cb 100644
--- a/htdocs/margin/customerMargins.php
+++ b/htdocs/margin/customerMargins.php
@@ -228,7 +228,7 @@ if ($result)
 
 			$var=!$var;
 
-			print "<tr $bc[$var]>";
+			print "<tr ".$bc[$var].">";
 			if ($client) {
         print '<td>';
   			$invoicestatic->id=$objp->facid;
diff --git a/htdocs/margin/tabs/productMargins.php b/htdocs/margin/tabs/productMargins.php
index 55a13e83094..052529ac10d 100644
--- a/htdocs/margin/tabs/productMargins.php
+++ b/htdocs/margin/tabs/productMargins.php
@@ -195,7 +195,7 @@ if ($id > 0 || ! empty($ref))
 
 					$marginRate = ($objp->buying_price != 0)?(100 * round($objp->marge / $objp->buying_price, 5)):'' ;
 					$markRate = ($objp->selling_price != 0)?(100 * round($objp->marge / $objp->selling_price, 5)):'' ;
-					print "<tr $bc[$var]>";
+					print "<tr ".$bc[$var].">";
 					print '<td>';
 					$invoicestatic->id=$objp->facid;
 					$invoicestatic->ref=$objp->facnumber;
diff --git a/htdocs/margin/tabs/thirdpartyMargins.php b/htdocs/margin/tabs/thirdpartyMargins.php
index 04ac4d65d64..1debb94b021 100644
--- a/htdocs/margin/tabs/thirdpartyMargins.php
+++ b/htdocs/margin/tabs/thirdpartyMargins.php
@@ -190,7 +190,7 @@ if ($socid > 0)
 
 					$var=!$var;
 
-					print "<tr $bc[$var]>";
+					print "<tr ".$bc[$var].">";
 					print '<td>';
 					$invoicestatic->id=$objp->facid;
 					$invoicestatic->ref=$objp->facnumber;
diff --git a/htdocs/product/popuprop.php b/htdocs/product/popuprop.php
index dd7798a9045..5404dd1848a 100644
--- a/htdocs/product/popuprop.php
+++ b/htdocs/product/popuprop.php
@@ -140,7 +140,7 @@ if ($result)
 		}
 
 		$var=!$var;
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		print '<td><a href="'.DOL_URL_ROOT.'/product/stats/fiche.php?id='.$objp->rowid.'">';
 		if ($objp->type==1) print img_object($langs->trans("ShowService"),"service");
 		else print img_object($langs->trans("ShowProduct"),"product");
diff --git a/htdocs/product/price.php b/htdocs/product/price.php
index 240844b9f4d..c8e3d262c21 100644
--- a/htdocs/product/price.php
+++ b/htdocs/product/price.php
@@ -723,7 +723,7 @@ if ($result)
 		{
 			$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/product/stats/commande.php b/htdocs/product/stats/commande.php
index 55ba1e506d2..ca337e00b86 100644
--- a/htdocs/product/stats/commande.php
+++ b/htdocs/product/stats/commande.php
@@ -162,7 +162,7 @@ if ($id > 0 || ! empty($ref))
 					$objp = $db->fetch_object($result);
 					$var=!$var;
 
-					print "<tr $bc[$var]>";
+					print "<tr ".$bc[$var].">";
 					print '<td><a href="'.DOL_URL_ROOT.'/commande/fiche.php?id='.$objp->commandeid.'">'.img_object($langs->trans("ShowOrder"),"order").' ';
 					print $objp->ref;
 					print "</a></td>\n";
diff --git a/htdocs/product/stats/commande_fournisseur.php b/htdocs/product/stats/commande_fournisseur.php
index b8b6d7fed65..d240c256111 100644
--- a/htdocs/product/stats/commande_fournisseur.php
+++ b/htdocs/product/stats/commande_fournisseur.php
@@ -155,7 +155,7 @@ if ($id > 0 || ! empty($ref))
 					$objp = $db->fetch_object($result);
 					$var=!$var;
 
-					print "<tr $bc[$var]>";
+					print "<tr ".$bc[$var].">";
 					print '<td><a href="'.DOL_URL_ROOT.'/fourn/commande/fiche.php?id='.$objp->commandeid.'">'.img_object($langs->trans("ShowOrder"),"order").' ';
 					print $objp->ref;
 					print "</a></td>\n";
diff --git a/htdocs/product/stats/contrat.php b/htdocs/product/stats/contrat.php
index bfa2b65bcdf..8c5a76e1ac9 100644
--- a/htdocs/product/stats/contrat.php
+++ b/htdocs/product/stats/contrat.php
@@ -169,7 +169,7 @@ if ($id > 0 || ! empty($ref))
 					$objp = $db->fetch_object($result);
 					$var=!$var;
 
-					print "<tr $bc[$var]>";
+					print "<tr ".$bc[$var].">";
 					print '<td><a href="'.DOL_URL_ROOT.'/contrat/fiche.php?id='.$objp->rowid.'">'.img_object($langs->trans("ShowContract"),"contract").' ';
 					print $objp->rowid;
 					print "</a></td>\n";
diff --git a/htdocs/product/stats/facture.php b/htdocs/product/stats/facture.php
index 932dd22af82..1265ea13962 100644
--- a/htdocs/product/stats/facture.php
+++ b/htdocs/product/stats/facture.php
@@ -164,7 +164,7 @@ if ($id > 0 || ! empty($ref))
 					$objp = $db->fetch_object($result);
 					$var=!$var;
 
-					print "<tr $bc[$var]>";
+					print "<tr ".$bc[$var].">";
 					print '<td>';
 					$invoicestatic->id=$objp->facid;
 					$invoicestatic->ref=$objp->facnumber;
diff --git a/htdocs/product/stats/facture_fournisseur.php b/htdocs/product/stats/facture_fournisseur.php
index f4b1cb8620a..4c520bd292d 100644
--- a/htdocs/product/stats/facture_fournisseur.php
+++ b/htdocs/product/stats/facture_fournisseur.php
@@ -164,7 +164,7 @@ if ($id > 0 || ! empty($ref))
                     $objp = $db->fetch_object($result);
                     $var=!$var;
 
-                    print "<tr $bc[$var]>";
+                    print "<tr ".$bc[$var].">";
                     print '<td>';
                     $supplierinvoicestatic->id=$objp->facid;
                     $supplierinvoicestatic->ref=$objp->facnumber;
diff --git a/htdocs/product/stock/index.php b/htdocs/product/stock/index.php
index a25e1e4357d..7f8e7f0766c 100644
--- a/htdocs/product/stock/index.php
+++ b/htdocs/product/stock/index.php
@@ -88,7 +88,7 @@ if ($result)
         {
             $objp = $db->fetch_object($result);
             $var=!$var;
-            print "<tr $bc[$var]>";
+            print "<tr ".$bc[$var].">";
             print "<td><a href=\"fiche.php?id=$objp->rowid\">".img_object($langs->trans("ShowStock"),"stock")." ".$objp->label."</a></td>\n";
             print '<td align="right">'.$entrepot->LibStatut($objp->statut,5).'</td>';
             print "</tr>\n";
@@ -144,7 +144,7 @@ if ($resql)
 	{
 		$objp = $db->fetch_object($resql);
 		$var=!$var;
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		print '<td>'.dol_print_date($db->jdate($objp->datem),'dayhour').'</td>';
 		print "<td><a href=\"../fiche.php?id=$objp->rowid\">";
 		print img_object($langs->trans("ShowProduct"),"product").' '.$objp->produit;
diff --git a/htdocs/product/stock/liste.php b/htdocs/product/stock/liste.php
index bde0c3e1858..55e6f858124 100644
--- a/htdocs/product/stock/liste.php
+++ b/htdocs/product/stock/liste.php
@@ -87,7 +87,7 @@ if ($result)
 		{
 			$objp = $db->fetch_object($result);
 			$var=!$var;
-			print "<tr $bc[$var]>";
+			print "<tr ".$bc[$var].">";
 			print '<td><a href="fiche.php?id='.$objp->rowid.'">'.img_object($langs->trans("ShowWarehouse"),'stock').' '.$objp->ref.'</a></td>';
 			print '<td>'.$objp->lieu.'</td>';
 			print '<td align="right">'.$entrepot->LibStatut($objp->statut,5).'</td>';
diff --git a/htdocs/product/stock/mouvement.php b/htdocs/product/stock/mouvement.php
index a5de7d9bb3d..89b7f83d576 100644
--- a/htdocs/product/stock/mouvement.php
+++ b/htdocs/product/stock/mouvement.php
@@ -444,7 +444,7 @@ if ($resql)
     {
         $objp = $db->fetch_object($resql);
         $var=!$var;
-        print "<tr $bc[$var]>";
+        print "<tr ".$bc[$var].">";
         // Id movement
         //print '<td>'.$objp->mid.'</td>';	// This is primary not movement id
         // Date
diff --git a/htdocs/product/stock/valo.php b/htdocs/product/stock/valo.php
index 4b30b01ad69..e7d782ae5e0 100644
--- a/htdocs/product/stock/valo.php
+++ b/htdocs/product/stock/valo.php
@@ -103,7 +103,7 @@ if ($result)
         while ($i < min($num,$limit))
         {
             $objp = $db->fetch_object($result);
-            print "<tr $bc[$var]>";
+            print "<tr ".$bc[$var].">";
             print '<td><a href="fiche.php?id='.$objp->ref.'">'.img_object($langs->trans("ShowWarehouse"),'stock').' '.$objp->label.'</a></td>';
             print '<td>'.$objp->lieu.'</td>';
             // PMP value
diff --git a/htdocs/projet/activity/index.php b/htdocs/projet/activity/index.php
index f011c39f63c..1a2f6603d1d 100644
--- a/htdocs/projet/activity/index.php
+++ b/htdocs/projet/activity/index.php
@@ -100,7 +100,7 @@ if ( $resql )
 	while ($row = $db->fetch_object($resql))
 	{
 		$var=!$var;
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		print '<td>';
 		$projectstatic->id=$row->rowid;
 		$projectstatic->ref=$row->ref;
@@ -155,7 +155,7 @@ if ( $resql )
 	while ($row = $db->fetch_object($resql))
 	{
 		$var=!$var;
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		print '<td>';
 		$projectstatic->id=$row->rowid;
 		$projectstatic->ref=$row->ref;
@@ -267,7 +267,7 @@ if ( $resql )
 
 	while ($row = $db->fetch_object($resql))
 	{
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		print '<td>';
 		$projectstatic->id=$row->rowid;
 		$projectstatic->ref=$row->ref;
@@ -310,7 +310,7 @@ if ( $resql )
 {
 	while ($row = $db->fetch_object($resql))
 	{
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		print '<td>';
 		$projectstatic->id=$row->rowid;
 		$projectstatic->ref=$row->ref;
diff --git a/htdocs/projet/element.php b/htdocs/projet/element.php
index 51e8c47da7a..33b83b27fae 100644
--- a/htdocs/projet/element.php
+++ b/htdocs/projet/element.php
@@ -252,7 +252,7 @@ foreach ($listofreferent as $key => $value)
 				//print $classname;
 
 				$var=!$var;
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 
 				// Ref
 				print '<td align="left">';
diff --git a/htdocs/projet/index.php b/htdocs/projet/index.php
index 112816c9204..6b1c0e7be9b 100644
--- a/htdocs/projet/index.php
+++ b/htdocs/projet/index.php
@@ -105,7 +105,7 @@ if ( $resql )
 	{
 		$obj = $db->fetch_object($resql);
 		$var=!$var;
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		print '<td class="nowrap">';
 		if ($obj->socid)
 		{
@@ -182,7 +182,7 @@ if ( $resql )
 			$username = $userstatic->getNomUrl(0,0);
 		}
 
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		print '<td>'.$username.'</td>';
 		print '<td><a href="'.DOL_URL_ROOT.'/projet/fiche.php?id="'.$obj->projectid.'">'.$obj->title.'</a></td>';
 		print '<td><a href="'.DOL_URL_ROOT.'/projet/tasks/task.php?id='.$obj->taskid.'&withproject=1">'.$obj->label.'</a></td>';
diff --git a/htdocs/projet/tasks/contact.php b/htdocs/projet/tasks/contact.php
index 5f8fd84c6e4..80ddc0cd178 100644
--- a/htdocs/projet/tasks/contact.php
+++ b/htdocs/projet/tasks/contact.php
@@ -286,7 +286,7 @@ if ($id > 0 || ! empty($ref))
 			print '<input type="hidden" name="withproject" value="'.$withproject.'">';
 
 			// Ligne ajout pour contact interne
-			print "<tr $bc[$var]>";
+			print "<tr ".$bc[$var].">";
 
 			print '<td class="nowrap">';
 			print img_object('','user').' '.$langs->trans("Users");
@@ -319,7 +319,7 @@ if ($id > 0 || ! empty($ref))
 				print '<input type="hidden" name="id" value="'.$object->id.'">';
 
 				$var=!$var;
-				print "<tr $bc[$var]>";
+				print "<tr ".$bc[$var].">";
 
 				print '<td class="nowrap">';
 				print img_object('','contact').' '.$langs->trans("ThirdPartyContacts");
diff --git a/htdocs/public/members/public_list.php b/htdocs/public/members/public_list.php
index 971ad3dc449..968b1a30065 100644
--- a/htdocs/public/members/public_list.php
+++ b/htdocs/public/members/public_list.php
@@ -139,7 +139,7 @@ if ($result)
 	{
 		$objp = $db->fetch_object($result);
 		$var=!$var;
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		print '<td><a href="public_card.php?id='.$objp->rowid.'">'.dolGetFirstLastname($obj->firstname, $obj->lastname).($objp->societe?' / '.$objp->societe:'').'</a></td>'."\n";
 		//print "<td>$objp->birth</td>\n"; // est-ce nécessaire ??
 		print '<td>'.$objp->email.'</td>'."\n";
diff --git a/htdocs/societe/commerciaux.php b/htdocs/societe/commerciaux.php
index a4f1dee5a7b..d638db9d191 100644
--- a/htdocs/societe/commerciaux.php
+++ b/htdocs/societe/commerciaux.php
@@ -251,7 +251,7 @@ if ($_GET["socid"])
 			{
 				$obj = $db->fetch_object($resql);
 				$var=!$var;
-				print "<tr $bc[$var]><td>";
+				print "<tr ".$bc[$var]."><td>";
 				print '<a href="'.DOL_URL_ROOT.'/user/fiche.php?id='.$obj->rowid.'">';
 				print img_object($langs->trans("ShowUser"),"user").' ';
 				print dolGetFirstLastname($obj->firstname, $obj->lastname)."\n";
diff --git a/htdocs/societe/index.php b/htdocs/societe/index.php
index 66cbb3e2523..0765fe2eacb 100644
--- a/htdocs/societe/index.php
+++ b/htdocs/societe/index.php
@@ -195,7 +195,7 @@ if ($result)
             $objp = $db->fetch_object($result);
 
             $var=!$var;
-            print "<tr $bc[$var]>";
+            print "<tr ".$bc[$var].">";
             // Name
             print '<td class="nowrap">';
             $thirdparty_static->id=$objp->rowid;
diff --git a/htdocs/societe/societe.php b/htdocs/societe/societe.php
index bc01bcefd7d..8253c98860d 100644
--- a/htdocs/societe/societe.php
+++ b/htdocs/societe/societe.php
@@ -385,7 +385,7 @@ if ($resql)
 	{
 		$obj = $db->fetch_object($resql);
 		$var=!$var;
-		print "<tr $bc[$var]><td>";
+		print "<tr ".$bc[$var]."><td>";
 		$companystatic->id=$obj->rowid;
 		$companystatic->name=$obj->name;
 		$companystatic->canvas=$obj->canvas;
diff --git a/htdocs/user/group/fiche.php b/htdocs/user/group/fiche.php
index 201922e7a87..ff7028ab2cf 100644
--- a/htdocs/user/group/fiche.php
+++ b/htdocs/user/group/fiche.php
@@ -420,7 +420,7 @@ else
             	{
             		$var=!$var;
 
-            		print "<tr $bc[$var]>";
+            		print "<tr ".$bc[$var].">";
             		print '<td>';
             		print '<a href="'.DOL_URL_ROOT.'/user/fiche.php?id='.$useringroup->id.'">'.img_object($langs->trans("ShowUser"),"user").' '.$useringroup->login.'</a>';
             		if ($useringroup->admin  && ! $useringroup->entity) print img_picto($langs->trans("SuperAdministrator"),'redstar');
diff --git a/htdocs/user/group/index.php b/htdocs/user/group/index.php
index d100c9b3778..82d81b14bee 100644
--- a/htdocs/user/group/index.php
+++ b/htdocs/user/group/index.php
@@ -100,7 +100,7 @@ if ($resql)
         $obj = $db->fetch_object($resql);
         $var=!$var;
 
-        print "<tr $bc[$var]>";
+        print "<tr ".$bc[$var].">";
         print '<td><a href="fiche.php?id='.$obj->rowid.'">'.img_object($langs->trans("ShowGroup"),"group").' '.$obj->nom.'</a>';
         if (! $obj->entity)
         {
diff --git a/htdocs/user/home.php b/htdocs/user/home.php
index 33e80336e95..a8a62df999a 100644
--- a/htdocs/user/home.php
+++ b/htdocs/user/home.php
@@ -128,7 +128,7 @@ if ($resql)
 		$obj = $db->fetch_object($resql);
 		$var=!$var;
 
-		print "<tr $bc[$var]>";
+		print "<tr ".$bc[$var].">";
 		print '<td><a href="'.DOL_URL_ROOT.'/user/fiche.php?id='.$obj->rowid.'">'.img_object($langs->trans("ShowUser"),"user").' '.dolGetFirstLastname($obj->firstname,$obj->lastname).'</a>';
 		if (! empty($conf->multicompany->enabled) && $obj->admin && ! $obj->entity)
 		{
@@ -225,7 +225,7 @@ if ($canreadperms)
 			$obj = $db->fetch_object($resql);
 			$var=!$var;
 
-			print "<tr $bc[$var]>";
+			print "<tr ".$bc[$var].">";
 			print '<td><a href="'.DOL_URL_ROOT.'/user/group/fiche.php?id='.$obj->rowid.'">'.img_object($langs->trans("ShowGroup"),"group").' '.$obj->nom.'</a>';
 			if (! $obj->entity)
 			{
diff --git a/htdocs/user/index.php b/htdocs/user/index.php
index 479f156e343..d5b34808b8f 100644
--- a/htdocs/user/index.php
+++ b/htdocs/user/index.php
@@ -112,7 +112,7 @@ if ($result)
         $obj = $db->fetch_object($result);
         $var=!$var;
 
-        print "<tr $bc[$var]>";
+        print "<tr ".$bc[$var].">";
         print '<td><a href="fiche.php?id='.$obj->rowid.'">'.img_object($langs->trans("ShowUser"),"user").' '.$obj->login.'</a>';
         if (! empty($conf->multicompany->enabled) && $obj->admin && ! $obj->entity)
         {
-- 
GitLab