getConn(); $acc_obj = new access_group_Class($dbconn, $_SESSION['user']->id); $rows = $acc_obj->getRows(); $obj = new user_Class($dbconn, $_SESSION['user']->id); $users = $obj->getRowsArr(); // admin is owned by super admin, so we have to add him to list $users[$_SESSION['user']->id] = $_SESSION['user']->name; if(!isset($_SESSION['user']) || $_SESSION['user']->accesslevel != 'Admin') { header('Location: ../login.php'); exit; } ?>
getGroupUsers(array($row->id)); $grp_id_usrs = array(); foreach($grp_usrs as $id => $name){ array_push($grp_id_usrs, '('.$id.')'.$name); } ?>
ID Name Users Actions
id?> name?>

 

× Note: Username is prefixed with its ID.