public function on_start() { parent::on_start(); $this->set('groupSets', GroupSet::getList()); $gl = new GroupSearch(); $gl->setItemsPerPage(10000); $gArray = $gl->getPage(); $groups = array(); foreach ($gArray as $g) { $groups[] = Group::getByID($g['gID']); } $this->set('groups', $groups); }
$users = array(); if (is_array($_REQUEST['uID'])) { foreach ($_REQUEST['uID'] as $uID) { $ui = UserInfo::getByID($uID); $users[] = $ui; } } foreach ($users as $ui) { if (!$sk->validate($ui)) { die(t("Access Denied.")); } } Loader::model('search/group'); $gl = new GroupSearch(); $gl->setItemsPerPage(-1); $g1 = $gl->getPage(); if ($_POST['task'] == 'group_remove') { if (!$token->validate('bulk_group_remove')) { echo Loader::helper('json')->encode(array('error' => t("Invalid token."))); exit; } // build the group array $groupIDs = $_REQUEST['groupIDs']; $groups = array(); if (is_array($groupIDs) && count($groupIDs)) { foreach ($groupIDs as $gID) { $groups[] = Group::getByID($gID); } } foreach ($users as $ui) { if ($ui instanceof UserInfo) {
<div id="ccm-group-search-wrapper"> <? } ?> <? Loader::model('search/group'); $gl = new GroupSearch(); if ($_REQUEST['include_core_groups'] == 1) { $gl->includeAllGroups(); } if (isset($_GET['gKeywords'])) { $gl->filterByKeywords($_GET['gKeywords']); } $gl->updateItemsPerPage(8); $gResults = $gl->getPage(); ?> <?php $group_search_form = ' <form id="ccm-group-search" style="" method="get" action="' . REL_DIR_FILES_TOOLS_REQUIRED . '/select_group/"> <div id="ccm-group-search-fields"> <input type="text" id="ccm-group-search-keywords" name="gKeywords" value="' . $_REQUEST['gKeywords'] . '" class="ccm-text" style="width: 100px" /> <input type="submit" value="' . t('Search') . '" /> <input type="hidden" name="group_submit_search" value="1" /> <input type="hidden" name="include_core_groups" value="' . $_REQUEST['include_core_groups'] . '" /> </div> </form> '; ?>
<?php defined('C5_EXECUTE') or die("Access Denied."); $th = Loader::helper('text'); Loader::model('attribute/categories/user'); $attribs = UserAttributeKey::getRegistrationList(); $assignment = PermissionKey::getByHandle('edit_user_properties')->getMyAssignment(); Loader::model("search/group"); $gl = new GroupSearch(); $gl->setItemsPerPage(10000); $gArray = $gl->getPage(); $languages = Localization::getAvailableInterfaceLanguages(); ?> <?php echo Loader::helper('concrete/dashboard')->getDashboardPaneHeaderWrapper(t('Add User'), false, false, false); ?> <form method="post" enctype="multipart/form-data" id="ccm-user-form" action="<?php echo $this->url('/dashboard/users/add'); ?> "> <?php echo $valt->output('create_account'); ?> <input type="hidden" name="_disableLogin" value="1"> <div class="ccm-pane-body"> <table class="table table-bordered">