';
print '| '.$langs->trans("UserWithApproveOrderGrant").' | ';
print "
\n";
- $var=True;
while ($i < $num)
{
$obj = $db->fetch_object($resql);
-
print '';
print '| ';
$userstatic->id=$obj->rowid;
@@ -329,10 +322,8 @@ if ($resql)
if ($num)
{
$i = 0;
- $var = True;
while ($i < $num)
{
-
$obj = $db->fetch_object($resql);
print ' |
';
@@ -398,11 +389,10 @@ print '| '.$langs->trans("OrdersToProcess").' ';
print ' | ';
diff --git a/htdocs/fourn/commande/orderstoinvoice.php b/htdocs/fourn/commande/orderstoinvoice.php
index 13a40d9fe64..4c229518eba 100644
--- a/htdocs/fourn/commande/orderstoinvoice.php
+++ b/htdocs/fourn/commande/orderstoinvoice.php
@@ -542,13 +542,12 @@ if (($action != 'create' && $action != 'add') && !$error) {
print ' |
';
- $var = True;
$generic_commande = new CommandeFournisseur($db);
- while ( $i < $num ) {
+ while ($i < $num) {
$objp = $db->fetch_object($resql);
- $var = ! $var;
- print '';
+
+ print '
';
print '| ';
$generic_commande->id = $objp->rowid;
diff --git a/htdocs/fourn/index.php b/htdocs/fourn/index.php
index e353739790d..033bcc63a2a 100644
--- a/htdocs/fourn/index.php
+++ b/htdocs/fourn/index.php
@@ -126,11 +126,10 @@ if (! empty($conf->fournisseur->enabled))
print ' | '.$langs->trans("DraftOrders").' '.$num.' |
';
$i = 0;
- $var = true;
while ($i < $num)
{
-
$obj = $db->fetch_object($resql);
+
print '| ';
$commandestatic->id=$obj->rowid;
$commandestatic->ref=$obj->ref;
@@ -183,7 +182,7 @@ if (! empty($conf->fournisseur->enabled) && $user->rights->fournisseur->facture-
print ' | '.$langs->trans("DraftBills").' '.$num.' |
';
$i = 0;
$tot_ttc = 0;
- $var = True;
+
while ($i < $num && $i < 20)
{
$obj = $db->fetch_object($resql);
@@ -256,12 +255,8 @@ if ($resql)
print ''.$langs->trans("DateModification")." | \n";
print "\n";
- $var=True;
-
while ($obj = $db->fetch_object($resql) )
{
-
-
print '';
print '| '.img_object($langs->trans("ShowSupplier"),"company").'';
print " socid."\">".$obj->name." | \n";
@@ -293,12 +288,10 @@ if (count($companystatic->SupplierCategories))
print '
| ';
print $langs->trans("Category");
print " |
\n";
- $var=True;
foreach ($companystatic->SupplierCategories as $rowid => $label)
{
-
- print "\n";
+ print '
'."\n";
print '| ';
$categstatic->id=$rowid;
$categstatic->ref=$label;
diff --git a/htdocs/product/stats/commande_fournisseur.php b/htdocs/product/stats/commande_fournisseur.php
index 4526af86f96..63bb9028a4e 100644
--- a/htdocs/product/stats/commande_fournisseur.php
+++ b/htdocs/product/stats/commande_fournisseur.php
@@ -220,12 +220,11 @@ if ($id > 0 || ! empty($ref)) {
print " |
\n";
if ($num > 0) {
- $var = True;
+
while ( $i < $num && $i < $conf->liste_limit ) {
$objp = $db->fetch_object($result);
- $var = ! $var;
- print '';
+ print '
';
print '| ';
$supplierorderstatic->id = $objp->commandeid;
$supplierorderstatic->ref = $objp->ref;
diff --git a/htdocs/product/stats/facture_fournisseur.php b/htdocs/product/stats/facture_fournisseur.php
index 47ca357b0cd..e17d03fe7e9 100644
--- a/htdocs/product/stats/facture_fournisseur.php
+++ b/htdocs/product/stats/facture_fournisseur.php
@@ -213,7 +213,6 @@ if ($id > 0 || ! empty($ref))
if ($num > 0)
{
- $var = True;
while ($i < $num && $i < $conf->liste_limit)
{
$objp = $db->fetch_object($result);
diff --git a/htdocs/product/stats/propal.php b/htdocs/product/stats/propal.php
index 3173a04ee55..36dcc945fe1 100644
--- a/htdocs/product/stats/propal.php
+++ b/htdocs/product/stats/propal.php
@@ -216,13 +216,11 @@ if ($id > 0 || ! empty($ref))
if ($num > 0)
{
- $var = True;
while ($i < $num && $i < $conf->liste_limit)
{
$objp = $db->fetch_object($result);
- $var = ! $var;
- print ' |
';
+ print '
';
print '| ';
$propalstatic->id=$objp->propalid;
$propalstatic->ref=$objp->ref;
diff --git a/htdocs/product/stats/supplier_proposal.php b/htdocs/product/stats/supplier_proposal.php
index a580685c768..587d024b4c4 100644
--- a/htdocs/product/stats/supplier_proposal.php
+++ b/htdocs/product/stats/supplier_proposal.php
@@ -216,13 +216,11 @@ if ($id > 0 || ! empty($ref))
if ($num > 0)
{
- $var = True;
while ($i < $num && $i < $conf->liste_limit)
{
$objp = $db->fetch_object($result);
- $var = ! $var;
- print ' |
';
+ print '
';
print '| ';
$propalstatic->id=$objp->propalid;
$propalstatic->ref=$objp->ref;
diff --git a/htdocs/societe/price.php b/htdocs/societe/price.php
index f1b6b572b35..e35cf186ae3 100644
--- a/htdocs/societe/price.php
+++ b/htdocs/societe/price.php
@@ -452,11 +452,9 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
print ' | | ';
print '
';
- $var = True;
-
foreach ( $prodcustprice->lines as $line ) {
- print '';
+ print '
';
$staticprod = new Product($db);
$staticprod->fetch($line->fk_product);
@@ -558,11 +556,9 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
if (count($prodcustprice->lines) > 0)
{
- $var = False;
-
foreach ($prodcustprice->lines as $line)
{
- print "
";
+ print '
';
$staticprod = new Product($db);
$staticprod->fetch($line->fk_product);
diff --git a/htdocs/supplier_proposal/index.php b/htdocs/supplier_proposal/index.php
index 68a575c5df8..17565e7f140 100644
--- a/htdocs/supplier_proposal/index.php
+++ b/htdocs/supplier_proposal/index.php
@@ -184,11 +184,10 @@ if (! empty($conf->supplier_proposal->enabled))
if ($num)
{
$i = 0;
- $var = True;
while ($i < $num)
{
-
$obj = $db->fetch_object($resql);
+
print '
';
$supplier_proposalstatic->id=$obj->rowid;
@@ -242,10 +241,8 @@ if ($resql)
if ($num)
{
$i = 0;
- $var = True;
while ($i < $num)
{
-
$obj = $db->fetch_object($resql);
print '
';