. * * 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 */ require_once 'classes/model/Users.php'; $oCriteria = new Criteria(); $oCriteria->addSelectColumn(UsersPeer::USR_FIRSTNAME); $oCriteria->addSelectColumn(UsersPeer::USR_LASTNAME); $oCriteria->add(UsersPeer::USR_UID, $_GET['sUserUID']); $oDataset = UsersPeer::doSelectRS($oCriteria); $oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC); $oDataset->next(); $aRow = $oDataset->getRow(); $groups = new Groups(); $tree = new PmTree(); $tree->name = 'Users'; $tree->nodeType = "base"; $tree->width = "350px"; $tree->value = '
' . G::loadTranslation("ID_ASSIGN_GROUP_TO") . ' ' . $aRow['USR_FIRSTNAME'] . ' ' . $aRow['USR_LASTNAME'] . '
'; $tree->showSign = false; $allGroups = $groups->getAllGroups(); foreach ($allGroups as $group) { $ID_ASSIGN = G::LoadTranslation('ID_ASSIGN'); $groupUID = htmlentities($group->getGrpUid()); $userUID = $_GET['sUserUID']; $GROUP_TITLE = strip_tags($group->getGrpTitle()); $html = <<< innerHTML
{$GROUP_TITLE} [{$ID_ASSIGN}]
innerHTML; $ch = $tree->addChild($group->getGrpUid(), $html, array('nodeType' => 'child')); $ch->point = ''; } print($tree->render());