From 9451fb6109f900378d8cfc4968714d96ce1dc49a Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 27 Nov 2003 10:19:38 +0000 Subject: [PATCH] Ajout du lien Aide et des statuts pour chaque ligne --- htdocs/expedition/liste.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/htdocs/expedition/liste.php b/htdocs/expedition/liste.php index 681c9ff1ed9..4da9a6f12fb 100644 --- a/htdocs/expedition/liste.php +++ b/htdocs/expedition/liste.php @@ -44,7 +44,7 @@ if ($user->societe_id > 0) /* Fin des Actions */ /******************************************************************************/ -llxHeader(); +llxHeader('','Liste des expéditions','ch-expedition.html'); if ($_GET["sortfield"] == "") { @@ -60,7 +60,7 @@ $offset = $limit * $_GET["page"] ; $pageprev = $_GET["page"] - 1; $pagenext = $_GET["page"] + 1; -$sql = "SELECT e.rowid, e.ref,".$db->pdate("e.date_expedition")." as date_expedition" ; +$sql = "SELECT e.rowid, e.ref,".$db->pdate("e.date_expedition")." as date_expedition, e.fk_statut" ; $sql .= " FROM llx_expedition as e "; $sql_add = " WHERE "; if ($socidp) @@ -74,6 +74,8 @@ if (strlen($HTTP_POST_VARS["sf_ref"]) > 0) $sql .= $sql_add . " e.ref like '%".$HTTP_POST_VARS["sf_ref"] . "%'"; } +$expedition = new Expedition($db); + $sql .= " ORDER BY $sortfield $sortorder"; $sql .= $db->plimit($limit + 1,$offset); @@ -87,11 +89,11 @@ if ( $db->query($sql) ) print ''; - print_liste_field_titre_new ("Réf",$PHP_SELF,"p.ref","","&socidp=$socidp",'width="15%"',$sortfield); + print_liste_field_titre_new ("Réf",$PHP_SELF,"e.ref","","&socidp=$socidp",'width="15%"',$sortfield); - print_liste_field_titre_new ("Date",$PHP_SELF,"c.date_expedition","","&socidp=$socidp", 'width="25%" align="right" colspan="2"',$sortfield); + print_liste_field_titre_new ("Date",$PHP_SELF,"e.date_expedition","","&socidp=$socidp", 'width="25%" align="right" colspan="2"',$sortfield); - print_liste_field_titre_new ("Statut",$PHP_SELF,"p.fk_statut","","&socidp=$socidp",'width="10%" align="center"',$sortfield); + print_liste_field_titre_new ("Statut",$PHP_SELF,"e.fk_statut","","&socidp=$socidp",'width="10%" align="center"',$sortfield); print "\n"; $var=True; @@ -125,7 +127,7 @@ if ( $db->query($sql) ) print " "; print strftime("%Y",$objp->date_expedition)."\n"; - print ''.$objp->statut.''; + print ''.$expedition->statuts[$objp->fk_statut].''; print "\n"; $i++;