Nettoyage variable begin
This commit is contained in:
parent
9d8f86c155
commit
007da9253c
@ -32,7 +32,6 @@ if ($user->societe_id > 0)
|
|||||||
}
|
}
|
||||||
|
|
||||||
$page=$_GET["page"];
|
$page=$_GET["page"];
|
||||||
$begin=$_GET["begin"];
|
|
||||||
$sortorder=$_GET["sortorder"];
|
$sortorder=$_GET["sortorder"];
|
||||||
$sortfield=$_GET["sortfield"];
|
$sortfield=$_GET["sortfield"];
|
||||||
|
|
||||||
@ -57,11 +56,6 @@ if ($_GET["search_nom"])
|
|||||||
$sql .= " AND s.nom like '%".strtolower($_GET["search_nom"])."%'";
|
$sql .= " AND s.nom like '%".strtolower($_GET["search_nom"])."%'";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strlen($begin))
|
|
||||||
{
|
|
||||||
$sql .= " AND upper(s.nom) like '$begin%'";
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($user->societe_id)
|
if ($user->societe_id)
|
||||||
{
|
{
|
||||||
$sql .= " AND s.idp = " .$user->societe_id;
|
$sql .= " AND s.idp = " .$user->societe_id;
|
||||||
@ -93,7 +87,7 @@ if ($result)
|
|||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
print_barre_liste("Liste des clients", $page, "clients.php","&begin=$begin",$sortfield,$sortorder,"",$num);
|
print_barre_liste("Liste des clients", $page, "clients.php","",$sortfield,$sortorder,"",$num);
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user