Suppression de la recherche par premier caractre

This commit is contained in:
Rodolphe Quiedeville 2004-11-16 21:43:08 +00:00
parent 00bb14dc2d
commit 26a17a7f14

View File

@ -78,11 +78,6 @@ if (strlen($stcomm))
$sql .= " AND s.fk_stcomm=$stcomm";
}
if (strlen($user->page_param["begin"]))
{
$sql .= " AND upper(s.nom) like '".$user->page_param["begin"]."%'";
}
if ($user->societe_id)
{
$sql .= " AND s.idp = " .$user->societe_id;
@ -125,24 +120,6 @@ if ($result)
print_barre_liste($langs->trans("ProspectList"), $page, "prospects.php",'&stcomm='.$_GET["stcomm"],"","",'',$num);
print '<div align="center">';
print "| <a href=\"prospects.php?page=$pageprev&amp;stcomm=$stcomm&amp;begin=%25\">*</a>\n| ";
for ($ij = 65 ; $ij < 91; $ij++) {
print "<a href=\"prospects.php?begin=" . chr($ij) . "&stcomm=$stcomm\" class=\"T3\">";
if ($user->page_param["begin"] == chr($ij) )
{
print "<b>&gt;" . chr($ij) . "&lt;</b>" ;
}
else
{
print chr($ij);
}
print "</a> | ";
}
print "</div>";
$i = 0;
print '<table class="noborder" width="100%">';