From 900aa9ec958fac3576af4e13905f18ee2c83e6d4 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sat, 7 Feb 2004 18:45:23 +0000 Subject: [PATCH] Suppression du liens vers les notifications --- htdocs/societe.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/htdocs/societe.php b/htdocs/societe.php index ecd1f9e2abf..31c77f27a91 100644 --- a/htdocs/societe.php +++ b/htdocs/societe.php @@ -75,7 +75,6 @@ if ($mode == 'search') { * * */ -print_barre_liste("Liste des societes", $page, $PHP_SELF); $sql = "SELECT s.idp, s.nom, s.ville, ".$db->pdate("s.datec")." as datec, ".$db->pdate("s.datea")." as datea, st.libelle as stcomm, s.prefix_comm, s.client, s.fournisseur"; $sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."c_stcomm as st WHERE s.fk_stcomm = st.id"; @@ -95,17 +94,19 @@ if (strlen($begin)) { if ($socname) { $sql .= " AND lower(s.nom) like '%".strtolower($socname)."%'"; - $sortfield = "lower(s.nom)"; - $sortorder = "ASC"; } -$sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit, $offset); +$sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit+1, $offset); $result = $db->query($sql); if ($result) { $num = $db->num_rows(); $i = 0; + + $params = "&socname=$socname"; + + print_barre_liste("Liste des societes", $page, $PHP_SELF,$params,$sortfield,$sortorder,'',$num); if ($sortorder == "DESC") { @@ -119,13 +120,14 @@ if ($result) print ''; print ''; print ''; + print_liste_field_titre("Ville",$PHP_SELF,"s.ville",$params); + print ''; print "\n"; $var=True; - while ($i < $num) + + while ($i < min($num,$conf->liste_limit)) { $obj = $db->fetch_object( $i); $var=!$var; @@ -157,9 +159,7 @@ if ($result) print " "; } - print ''; - - print "\n"; + print ''."\n"; $i++; }
'; - print_liste_field_titre("Société",$PHP_SELF,"s.nom"); + print_liste_field_titre("Société",$PHP_SELF,"s.nom", $params); print ""; - print_liste_field_titre("Ville",$PHP_SELF,"s.ville"); - print 'Fiches Fiches
Notifications