Synchro
@ -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++;
|
||||
}
|
||||
|
||||
@ -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 ' <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 ' <a href="'.DOL_URL_ROOT.'/fourn/fiche.php?socid='.$obj->idp.'">'.$obj->nom.'</a></td>'."\n";
|
||||
|
||||
BIN
htdocs/fourn/commande/statut0.png
Normal file
|
After Width: | Height: | Size: 198 B |
BIN
htdocs/fourn/commande/statut1.png
Normal file
|
After Width: | Height: | Size: 221 B |
BIN
htdocs/fourn/commande/statut2.png
Normal file
|
After Width: | Height: | Size: 197 B |
BIN
htdocs/fourn/commande/statut3.png
Normal file
|
After Width: | Height: | Size: 191 B |
BIN
htdocs/fourn/commande/statut4.png
Normal file
|
After Width: | Height: | Size: 227 B |
BIN
htdocs/fourn/commande/statut5.png
Normal file
|
After Width: | Height: | Size: 193 B |
BIN
htdocs/fourn/commande/statut9.png
Normal file
|
After Width: | Height: | Size: 193 B |