Modif gestion des variables dans l'url
This commit is contained in:
parent
19b03e5427
commit
822b421f92
@ -46,12 +46,10 @@ if ($sortorder == "")
|
|||||||
$sortorder="DESC";
|
$sortorder="DESC";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($page == -1) { $page = 0 ; }
|
|
||||||
|
|
||||||
$limit = $conf->liste_limit;
|
$limit = $conf->liste_limit;
|
||||||
$offset = $limit * $page ;
|
$offset = $limit * $_GET["page"] ;
|
||||||
$pageprev = $page - 1;
|
$pageprev = $_GET["page"] - 1;
|
||||||
$pagenext = $page + 1;
|
$pagenext = $_GET["page"] + 1;
|
||||||
|
|
||||||
$sql = "SELECT s.nom, s.idp, c.rowid, c.ref, c.total_ht,".$db->pdate("c.date_commande")." as date_commande, c.fk_statut" ;
|
$sql = "SELECT s.nom, s.idp, c.rowid, c.ref, c.total_ht,".$db->pdate("c.date_commande")." as date_commande, c.fk_statut" ;
|
||||||
$sql .= " FROM llx_societe as s, llx_commande as c WHERE c.fk_soc = s.idp";
|
$sql .= " FROM llx_societe as s, llx_commande as c WHERE c.fk_soc = s.idp";
|
||||||
@ -81,7 +79,7 @@ $sql .= $db->plimit($limit + 1,$offset);
|
|||||||
if ( $db->query($sql) )
|
if ( $db->query($sql) )
|
||||||
{
|
{
|
||||||
$num = $db->num_rows();
|
$num = $db->num_rows();
|
||||||
print_barre_liste("Commandes", $page, $PHP_SELF,"&socidp=$socidp",$sortfield,$sortorder,'',$num);
|
print_barre_liste("Commandes", $_GET["page"], $PHP_SELF,"&socidp=$socidp",$sortfield,$sortorder,'',$num);
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
print '<TABLE border="0" width="100%" cellspacing="0" cellpadding="4">';
|
print '<TABLE border="0" width="100%" cellspacing="0" cellpadding="4">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user