. * * 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->getRoleUsers($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_USER_WITH_ROLE') . ': '.$roleCode.'
'; $tree->showSign = false; $oDataset->next(); while ($aRow = $oDataset->getRow()) { $ID_DELETE = G::LoadTranslation('ID_REMOVE'); $un = ($aRow['USR_USERNAME'] != '')?$aRow['USR_USERNAME']:'none'; $user = '['.$un.'] '.$aRow['USR_FIRSTNAME'].' '.$aRow['USR_LASTNAME']; $USR_UID = $aRow['USR_UID']; if($USR_UID != "00000000000000000000000000000001") { #because the admin remove rol it doesn't posible $refer = "{$ID_DELETE}"; } else { $refer = "{$ID_DELETE}"; } $html = "
{$user} [$refer]
"; $ch = &$tree->addChild('', $html, array('nodeType' => 'child')); $ch->point = ''; $oDataset->next(); } print ($tree->render());