. * * For more information, contact Colosa Inc, 2566 Le Jeune Rd., * Coral Gables, FL, 33134, USA, or email info@colosa.com. * */ /** * @Description This is the View of all groups from a determinated user * @author Erik Amaru Ortiz * @Date 24/04/2008 * @LastModification none */ $ROL_UID = $_GET['ROL_UID']; global $RBAC; $oDataset = $RBAC->getRolePermissions($ROL_UID); $roleCode = $RBAC->getRoleCode($ROL_UID); G::LoadClass('tree'); $tree = new Tree(); $tree->name = 'Users'; $tree->nodeType = "base"; $tree->width = "350px"; $tree->value = '
' . G::LoadTranslation('ID_PERMISSIONS_FOR_THE_ROL') . ': '.$roleCode.'
'; $tree->showSign = false; $oDataset->next(); while ($aRow = $oDataset->getRow()) { $ID_REMOVE = G::LoadTranslation('ID_REMOVE'); $CODE = $aRow['PER_CODE']; $UID = $aRow['PER_UID']; if($ROL_UID != "00000000000000000000000000000002") { #because the admin remove permitions it doesn't posible $refer = "{$ID_REMOVE}"; } else { $refer = "{$ID_REMOVE}"; } $html = "
{$CODE} [$refer]
"; $ch = &$tree->addChild('', $html, array('nodeType' => 'child')); $ch->point = ''; $oDataset->next(); } print ($tree->render());