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


PHP Backend::checkprivilege方法代码示例

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


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

示例1:

">

                                <?php 
        echo $row['page_name'];
        ?>
 

                            </a>
                        </td>
                        <td><b><?php 
        echo $row['page_alias'];
        ?>
.html</b></td>
                        <td style="white-space:nowrap">                            
                        <?php 
        if ($model->checkprivilege(32)) {
            ?>
                            <a href="index.php?mod=page&act=form&id=<?php 
            echo $row['id'];
            ?>
" title="Click để chỉnh sửa">

                                <i class="fa fa-fw fa-edit"></i>

                            </a>
                            <?php 
        }
        ?>
                        
                            <a title="Click để xóa" href="javascript:;" alias="<?php 
        echo $row['page_name'];
开发者ID:hoangnhonline,项目名称:hoa-tuoi,代码行数:31,代码来源:list.php

示例2:

</a>
                </li>
                <li class="arrow"><img src="img/arrow.png"></li>
                <li>
                    <a href="index.php?mod=cate&act=list-child&parent_id=<?php 
echo $parent_id;
?>
"><?php 
echo $detailParent['cate_name'];
?>
</a>
                </li>
            </ul>
        </div>
        <?php 
if ($model->checkprivilege(7)) {
    ?>
        <button class="btn btn-primary btn-sm right" 
         onclick="location.href='index.php?mod=cate&act=form-child&cate_type_id=<?php 
    echo $cate_type_id;
    ?>
&parent_id=<?php 
    echo $parent_id;
    ?>
'">
        Tạo mới
        </button>
        <?php 
}
?>
        <button class="btn btn-primary btn-sm right" 
开发者ID:hoangnhonline,项目名称:vinawatch,代码行数:31,代码来源:list-child.php

示例3: ceil

$arrTotal = $model->getListArticle($keyword, $cate_id, $tungay, $denngay, $hidden, -1, -1);
$arrListCate = $model->getListCateArticles();
$total_page = ceil($arrTotal['total'] / $limit);
$page = isset($_GET['page']) ? (int) $_GET['page'] : 1;
$link_form .= '&page=' . $page;
$offset = $limit * ($page - 1);
$arrList = $model->getListArticle($keyword, $cate_id, $tungay, $denngay, $hidden, $offset, $limit);
?>



<div class="row">

    <div class="col-md-12">
    <?php 
if ($model->checkprivilege(39)) {
    ?>
    
    <button class="btn btn-primary btn-sm right" onclick="location.href='index.php?mod=articles&act=form<?php 
    echo $link_form;
    ?>
'">Tạo mới</button>        
    <?php 
}
?>
         <div class="box-header">

                <h3 class="box-title">Danh sách bài viết</h3>

            </div><!-- /.box-header -->
开发者ID:hoangnhonline,项目名称:vinawatch,代码行数:30,代码来源:list.php

示例4: Backend

<?php

require_once "model/Backend.php";
$model = new Backend();
$arrList = $model->getListCateArticles();
?>
<div class="row">
    <div class="col-md-12">
        <?php 
if ($model->checkprivilege(35)) {
    ?>
        <button class="btn btn-primary btn-sm right" onclick="location.href='index.php?mod=cate_articles&act=form'">Tạo mới</button>
        <?php 
}
?>
        <div class="box-header">
            <h3 class="box-title">Danh mục bài viết</h3>
        </div><!-- /.box-header -->
        <div class="box">           
            <div class="box-body">
                <table class="table table-bordered table-striped" id="tbl_list">
                    <thead>
                        <tr>
                            <th width="1%">STT </th>
                            <th width="1%"  style="white-space:nowrap">Sắp xếp</th>
                            <th width="30%">Tên danh mục </th>
                           <!-- <th width="20%">Ảnh đại diện</th>-->     
                            <th width="1%" style="white-space:nowrap">SL bài viết </th> 
                            <th width="1%"  style="white-space:nowrap">Trạng thái</th>                                                
                            <th width="1%"  style="white-space:nowrap">Thao tác</th>
                        </tr>
开发者ID:hoangnhonline,项目名称:vinawatch,代码行数:31,代码来源:list.php

示例5:

">
    <input type="hidden" name="is_hot" value="<?php 
echo $is_hot;
?>
">
    <input type="hidden" name="trangthai" value="<?php 
echo $trangthai;
?>
">
</form>


<div class="row">
    <div class="col-md-12">
        <?php 
if ($model->checkprivilege(13)) {
    ?>
        <button class="btn btn-primary btn-sm right" onclick="location.href='index.php?mod=product&act=form<?php 
    echo $link_form;
    ?>
'">Tạo mới</button>
        <?php 
}
?>
        <div class="box-header">
            <h3 class="box-title">Danh sách sản phẩm</h3>
        </div><!-- /.box-header -->
        <div class="box">
            <div class="box_search" style="font-weight:bold;text-align:left">
                <form method="get" id="form_search" name="form_search">
                    <input type="hidden" name="mod" value="product" />
开发者ID:hoangnhonline,项目名称:vinawatch,代码行数:31,代码来源:list.php

示例6: ceil

    $username = '';
}
$listTotal = $model->getListUser($status, $full_name, $username, -1, -1);
$total_record = mysql_num_rows($listTotal);
$total_page = ceil($total_record / 20);
$page = isset($_GET['page']) ? (int) $_GET['page'] : 1;
$offset = 20 * ($page - 1);
$list = $model->getListUser($status, $full_name, $username, $offset, 20);
$arrCity = $model->getListCity();
?>

<div class="row">

    <div class="col-md-12">    
     <?php 
if ($model->checkprivilege(27)) {
    ?>
    <button class="btn btn-primary btn-sm right" onclick="location.href='index.php?mod=user&act=form<?php 
    echo $link_form;
    ?>
'">Tạo mới</button>        
    <?php 
}
?>
        
         <div class="box-header">

                <h3 class="box-title">Danh sách nhân viên</h3>

            </div><!-- /.box-header -->
开发者ID:hoangnhonline,项目名称:hoa-tuoi,代码行数:30,代码来源:list.php

示例7:

                            <td style="text-align:center"><?php 
        echo $customer['status'] == 1 ? "<span style='color:blue'>Bật</span>" : "<span style='color:red'>Tắt</span>";
        ?>
</td>
                            <td style="white-space:nowrap">
                                <a title="Xem đơn hàng" href="index.php?mod=order&act=list-customer&customer_id=<?php 
        echo $customer['id'];
        echo $link_form;
        ?>
"     

                                    <i class="fa fa-fw fa-file-text-o"></i>

                                </a>
                                <?php 
        if ($model->checkprivilege(24)) {
            ?>
                                <a href="index.php?mod=customer&act=form&id=<?php 
            echo $customer['id'];
            echo $link_form;
            ?>
">
                                    <i class="fa fa-fw fa-edit"></i>
                                </a>
                                <?php 
        }
        ?>
                                <?php 
        if ($model->checkprivilege(25)) {
            ?>
                                <a href="javascript:;" alias="<?php 
开发者ID:hoangnhonline,项目名称:vinawatch,代码行数:31,代码来源:list.php


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