This commit is contained in:
Rodolphe Quiedeville 2004-11-29 16:48:07 +00:00
parent db816d1dd5
commit b4d6de12f1
9 changed files with 6 additions and 6 deletions

View File

@ -39,7 +39,7 @@ print_barre_liste("Commandes fournisseurs", $page, "index.php", "", $sortfield,
print '<table class="noborder" width="100%">';
print '<tr><td width="30%">';
$sql = "SELECT count(cf.rowid)";
$sql = "SELECT count(cf.rowid), fk_statut";
$sql .= " ,cf.rowid,cf.ref";
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s ";
$sql .= " , ".MAIN_DB_PREFIX."commande_fournisseur as cf";
@ -57,7 +57,7 @@ if ($result)
$i = 0;
print '<table class="liste" width="100%">';
print '<tr class="liste_titre">Nb</td>';
print '<tr class="liste_titre"><td>Statut</td><td align="center">Nb</td>';
print "</tr>\n";
$var=True;
@ -67,8 +67,8 @@ if ($result)
$var=!$var;
print "<tr $bc[$var]>";
print '<td>'.$row[0].'</td>';
print '<td><img src="statut'.$row[1].'.png"></td>';
print '<td align="center">'.$row[0].'</td>';
print "</tr>\n";
$i++;
}

View File

@ -64,7 +64,7 @@ $pagenext = $page + 1;
*/
$sql = "SELECT s.idp, s.nom, s.ville, ".$db->pdate("s.datea")." as datea";
$sql .= " ,cf.rowid,cf.ref";
$sql .= " ,cf.rowid,cf.ref, cf.fk_statut";
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s ";
$sql .= " , ".MAIN_DB_PREFIX."commande_fournisseur as cf";
$sql .= " WHERE cf.fk_soc = s.idp ";
@ -104,7 +104,7 @@ if ($result)
$var=!$var;
print "<tr $bc[$var]>";
print '<td><a href="'.DOL_URL_ROOT.'/fourn/commande/fiche.php?id='.$obj->rowid.'">'.img_file().'</a>';
print '<td><img src="statut'.$obj->fk_statut.'.png">';
print '&nbsp;<a href="'.DOL_URL_ROOT.'/fourn/commande/fiche.php?id='.$obj->rowid.'">'.$obj->ref.'</a></td>'."\n";
print '<td><a href="'.DOL_URL_ROOT.'/fourn/fiche.php?socid='.$obj->idp.'">'.img_file().'</a>';
print '&nbsp;<a href="'.DOL_URL_ROOT.'/fourn/fiche.php?socid='.$obj->idp.'">'.$obj->nom.'</a></td>'."\n";

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 B