From 9e98581e8095f6cabe79237a6be0ca5efcd68cea Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 19 Nov 2003 15:10:10 +0000 Subject: [PATCH] Ajout statut de l'entrepot dans la liste --- htdocs/product/stock/index.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/htdocs/product/stock/index.php b/htdocs/product/stock/index.php index 82b7021e5c1..01df43c901f 100644 --- a/htdocs/product/stock/index.php +++ b/htdocs/product/stock/index.php @@ -33,11 +33,14 @@ print_titre("Stocks"); print ''; print '"; - print "\n"; + print ""; + print "\n"; + print ''; print "\n"; $i++; }
'; -$sql = "SELECT e.label, e.rowid FROM llx_entrepot as e"; -$sql .= " ORDER BY e.label DESC "; +$sql = "SELECT e.label, e.rowid, e.statut FROM llx_entrepot as e"; +$sql .= " ORDER BY e.statut DESC "; $sql .= $db->plimit(15 ,0); $result = $db->query($sql) ; +$statuts[0] = "Fermé"; +$statuts[1] = "Ouvert"; + if ($result) { $num = $db->num_rows(); @@ -55,8 +58,9 @@ if ($result) { $objp = $db->fetch_object( $i); $var=!$var; - print "
rowid\">$objp->label
rowid\">$objp->label'.$statuts[$objp->statut].'