当前位置: 首页>>代码示例>>PHP>>正文


PHP TaskPermission::canAccessUserSearch方法代码示例

本文整理汇总了PHP中TaskPermission::canAccessUserSearch方法的典型用法代码示例。如果您正苦于以下问题:PHP TaskPermission::canAccessUserSearch方法的具体用法?PHP TaskPermission::canAccessUserSearch怎么用?PHP TaskPermission::canAccessUserSearch使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TaskPermission的用法示例。


在下文中一共展示了TaskPermission::canAccessUserSearch方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: die

<?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>
开发者ID:ojalehto,项目名称:concrete5-legacy,代码行数:30,代码来源:user_group_selector.php

示例2: die

<?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));
开发者ID:Zyqsempai,项目名称:amanet,代码行数:15,代码来源:search_results.php

示例3: t

		$("#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); ?>
开发者ID:nveid,项目名称:concrete5,代码行数:30,代码来源:search.php


注:本文中的TaskPermission::canAccessUserSearch方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。