Correction Erreurs
This commit is contained in:
parent
7dde4909f9
commit
00bb14dc2d
@ -36,6 +36,7 @@ llxHeader();
|
|||||||
$sortorder=$_GET["sortorder"];
|
$sortorder=$_GET["sortorder"];
|
||||||
$sortfield=$_GET["sortfield"];
|
$sortfield=$_GET["sortfield"];
|
||||||
$page=$_GET["page"];
|
$page=$_GET["page"];
|
||||||
|
|
||||||
$socid=$_GET["socid"];
|
$socid=$_GET["socid"];
|
||||||
$type=$_GET["type"];
|
$type=$_GET["type"];
|
||||||
|
|
||||||
@ -49,9 +50,9 @@ if ($user->societe_id > 0)
|
|||||||
$socid = $user->societe_id;
|
$socid = $user->societe_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
$sortorder=$_GET["sortorder"];
|
|
||||||
$sortfield=$_GET["sortfield"];
|
|
||||||
$page=$_GET["page"];
|
|
||||||
|
|
||||||
if ($sortorder == "")
|
if ($sortorder == "")
|
||||||
{
|
{
|
||||||
@ -61,7 +62,7 @@ if ($sortfield == "")
|
|||||||
{
|
{
|
||||||
$sortfield="p.name";
|
$sortfield="p.name";
|
||||||
}
|
}
|
||||||
$page=$_GET["page"];
|
|
||||||
if ($page == -1) { $page = 0 ; }
|
if ($page == -1) { $page = 0 ; }
|
||||||
$limit = $conf->liste_limit;
|
$limit = $conf->liste_limit;
|
||||||
$offset = $limit * $page ;
|
$offset = $limit * $page ;
|
||||||
@ -132,33 +133,6 @@ if ($result)
|
|||||||
|
|
||||||
print_barre_liste("Liste des contacts $label",$page, "contact.php", "&type=$type",$sortfield,$sortorder,"",$num);
|
print_barre_liste("Liste des contacts $label",$page, "contact.php", "&type=$type",$sortfield,$sortorder,"",$num);
|
||||||
|
|
||||||
print "<div align=\"center\">";
|
|
||||||
|
|
||||||
print "| <A href=\"contact.php?type=$type&page=$pageprev&stcomm=$stcomm&sortfield=$sortfield&sortorder=$sortorder&aclasser=$aclasser&coord=$coord\">*</A>\n| ";
|
|
||||||
for ($i = 65 ; $i < 91; $i++) {
|
|
||||||
print "<A href=\"contact.php?type=$type&begin=" . chr($i) . "&stcomm=$stcomm\" class=\"T3\">";
|
|
||||||
|
|
||||||
if ($begin == chr($i) )
|
|
||||||
{
|
|
||||||
print "<b>->" . chr($i) . "<-</b>" ;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
print chr($i) ;
|
|
||||||
}
|
|
||||||
print "</A> | ";
|
|
||||||
}
|
|
||||||
print "</div>";
|
|
||||||
|
|
||||||
if ($sortorder == "DESC")
|
|
||||||
{
|
|
||||||
$sortorder="ASC";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$sortorder="DESC";
|
|
||||||
}
|
|
||||||
|
|
||||||
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_liste_field_titre($langs->trans("Lastname"),"contact.php","lower(p.name)", $begin,"&type=$type");
|
print_liste_field_titre($langs->trans("Lastname"),"contact.php","lower(p.name)", $begin,"&type=$type");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user