Suppression du liens vers les notifications

This commit is contained in:
Rodolphe Quiedeville 2004-02-07 18:45:23 +00:00
parent e754187e8a
commit 900aa9ec95

View File

@ -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 = "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"; $sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."c_stcomm as st WHERE s.fk_stcomm = st.id";
@ -95,11 +94,9 @@ if (strlen($begin)) {
if ($socname) { if ($socname) {
$sql .= " AND lower(s.nom) like '%".strtolower($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); $result = $db->query($sql);
if ($result) if ($result)
@ -107,6 +104,10 @@ if ($result)
$num = $db->num_rows(); $num = $db->num_rows();
$i = 0; $i = 0;
$params = "&socname=$socname";
print_barre_liste("Liste des societes", $page, $PHP_SELF,$params,$sortfield,$sortorder,'',$num);
if ($sortorder == "DESC") if ($sortorder == "DESC")
{ {
$sortorder="ASC"; $sortorder="ASC";
@ -119,13 +120,14 @@ if ($result)
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">'; print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
print '<tr class="liste_titre">'; print '<tr class="liste_titre">';
print '<td>'; print '<td>';
print_liste_field_titre("Société",$PHP_SELF,"s.nom"); print_liste_field_titre("Société",$PHP_SELF,"s.nom", $params);
print "</td><td>"; print "</td><td>";
print_liste_field_titre("Ville",$PHP_SELF,"s.ville"); print_liste_field_titre("Ville",$PHP_SELF,"s.ville",$params);
print '</td><td colspan="2" align="center">Fiches</td><td>&nbsp;</td>'; print '</td><td colspan="2" align="center">Fiches</td>';
print "</tr>\n"; print "</tr>\n";
$var=True; $var=True;
while ($i < $num)
while ($i < min($num,$conf->liste_limit))
{ {
$obj = $db->fetch_object( $i); $obj = $db->fetch_object( $i);
$var=!$var; $var=!$var;
@ -157,9 +159,7 @@ if ($result)
print "&nbsp;"; print "&nbsp;";
} }
print '</td><td align="center"><a href="'.DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$obj->idp.'">Notifications</a></td>'; print '</td></tr>'."\n";
print "</tr>\n";
$i++; $i++;
} }