Fix: Le tri sur la liste des expéditions ne fonctionnait pas
This commit is contained in:
parent
93b34b5989
commit
d2310f9d6c
@ -24,7 +24,7 @@
|
|||||||
/**
|
/**
|
||||||
\file htdocs/expedition/liste.php
|
\file htdocs/expedition/liste.php
|
||||||
\ingroup expedition
|
\ingroup expedition
|
||||||
\brief Page de la liste des propositions commerciales
|
\brief Page de la liste des expéditions/livraisons
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
@ -35,7 +35,6 @@ $user->getrights('expedition');
|
|||||||
if (!$user->rights->expedition->lire)
|
if (!$user->rights->expedition->lire)
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sécurité accés client
|
* Sécurité accés client
|
||||||
*/
|
*/
|
||||||
@ -45,22 +44,24 @@ if ($user->societe_id > 0)
|
|||||||
$socidp = $user->societe_id;
|
$socidp = $user->societe_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$sortfield=isset($_GET["sortfield"])?$_GET["sortfield"]:"";
|
||||||
/******************************************************************************/
|
$sortorder=isset($_GET["sortorder"])?$_GET["sortorder"]:"";
|
||||||
/* Fin des Actions */
|
|
||||||
/******************************************************************************/
|
|
||||||
|
|
||||||
llxHeader('','Liste des expéditions','ch-expedition.html');
|
|
||||||
|
|
||||||
if (! $sortfield) $sortfield="e.rowid";
|
if (! $sortfield) $sortfield="e.rowid";
|
||||||
if (! $sortorder) $sortorder="DESC";
|
if (! $sortorder) $sortorder="DESC";
|
||||||
|
|
||||||
|
|
||||||
$limit = $conf->liste_limit;
|
$limit = $conf->liste_limit;
|
||||||
$offset = $limit * $_GET["page"] ;
|
$offset = $limit * $_GET["page"] ;
|
||||||
$pageprev = $_GET["page"] - 1;
|
$pageprev = $_GET["page"] - 1;
|
||||||
$pagenext = $_GET["page"] + 1;
|
$pagenext = $_GET["page"] + 1;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/******************************************************************************/
|
||||||
|
/* Fin des Actions */
|
||||||
|
/******************************************************************************/
|
||||||
|
|
||||||
|
llxHeader('',$langs->trans('ListOfSendings'),'ch-expedition.html');
|
||||||
|
|
||||||
$sql = "SELECT e.rowid, e.ref,".$db->pdate("e.date_expedition")." as date_expedition, e.fk_statut" ;
|
$sql = "SELECT e.rowid, e.ref,".$db->pdate("e.date_expedition")." as date_expedition, e.fk_statut" ;
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."expedition as e ";
|
$sql .= " FROM ".MAIN_DB_PREFIX."expedition as e ";
|
||||||
$sql_add = " WHERE ";
|
$sql_add = " WHERE ";
|
||||||
@ -85,7 +86,7 @@ if ($resql)
|
|||||||
{
|
{
|
||||||
$num = $db->num_rows($resql);
|
$num = $db->num_rows($resql);
|
||||||
|
|
||||||
print_barre_liste($langs->trans("Sendings"), $_GET["page"], "liste.php","&socidp=$socidp",$sortfield,$sortorder,'',$num);
|
print_barre_liste($langs->trans('ListOfSendings'), $_GET["page"], "liste.php","&socidp=$socidp",$sortfield,$sortorder,'',$num);
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
@ -103,7 +104,7 @@ if ($resql)
|
|||||||
|
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print "<tr $bc[$var]>";
|
print "<tr $bc[$var]>";
|
||||||
print "<td><a href=\"fiche.php?id=$objp->rowid\">$objp->ref</a></td>\n";
|
print "<td><a href=\"fiche.php?id=$objp->rowid\">".img_object($langs->trans("ShowSending"),"sending").' '.$objp->ref."</a></td>\n";
|
||||||
|
|
||||||
$now = time();
|
$now = time();
|
||||||
$lim = 3600 * 24 * 15 ;
|
$lim = 3600 * 24 * 15 ;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user