updated: add functionality of actions on listings
This commit is contained in:
parent
b121adc1f1
commit
9c10a2b4d9
2 changed files with 26 additions and 1 deletions
|
@ -16,10 +16,11 @@ $udetails = $userquery->get_user_details(userid());
|
|||
assign('user',$udetails);
|
||||
assign('p',$userquery->get_user_profile($udetails['userid']));
|
||||
|
||||
$gid = mysql_clean($_GET['gid']);
|
||||
$gid = mysql_clean($_GET['group_id']);
|
||||
//get group details
|
||||
$gdetails = $cbgroup->get_group_details($gid);
|
||||
|
||||
|
||||
$gArray =
|
||||
array
|
||||
(
|
||||
|
|
|
@ -33,6 +33,30 @@ switch($mode)
|
|||
$gid = $_GET['gid_delete'];
|
||||
$cbgroup->delete_group($gid);
|
||||
}
|
||||
|
||||
if($_GET['feature'])
|
||||
{
|
||||
$gid = $_GET['feature'];
|
||||
$cbgroup->grp_actions('feature', $gid);
|
||||
}
|
||||
|
||||
if($_GET['unfeature'])
|
||||
{
|
||||
$gid = $_GET['unfeature'];
|
||||
$cbgroup->grp_actions('unfeature', $gid);
|
||||
}
|
||||
|
||||
if($_GET['activate'])
|
||||
{
|
||||
$gid = $_GET['activate'];
|
||||
$cbgroup->grp_actions('activate', $gid);
|
||||
}
|
||||
|
||||
if($_GET['deactivate'])
|
||||
{
|
||||
$gid = $_GET['deactivate'];
|
||||
$cbgroup->grp_actions('deactivate', $gid);
|
||||
}
|
||||
|
||||
assign('mode','manage');
|
||||
$usr_groups = $cbgroup->get_groups(array('user'=>userid()));
|
||||
|
|
Loading…
Add table
Reference in a new issue