<?php defined('C5_EXECUTE') or die("Access Denied."); $displayGroups = true; $displayUsers = true; if ($_REQUEST['mode'] == 'users') { $displayGroups = false; } else { if ($_REQUEST['mode'] == 'groups') { $displayUsers = false; } } $tp = new TaskPermission(); if (!$tp->canAccessUserSearch() && !$tp->canAccessGroupSearch()) { die(t("Access Denied.")); } ?> <script type="text/javascript"> var ccm_ugActiveTab = "ccm-select-group"; $("#ccm-ug-tabs a").click(function() { $("li.ccm-nav-active").removeClass('ccm-nav-active'); $("#" + ccm_ugActiveTab + "-tab").hide(); ccm_ugActiveTab = $(this).attr('id'); $(this).parent().addClass("ccm-nav-active"); $("#" + ccm_ugActiveTab + "-tab").show(); }); </script>
<?php defined('C5_EXECUTE') or die("Access Denied."); $tp = new TaskPermission(); if (!$tp->canAccessUserSearch()) { die(t("You have no access to users.")); } $u = new User(); $cnt = Loader::controller('/dashboard/users/search'); $userList = $cnt->getRequestedSearchResults(); $columns = $cnt->get('columns'); $users = $userList->getPage(); $pagination = $userList->getPagination(); $searchType = Loader::helper('text')->entities($_REQUEST['searchType']); Loader::element('users/search_results', array('columns' => $columns, 'users' => $users, 'userList' => $userList, 'searchType' => $searchType, 'pagination' => $pagination));
$("#ccm-additional-groups").append(html); } }); </script> <? } else { ?> <?=Loader::helper('concrete/dashboard')->getDashboardPaneHeaderWrapper(t('Search Users'), t('Search the users of your site and perform bulk actions on them.'), false, false);?> <? $tp = new TaskPermission(); if ($tp->canAccessUserSearch()) { ?> <div class="ccm-pane-options" id="ccm-<?=$searchInstance?>-pane-options"> <? Loader::element('users/search_form_advanced', array('columns' => $columns, 'searchInstance' => $searchInstance, 'searchRequest' => $searchRequest, 'searchType' => 'DASHBOARD')); ?> </div> <? Loader::element('users/search_results', array('columns' => $columns, 'searchInstance' => $searchInstance, 'searchType' => 'DASHBOARD', 'users' => $users, 'userList' => $userList, 'pagination' => $pagination)); ?> <? } else { ?> <div class="ccm-pane-body"> <p><?=t('You do not have access to user search. This setting may be changed in the access section of the dashboard settings page.')?></p> </div> <? } ?> <?=Loader::helper('concrete/dashboard')->getDashboardPaneFooterWrapper(false); ?>