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


PHP UserAccess::checkAccess方法代码示例

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


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

示例1: array

<?php

$this->breadcrumbs = array('Quản lí số điện thoại' => array('index'), 'Create');
$this->menu = array(array('label' => 'List', 'url' => array('index'), 'visible' => UserAccess::checkAccess('spam-GroupIndex')));
$this->pageLabel = "Create SpamSmsGroup";
?>

<?php 
echo $this->renderPartial('_form', array('model' => $model, 'uploadModel' => $uploadModel, 'message' => $message, 'errorList' => $errorList, 'smsGroup' => $smsGroup));
开发者ID:giangnh264,项目名称:mobileplus,代码行数:9,代码来源:create.php

示例2: array

<?php

$this->breadcrumbs = array('Game Event Report All Models' => array('index'), $model->date => array('view', 'id' => $model->date), 'Update');
$this->menu = array(array('label' => Yii::t('admin', 'Danh sách'), 'url' => array('index'), 'visible' => UserAccess::checkAccess('GameEventReportAllModelIndex')), array('label' => Yii::t('admin', 'Thêm mới'), 'url' => array('create'), 'visible' => UserAccess::checkAccess('GameEventReportAllModelCreate')), array('label' => Yii::t('admin', 'Thông tin'), 'url' => array('view', 'id' => $model->date), 'visible' => UserAccess::checkAccess('GameEventReportAllModelView')));
$this->pageLabel = Yii::t('admin', "Sao chép GameEventReportAll") . "#" . $model->date;
?>



<?php 
echo $this->renderPartial('_form', array('model' => $model));
开发者ID:giangnh264,项目名称:mobileplus,代码行数:11,代码来源:copy.php

示例3: array

<?php

Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl . "/js/admin/common.js");
$this->breadcrumbs = array('Admin Ads Source Models' => array('index'), 'Manage');
$this->menu = array(array('label' => Yii::t("admin", "Thêm mới"), 'url' => array('create'), 'visible' => UserAccess::checkAccess('ads-AdsSourceCreate')), array('label' => Yii::t("admin", "Tạo link quảng cáo"), 'url' => array('/ads/adsMarketing/create'), 'visible' => UserAccess::checkAccess('ads-AdsMarketingCreate')));
$this->pageLabel = Yii::t("admin", "Danh sách AdsSource");
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('admin-ads-source-model-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n\n");
?>

<div class="title-box search-box">
    <?php 
echo CHtml::link(yii::t('admin', 'Tìm kiếm'), '#', array('class' => 'search-button'));
?>
</div>

<div class="search-form" style="display:block">

<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$html_exp = '
    <div id="expand">
        <p id="show-exp">&nbsp;&nbsp;</p>
        <ul id="mn-expand" style="display:none">
            <li><a href="javascript:void(0)" class="item-in-page">' . Yii::t("admin", "Chọn trang này") . '(' . $model->search()->getItemCount() . ')</a></li>
            <li><a href="javascript:void(0)" class="all-item">' . Yii::t("admin", "Chọn tất cả") . ' (' . $model->count() . ')</a></li>
            <li><a href="javascript:void(0)" class="uncheck-all">' . Yii::t("admin", "Bỏ chọn tất cả") . '</a></li>
        </ul>
开发者ID:giangnh264,项目名称:mobileplus,代码行数:31,代码来源:index.php

示例4: array

<?php

Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl . "/js/admin/common.js");
$this->breadcrumbs = array('Admin Admin User Models' => array('index'), 'Manage');
$this->menu = array(array('label' => Yii::t("admin", "Thêm mới"), 'url' => array('create'), 'visible' => UserAccess::checkAccess('AdminUserCreate')));
$this->pageLabel = Yii::t("admin", "Danh sách Admin User");
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('admin-admin-user-model-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n\n");
?>

<div class="title-box search-box">
    <?php 
echo CHtml::link(yii::t('admin', 'Tìm kiếm'), '#', array('class' => 'search-button'));
?>
</div>

<div class="search-form" style="display:block">

<?php 
$this->renderPartial('_search', array('model' => $model, 'cpList' => $cpList));
?>
</div><!-- search-form -->

<?php 
$html_exp = '
    <div id="expand">
        <p id="show-exp">&nbsp;&nbsp;</p>
        <ul id="mn-expand" style="display:none">
            <li><a href="javascript:void(0)" class="item-in-page">' . Yii::t("admin", "Chọn trang này") . '(' . $model->search()->getItemCount() . ')</a></li>
            <li><a href="javascript:void(0)" class="all-item">' . Yii::t("admin", "Chọn tất cả") . ' (' . $model->count() . ')</a></li>
            <li><a href="javascript:void(0)" class="uncheck-all">' . Yii::t("admin", "Bỏ chọn tất cả") . '</a></li>
        </ul>
开发者ID:giangnh264,项目名称:mobileplus,代码行数:31,代码来源:index.php

示例5: array

<?php

$this->breadcrumbs = array('Admin Ads Source Models' => array('index'), $model->name);
$this->menu = array(array('label' => Yii::t('admin', 'Danh sách'), 'url' => array('index'), 'visible' => UserAccess::checkAccess('ads-AdsSourceIndex')), array('label' => Yii::t('admin', 'Thêm mới'), 'url' => array('create')), array('label' => Yii::t('admin', 'Cập nhật'), 'url' => array('update', 'id' => $model->id), 'visible' => UserAccess::checkAccess('ads-AdsSourceUpdate')), array('label' => Yii::t('admin', 'Xóa'), 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?'), 'visible' => UserAccess::checkAccess('AdminAdsSourceModelDelete')), array('label' => Yii::t('admin', 'Sao chép'), 'url' => array('copy', 'id' => $model->id), 'visible' => UserAccess::checkAccess('ads-AdsSourceCopy')));
$this->pageLabel = Yii::t('admin', "Thông tin AdsSource") . "#" . $model->id;
?>


<div class="content-body">
<?php 
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('id', 'name', 'description', 'created_datetime', 'status')));
?>
</div>
开发者ID:giangnh264,项目名称:mobileplus,代码行数:13,代码来源:view.php

示例6: array

<?php

$this->breadcrumbs = array('Admin Ads Marketing Models' => array('index'), 'Create');
$this->menu = array(array('label' => 'List', 'url' => array('index'), 'visible' => UserAccess::checkAccess('ads-AdsMarketingIndex')));
$this->pageLabel = "Tạo quảng cáo truyền thông";
?>


<?php 
echo $this->renderPartial('_form', array('model' => $model));
开发者ID:giangnh264,项目名称:mobileplus,代码行数:10,代码来源:create.php

示例7: array

<?php

Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl . "/js/admin/common.js");
$this->breadcrumbs = array('Game Event Report Day Models' => array('index'), 'Manage');
$this->menu = array(array('label' => Yii::t("admin", "Thêm mới"), 'url' => array('create'), 'visible' => UserAccess::checkAccess('GameEventReportDayModelCreate')));
$this->pageLabel = Yii::t("admin", "Danh sách GameEventReportDay");
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('game-event-report-day-model-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n\n");
?>

<div class="title-box search-box">
    <?php 
echo CHtml::link(yii::t('admin', 'Tìm kiếm'), '#', array('class' => 'search-button'));
?>
</div>

<div class="search-form" style="display:block">
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->
<?php 
$html_exp = '
    <div id="expand">
        <p id="show-exp">&nbsp;&nbsp;</p>
        <ul id="mn-expand" style="display:none">
            <li><a href="javascript:void(0)" class="item-in-page">' . Yii::t("admin", "Chọn trang này") . '(' . $model->search()->getItemCount() . ')</a></li>
            <li><a href="javascript:void(0)" class="all-item">' . Yii::t("admin", "Chọn tất cả") . ' (' . $model->count() . ')</a></li>
            <li><a href="javascript:void(0)" class="uncheck-all">' . Yii::t("admin", "Bỏ chọn tất cả") . '</a></li>
        </ul>
    </div>
';
开发者ID:giangnh264,项目名称:mobileplus,代码行数:31,代码来源:index.php

示例8: array

<?php

Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl . "/js/admin/common.js");
$this->breadcrumbs = array('Admin Shortlink Models' => array('index'), 'Manage');
$this->menu = array(array('label' => Yii::t("admin", "Thêm mới"), 'url' => array('create'), 'visible' => UserAccess::checkAccess('shortlink-DefaultIndex')));
$this->pageLabel = Yii::t("admin", "Danh sách Shortlink");
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('admin-shortlink-model-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n\n");
?>

<div class="title-box search-box">
    <?php 
echo CHtml::link(yii::t('admin', 'Tìm kiếm'), '#', array('class' => 'search-button'));
?>
</div>

<div class="search-form" style="display:block">

<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$html_exp = '
    <div id="expand">
        <p id="show-exp">&nbsp;&nbsp;</p>
        <ul id="mn-expand" style="display:none">
            <li><a href="javascript:void(0)" class="item-in-page">' . Yii::t("admin", "Chọn trang này") . '(' . $model->search()->getItemCount() . ')</a></li>
            <li><a href="javascript:void(0)" class="all-item">' . Yii::t("admin", "Chọn tất cả") . ' (' . $model->count() . ')</a></li>
            <li><a href="javascript:void(0)" class="uncheck-all">' . Yii::t("admin", "Bỏ chọn tất cả") . '</a></li>
        </ul>
开发者ID:giangnh264,项目名称:mobileplus,代码行数:31,代码来源:index.php

示例9: array

<?php

$this->pageLabel = Yii::t("admin", "Quản lý nhóm sự kiện");
$this->menu = array(array('label' => Yii::t("admin", "Thêm mới"), 'url' => array('create'), 'visible' => UserAccess::checkAccess('gamification-AdminEventGroupCreate')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('admin-event-group-model-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<div class="search-form" style="display:none">
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'admin-event-group-model-grid', 'dataProvider' => new EMongoDocumentDataProvider($model->search(), array('sort' => array('attributes' => array('_id', 'name', 'description')))), 'columns' => array(array('name' => 'name', 'header' => EventGroupModel::model()->getAttributeLabel("name"), 'value' => 'CHtml::link($data->name,array("update","id"=>$data->_id))', 'type' => 'raw'), array('name' => 'description', 'header' => EventGroupModel::model()->getAttributeLabel("description")), array('class' => 'CButtonColumn'))));
开发者ID:giangnh264,项目名称:mobileplus,代码行数:15,代码来源:admin.php

示例10: array

<?php

$this->breadcrumbs = array('Admin Tools Setting Get Msisdn Models' => array('index'), $model->name => array('view', 'id' => $model->id), 'Update');
$this->menu = array(array('label' => Yii::t('admin', 'Danh sách'), 'url' => array('index'), 'visible' => UserAccess::checkAccess('AdminToolsSettingGetMsisdnModelIndex')), array('label' => Yii::t('admin', 'Thêm mới'), 'url' => array('create'), 'visible' => UserAccess::checkAccess('AdminToolsSettingGetMsisdnModelCreate')), array('label' => Yii::t('admin', 'Thông tin'), 'url' => array('view', 'id' => $model->id), 'visible' => UserAccess::checkAccess('AdminToolsSettingGetMsisdnModelView')));
$this->pageLabel = Yii::t('admin', "Sao chép ToolsSettingGetMsisdn") . "#" . $model->id;
?>



<?php 
echo $this->renderPartial('_form', array('model' => $model));
开发者ID:giangnh264,项目名称:mobileplus,代码行数:11,代码来源:copy.php

示例11: array

<?php

Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl . "/js/admin/common.js");
$this->breadcrumbs = array('Quản lí số điện thoại' => array('index'), 'Manage');
$this->menu = array(array('label' => 'Danh sách', 'url' => array('index'), 'visible' => UserAccess::checkAccess('spam-GroupIndex')), array('label' => Yii::t("admin", "Thêm mới"), 'url' => array('create'), 'visible' => UserAccess::checkAccess('spam-GroupCreate')), array('label' => Yii::t("admin", "Clone"), 'url' => array('clone&id=' . Yii::app()->request->getParam("id")), 'visible' => UserAccess::checkAccess('spam-GroupClone')), array('label' => Yii::t("admin", "Sao chép Filter"), 'url' => array('cloneFilter&id=' . Yii::app()->request->getParam("id")), 'visible' => UserAccess::checkAccess('spam-GroupClone')));
$this->pageLabel = Yii::t("admin", "Danh sác nhóm Spam");
?>
<div class="submenu title-box xfixed">
    <div id="yw5" class="portlet">
        <div class="portlet-content">

            <div class="page-title">Danh sách số điện thoại</div><ul id="yw6" class="operations">
                <li><a href="javascript:void(0);" onclick="toggleUpload()">Thêm mới</a></li>
            </ul></div>
    </div>				</div>
<?php 
Yii::app()->clientScript->registerScript('search2', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('#search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('admin-spam-sms-group-model-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n\n");
?>

<script type="text/javascript">
    function toggleUpload(){
        $('#upload-form').toggle();
        $('#search-form').toggle();
    }    
</script>

<div class="search-form" id="search-form" style="display:block">
    <?php 
$this->renderPartial('_searchPhone', array('group_id' => $group_id));
?>
</div><!-- search-form -->
开发者ID:giangnh264,项目名称:mobileplus,代码行数:31,代码来源:phone_list.php

示例12: array

<?php

$this->breadcrumbs = array('Admin News Event Models' => array('index'), $model->name);
$this->menu = array(array('label' => Yii::t('admin', 'Danh sách'), 'url' => array('index', 'channel' => isset($_SESSION['channel']) ? $_SESSION['channel'] : 'wap'), 'visible' => UserAccess::checkAccess('NewsEventIndex')), array('label' => Yii::t('admin', 'Thêm mới'), 'url' => array('create')), array('label' => Yii::t('admin', 'Cập nhật'), 'url' => array('update', 'id' => $model->id), 'visible' => UserAccess::checkAccess('NewsEventUpdate')), array('label' => Yii::t('admin', 'Xóa'), 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?'), 'visible' => UserAccess::checkAccess('NewsEventDelete')), array('label' => Yii::t('admin', 'Sao chép'), 'url' => array('copy', 'id' => $model->id), 'visible' => UserAccess::checkAccess('NewsEventCopy')));
$this->pageLabel = Yii::t('admin', "Thông tin NewsEvent") . "#" . $model->id;
?>


<div class="content-body">
<?php 
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('id', 'name', 'type', 'object_id', 'sorder', 'custom_link', 'channel', 'content', 'created_time', 'updated_time')));
?>
</div>
开发者ID:giangnh264,项目名称:mobileplus,代码行数:13,代码来源:view.php

示例13: array

<?php

$this->breadcrumbs = array('Admin News Event Models' => array('index'), $model->name => array('view', 'id' => $model->id), 'Update');
$this->menu = array(array('label' => Yii::t('admin', 'Danh sách'), 'url' => array('index', 'channel' => isset($_SESSION['channel']) ? $_SESSION['channel'] : 'wap'), 'visible' => UserAccess::checkAccess('NewsEventIndex')), array('label' => Yii::t('admin', 'Thêm mới'), 'url' => array('create'), 'visible' => UserAccess::checkAccess('NewsEventCreate')), array('label' => Yii::t('admin', 'Thông tin'), 'url' => array('view', 'id' => $model->id), 'visible' => UserAccess::checkAccess('NewsEventView')));
$this->pageLabel = Yii::t('admin', "Cập nhật NewsEvent") . "#" . $model->id;
?>


<?php 
echo $this->renderPartial('_form', array('model' => $model));
开发者ID:giangnh264,项目名称:mobileplus,代码行数:10,代码来源:update.php

示例14: array

<?php

$this->breadcrumbs = array('Admin News Event Models' => array('index'), 'Create');
$this->menu = array(array('label' => Yii::t('admin', 'Danh sách'), 'url' => array('index', 'channel' => isset($_SESSION['channel']) ? $_SESSION['channel'] : 'wap'), 'visible' => UserAccess::checkAccess('NewsEventIndex')));
$this->pageLabel = "Create NewsEvent";
?>


<?php 
echo $this->renderPartial('_form', array('model' => $model));
开发者ID:giangnh264,项目名称:mobileplus,代码行数:10,代码来源:create.php

示例15: array

<?php

$submenu = (include '_submenu.php');
return array(array("url" => array("route" => "/newsEvent/index"), "label" => Yii::t('admin', 'Slider Show'), "visible" => UserAccess::checkAccess("NewsEventIndex", Yii::app()->user->Id)), array("url" => array("route" => "/product/index"), "label" => Yii::t('admin', 'Sản phẩm'), "visible" => UserAccess::checkAccess("NewsEventIndex", Yii::app()->user->Id)), array("url" => array("route" => "/Html"), "label" => Yii::t('admin', 'Giới thiệu'), "visible" => UserAccess::checkAccess("NewsEventIndex", Yii::app()->user->Id)), array("url" => array("route" => "/Contact"), "label" => Yii::t('admin', 'Liên hệ'), "visible" => UserAccess::checkAccess("NewsEventIndex", Yii::app()->user->Id)), array("url" => array("route" => "/Services"), "label" => Yii::t('admin', 'Dịch vụ'), "visible" => UserAccess::checkAccess("ServicesIndex", Yii::app()->user->Id)));
开发者ID:giangnh264,项目名称:mobileplus,代码行数:4,代码来源:_menu.php


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