Ajout picto statut commande sur page liste

This commit is contained in:
Laurent Destailleur 2006-05-06 00:17:53 +00:00
parent 584cbd96bc
commit 8a17d1ddeb
2 changed files with 3 additions and 12 deletions

View File

@ -167,16 +167,7 @@ if ($resql)
print '<td><a href="fiche.php?id='.$objp->rowid.'">'.img_object($langs->trans('ShowOrder'),'order').' '.$objp->ref.'</a></td>';
print '<td><a href="../comm/fiche.php?socid='.$objp->idp.'">'.img_object($langs->trans('ShowCompany'),'company').' '.$objp->nom.'</a></td>';
print '<td>'.$objp->ref_client.'</td>';
$now = time();
$lim = 3600 * 24 * 15 ;
if ( ($now - $objp->date_commande) > $lim && $objp->statutid == 1 )
{
print '<td><b> &gt; 15 jours</b></td>';
}
else
{
print '<td>&nbsp;</td>';
}
print '<td>&nbsp;</td>';
print '<td align="right">';
$y = strftime('%Y',$objp->date_commande);
$m = strftime('%m',$objp->date_commande);

View File

@ -113,7 +113,7 @@ if ($resql)
print_liste_field_titre($langs->trans("Ref"),"liste.php","c.ref","",$param,'',$sortfield);
print_liste_field_titre($langs->trans("Company"),"liste.php","s.nom","",$param,'',$sortfield);
print_liste_field_titre($langs->trans("Date"),"liste.php","c.date_commande","",$param, 'align="center"',$sortfield);
print_liste_field_titre($langs->trans("Status"),"liste.php","c.fk_statut","",$param,'align="center"',$sortfield);
print_liste_field_titre($langs->trans("Status"),"liste.php","c.fk_statut","",$param,'align="right"',$sortfield);
print "</tr>\n";
$var=True;
@ -143,7 +143,7 @@ if ($resql)
print " <a href=\"liste.php?year=$y\">";
print strftime("%Y",$objp->date_commande)."</a></td>\n";
print '<td align="center">'.$generic_commande->statuts[$objp->fk_statut].'</td>';
print '<td align="right">'.$generic_commande->LibStatut($objp->fk_statut,5).'</td>';
print "</tr>\n";
$total = $total + $objp->price;