GetUserOperations(); $groupops = $gCms->GetGroupOperations(); $grouplist = $groupops->LoadGroups(); echo $themeObject->ShowHeader('currentgroups').'
'; $page = 1; if (isset($_GET['page'])) $page = $_GET['page']; $limit = 20; if (count($grouplist) > $limit) { echo "

".pagination($page, count($grouplist), $limit)."

"; } if (count($grouplist) > 0) { echo "\n"; echo ''; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ''; echo ''; $currow = "row1"; // construct true/false button images $image_true = $themeObject->DisplayImage('icons/system/true.gif', lang('true'),'','','systemicon'); $image_false = $themeObject->DisplayImage('icons/system/false.gif', lang('false'),'','','systemicon'); $image_groupassign = $themeObject->DisplayImage('icons/system/groupassign.gif', lang('assignments'),'','','systemicon'); $image_permissions = $themeObject->DisplayImage('icons/system/permissions.gif', lang('permissions'),'','','systemicon'); $counter=0; foreach ($grouplist as $onegroup){ if ($counter < $page*$limit && $counter >= ($page*$limit)-$limit) { echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; if ($onegroup->id != 1 && !$userops->UserInGroup($userid,$onegroup->id)) { echo "\n"; } else { echo ''."\n"; } echo "\n"; ($currow == "row1"?$currow="row2":$currow="row1"); } $counter++; } echo ''; echo "
".lang('name')."".lang('active')."    
description."\" href=\"editgroup.php".$urlext."&group_id=".$onegroup->id."\">".$onegroup->name.""; if( $onegroup->id == 1 ) { echo ' '; } else { if( $onegroup->active == 1 ) { echo $image_true; } else { echo $image_false; } } echo "id."\">".$image_permissions."id."\">".$image_groupassign."id."\">"; echo $themeObject->DisplayImage('icons/system/edit.gif', lang('edit'),'','','systemicon'); echo "id."\" onclick=\"return confirm('".cms_html_entity_decode(lang('deleteconfirm', $onegroup->name) )."');\">"; echo $themeObject->DisplayImage('icons/system/delete.gif', lang('delete'),'','','systemicon'); echo " 
\n"; } if (check_permission($userid, 'Add Groups')) { ?>
DisplayImage('icons/system/newobject.gif', lang('addgroup'),'','','systemicon').''; echo ' '.lang("addgroup"); ?>