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 '