From 8f91bf1aa2b2ed196252c2b0d0a4edf69210be93 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 10 Jul 2003 13:21:41 +0000 Subject: [PATCH] Modif affichage des curseurs de page --- htdocs/comm/propal.php3 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/comm/propal.php3 b/htdocs/comm/propal.php3 index 74a4db652de..2fa9927d2f2 100644 --- a/htdocs/comm/propal.php3 +++ b/htdocs/comm/propal.php3 @@ -646,8 +646,6 @@ if ($propalid) $pageprev = $page - 1; $pagenext = $page + 1; - print_barre_liste("Propositions commerciales", $page, $PHP_SELF,"&socidp=$socidp",$sortfield,$sortorder); - $sql = "SELECT s.nom, s.idp, p.rowid as propalid, p.price - p.remise as price, p.ref,".$db->pdate("p.datep")." as dp, c.label as statut, c.id as statutid"; $sql .= " FROM llx_societe as s, llx_propal as p, c_propalst as c WHERE p.fk_soc = s.idp AND p.fk_statut = c.id"; @@ -671,11 +669,14 @@ if ($propalid) } $sql .= " ORDER BY $sortfield $sortorder"; - $sql .= $db->plimit( $limit ,$offset); + $sql .= $db->plimit($limit + 1,$offset); if ( $db->query($sql) ) { $num = $db->num_rows(); + print_barre_liste("Propositions commerciales", $page, $PHP_SELF,"&socidp=$socidp",$sortfield,$sortorder,'',$num); + + $i = 0; print '';