function setPageNav($gid)
 {
     $start = isset($_REQUEST['start']) ? intval($_REQUEST['start']) : 0;
     $max = _CC_MAX_USERS;
     $total = cc_group_users($gid, $max, $start, true);
     $nav = new MyPageNav($total, $max, $start, 'start', $this->getName());
     $this->pagenav = $nav->renderNav();
 }
<?php

// query group users
// $Id: getusers.php,v 1.3 2012/01/21 16:55:15 nobu Exp $
include '../../../include/cp_header.php';
include_once 'mypagenav.php';
$start = isset($_GET['start']) ? intval($_GET['start']) : 0;
$group = isset($_GET['gid']) ? intval($_GET['gid']) : 0;
$max = _CC_MAX_USERS;
$total = cc_group_users($group, $max, $start, true);
foreach (cc_group_users($group, $max, $start) as $uid => $uname) {
    echo "{$uid}," . htmlspecialchars($uname, ENT_QUOTES) . "\n";
}
echo "<!---->\n";
$nav = new MyPageNav($total, $max, $start);
echo $nav->renderNav();