diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php
index 04f1b928222..325802c88cb 100644
--- a/htdocs/adherents/type.php
+++ b/htdocs/adherents/type.php
@@ -23,7 +23,7 @@
* \file htdocs/adherents/type.php
* \ingroup member
* \brief Page de configuration des types d'adherents
- * \version $Id$
+ * \version $Id: type.php,v 1.69 2011/06/26 21:03:44 eldy Exp $
*/
require("../main.inc.php");
@@ -32,7 +32,17 @@ require_once(DOL_DOCUMENT_ROOT."/adherents/class/adherent_type.class.php");
$langs->load("members");
-$rowid=isset($_GET["rowid"])?$_GET["rowid"]:$_POST["rowid"];
+$rowid=GETPOST("rowid");
+
+$sortfield = GETPOST("sortfield",'alpha');
+$sortorder = GETPOST("sortorder",'alpha');
+$page = GETPOST("page",'int');
+if ($page == -1) { $page = 0 ; }
+$offset = $conf->liste_limit * $page ;
+$pageprev = $page - 1;
+$pagenext = $page + 1;
+if (! $sortorder) { $sortorder="DESC"; }
+if (! $sortfield) { $sortfield="d.nom"; }
// Security check
if (! $user->rights->adherent->lire) accessforbidden();
@@ -414,13 +424,12 @@ if ($rowid > 0)
$titre.=" (".$membertype->libelle.")";
}
- $param="";
+ $param="&rowid=".$rowid;
if (isset($_GET["statut"])) $param.="&statut=".$_GET["statut"];
if (isset($_GET["search_nom"])) $param.="&search_nom=".$_GET["search_nom"];
if (isset($_GET["search_login"])) $param.="&search_login=".$_GET["search_login"];
if (isset($_GET["search_email"])) $param.="&search_email=".$_GET["search_email"];
if (isset($_GET["filter"])) $param.="&filter=".$_GET["filter"];
- print_barre_liste('',$page,$_SERVER["PHP_SELF"],$param,$sortfield,$sortorder,'',$num,$nbtotalofrecords);
if ($sall)
{
@@ -428,16 +437,17 @@ if ($rowid > 0)
}
print '
';
+ print_barre_liste('',$page,$_SERVER["PHP_SELF"],$param,$sortfield,$sortorder,'',$num,$nbtotalofrecords);
print "