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


PHP role::view_check方法代码示例

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


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

示例1: confirm

                                                    <a class="sysiconBtnNoIcon" href="/manage/theme/set/<?php 
    echo $item['id'];
    ?>
">使用</a>
                                                    <?php 
    echo role::view_check('<a class="sysiconBtnNoIcon" href="/manage/theme/edit/' . $item['id'] . '">编辑</a>', 'theme_config');
    ?>
                                                    <?php 
    echo role::view_check('<a class="sysiconBtnNoIcon" href="/manage/theme/config/' . $item['id'] . '">配置</a>', 'theme_config');
    ?>
                                                    <a target="_blank" class="sysiconBtnNoIcon" href="/manage/theme/view_theme_img/<?php 
    echo $item['id'];
    ?>
">查看</a>
                                                    <?php 
    echo role::view_check('<a class="sysiconBtnNoIcon" onclick="return confirm(\'确认模板?\');" href="/manage/theme/delete/' . $item['id'] . '">删除</a>', 'theme_delete');
    ?>
                                                </div>
                                            </div>
                                            <span style="color:#ccc; font-size: 11px; font-weight: normal;"> 更新时间:<?php 
    echo $item['add_time'];
    ?>
</span> </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        <?php 
}
?>
                    </div>
开发者ID:RenzcPHP,项目名称:3dproduct,代码行数:31,代码来源:theme_list.php

示例2: foreach

                     <?php 
    foreach ($actions as $value) {
        ?>
                    <tr id="<?php 
        echo $value['level_depth'];
        ?>
" name="<?php 
        echo $value['id'];
        ?>
" class="row">
                        <!-- <td><input class="sel" name="menu_ids[]" value="<?php 
        echo $value['id'];
        ?>
" type="checkbox" /></td> -->
                        <td><?php 
        echo role::view_check('<a href="' . url::base() . 'manage/action/edit/' . $value['id'] . '" >编辑</a>', 'action_edit');
        ?>
                        </td>
                        <?php 
        foreach ($list_columns as $column_key => $column_value) {
            if ($column_value['column'] == 'name') {
                ?>
                        <td><img onclick="rowClicked(this);" style="margin-left:<?php 
                echo $value['level_depth'];
                ?>
em;" src="<?php 
                echo url::base();
                ?>
images/icon_dot2.gif">
                        <?php 
                echo $value[$column_value['column']];
开发者ID:RenzcPHP,项目名称:3dproduct,代码行数:31,代码来源:action_list.php

示例3: foreach

    foreach ($carrier_list as $rs) {
        ?>
                <tr>
                    <td><input class="sel" name="carrierids[]" value="<?php 
        echo $rs['id'];
        ?>
" type="checkbox" /></td>
                    <td><a href="<?php 
        echo url::base();
        ?>
site/carrier/edit/<?php 
        echo $rs['id'];
        ?>
">编辑</a>
                                <?php 
        echo role::view_check('<a href="' . url::base() . 'site/carrier/do_delete/' . $rs['id'] . '" onclick="javascript:return confirm(\'确定删除?\')" >删除</a>', 'site_carrier_delete');
        ?>
                    </td>
                    <td onclick="javascript:$('#group_<?php 
        echo $rs['id'];
        ?>
').toggle();">
                                <?php 
        echo kohana::config('product.carrier_type.' . $rs['type']);
        ?>
&nbsp;
                                <?php 
        if ($rs['type']) {
            ?>
                        <a href="javascript:void(0);" class="carrier_range_add" carrier_id="<?php 
            echo $rs['id'];
开发者ID:RenzcPHP,项目名称:3dproduct,代码行数:31,代码来源:carrier_list.php

示例4: foreach

    foreach ($roles as $value) {
        ?>
                <tr>
                    <!-- <td><input class="sel" name="role_ids[]" value="<?php 
        echo $value['id'];
        ?>
" type="checkbox" /></td> -->
                    <td><?php 
        echo role::view_check('<a href="/manage/role/edit/' . $value['id'] . '">编辑</a>', 'role_edit');
        ?>
                        <a href="/manage/role/view_rule/<?php 
        echo $value['id'];
        ?>
" >权限</a>
                                <?php 
        echo role::view_check('<a href="/manage/role/rule/' . $value['id'] . '">权限设置</a>', 'role_edit');
        ?>
                                <?php 
        //echo role::view_check('<a href="/manage/role/delete/' . $value['id'] . '" onclick="return confirm(\'确认删除?\');">删除</a>', 'role_edit');
        ?>
                    </td>
                            <?php 
        foreach ($list_columns as $column_key => $column_value) {
            echo '<td>' . $value[$column_value['column']] . '</td>';
        }
        ?>
                    <td></td>
                </tr>
                    <?php 
    }
    ?>
开发者ID:RenzcPHP,项目名称:3dproduct,代码行数:31,代码来源:role_list.php

示例5: foreach

                     <?php 
    foreach ($categories as $value) {
        ?>
                    <tr id="<?php 
        echo $value['level_depth'];
        ?>
" name="<?php 
        echo $value['id'];
        ?>
" class="row">
                        <!-- <td><input class="sel" name="doc_category_ids[]" value="<?php 
        echo $value['id'];
        ?>
" type="checkbox" /></td> -->
                        <td><?php 
        echo role::view_check('<a href="' . url::base() . 'site/doc_category/edit?id=' . $value['id'] . '" >编辑</a>', 'action_edit');
        ?>
                        </td>
                        <?php 
        foreach ($list_columns as $column_key => $column_value) {
            if ($column_value['column'] == 'category_name') {
                ?>
                        <td><img onclick="rowClicked(this);" style="margin-left:<?php 
                echo $value['level_depth'];
                ?>
em;" src="<?php 
                echo url::base();
                ?>
images/icon_dot2.gif">
                        &nbsp;<img src="<?php 
                echo url::base();
开发者ID:RenzcPHP,项目名称:3dproduct,代码行数:31,代码来源:doc_category_list.php

示例6: foreach

                </thead>
                <tbody>
                        <?php 
    foreach ($country_list as $rs) {
        ?>
                    <tr>
                        <td><input class="sel" name="country_ids[]" value="<?php 
        echo $rs['id'];
        ?>
" type="checkbox" /></td>
                        <td>
                                    <?php 
        echo role::view_check('<a href="' . url::base() . 'site/country/get/' . $rs['id'] . '">编辑</a>', 'site_country');
        ?>
                                    <?php 
        echo role::view_check('<a class="act_dodelete" href="' . url::base() . 'site/country/delete/' . $rs['id'] . '">删除</a>', 'site_country_delete');
        ?>
                        </td>
                        <td><?php 
        echo $rs['iso_code'];
        ?>
</td>
                        <td><?php 
        echo $rs['name'];
        ?>
</td>
                        <td><?php 
        echo $rs['name_manage'];
        ?>
</td>
                        <td>
开发者ID:RenzcPHP,项目名称:3dproduct,代码行数:31,代码来源:country_manage_list.php

示例7:

        <div class="newgrid_tab fixfloat">
            <ul>
                <li class="on"><a href='<?php 
echo url::base() . 'site/doc/';
?>
'>站点文案列表</a></li>
            </ul>
        </div>
        <div class="newgrid_top">
            <ul class="pro_oper">
                <li>
                    <a href="/site/doc/add"><span class="add_pro">添加文案</span></a>
                </li>
                <li><a href="javascript:void(0);"><span class="del_pro" id="batch_delete">批量删除</span></a></li>
                <?php 
echo role::view_check('<li><a href="/site/doc_category/"><span class="add_word">文案分类管理</span></a></li>', 'doc_category');
?>
            </ul>
        </div>
        <?php 
if (is_array($data) && count($data)) {
    ?>
        <table  cellspacing="0">
        <form id="list_form" name="list_form" method="post" action="<?php 
    echo url::base() . url::current();
    ?>
">
                <thead>
                    <tr class="headings">
                        <th width="20"><input type="checkbox" id="check_all"></th>
                        <th width="100">操作</th>
开发者ID:RenzcPHP,项目名称:3dproduct,代码行数:31,代码来源:doc_list.php

示例8: foreach

                </thead>
                <tbody>
                        <?php 
    foreach ($currency_list as $rs) {
        ?>
                    <tr>
                        <td><input class="sel" name="currency_ids[]" value="<?php 
        echo $rs['id'];
        ?>
" type="checkbox" /></td>
                        <td>
                            <?php 
        echo role::view_check('<a href="' . url::base() . 'site/currency/edit/' . $rs['id'] . '">编辑</a>', 'site_currency');
        ?>
                            <?php 
        echo role::view_check('<a href="' . url::base() . 'site/currency/do_delete/' . $rs['id'] . '" onclick="return confirm(\'确认删除?\');">删除</a>', 'site_currency_delete');
        ?>
                        </td>
                        <td><?php 
        echo $rs['code'];
        ?>
</td>
                        <td><?php 
        echo $rs['name'];
        ?>
</td>
                        <td><?php 
        echo $rs['sign'];
        ?>
</td>
                        <td><?php 
开发者ID:RenzcPHP,项目名称:3dproduct,代码行数:31,代码来源:currency_list.php

示例9: foreach

                </thead>
                <tbody>
                        <?php 
    foreach ($country_list as $rs) {
        ?>
                    <tr>
                        <td><input class="sel" name="country_ids[]" value="<?php 
        echo $rs['id'];
        ?>
" type="checkbox" /></td>
                        <td>
                                    <?php 
        echo role::view_check('<a href="' . url::base() . 'site/country/edit/' . $rs['id'] . '">编辑</a>', 'site_country');
        ?>
                                    <?php 
        echo role::view_check('<a href="' . url::base() . 'site/country/do_delete/' . $rs['id'] . '" onclick="return confirm(\'删除会导致国家对应的物流信息也被删除,确认删除?\');">删除</a>', 'site_country_delete');
        ?>
                        </td>
                        <td><?php 
        echo $rs['iso_code'];
        ?>
</td>
                        <td><?php 
        echo $rs['name'];
        ?>
</td>
                        <td>
                            <div class="new_float_parent">
                                <input type="text" class="text" size="4" name="position" value="<?php 
        echo $rs['position'];
        ?>
开发者ID:RenzcPHP,项目名称:3dproduct,代码行数:31,代码来源:country_list.php

示例10: confirm

                        <a href="<?php 
            echo url::base();
            ?>
manage/manager/rule_view/id/<?php 
            echo $value['id'];
            ?>
">权限列表</a>
                        <a href="<?php 
            echo url::base();
            ?>
manage/manager/rule/<?php 
            echo $value['id'];
            ?>
">权限设置</a>
                        <?php 
            echo role::view_check('<a href="' . url::base() . 'manage/manager/delete/' . $value['id'] . '" onclick="return confirm(\'确认删除?\');">删除</a>', 'delete_merchant');
            ?>
                        <?php 
        }
        ?>
                    </td>
                            <?php 
        foreach ($list_columns as $column_key => $column_value) {
            //zhu add
            if ($column_value['column'] == 'role_name') {
                echo '<td>' . ($value[$column_value['column']] ? $value[$column_value['column']] : '单独分配') . '</td>';
            } else {
                echo '<td>' . $value[$column_value['column']] . '</td>';
            }
        }
        ?>
开发者ID:RenzcPHP,项目名称:3dproduct,代码行数:31,代码来源:manager_list.php

示例11: foreach

                     <?php 
if (is_array($mail_categories) && count($mail_categories)) {
    ?>
                     <?php 
    foreach ($mail_categories as $value) {
        ?>
                    <tr>
                        <!-- <td><input class="sel" name="mail_category_id[]" value="<?php 
        echo $value['id'];
        ?>
" type="checkbox" /></td> -->
                        <td><?php 
        echo role::view_check('<a href="' . url::base() . 'manage/mail_category/edit/' . $value['id'] . '" >编辑</a>', 'mail_category_edit');
        ?>
                            <?php 
        echo role::view_check('<a href="' . url::base() . 'manage/mail_category/delete/' . $value['id'] . '" onclick="return confirm(\'确认删除?\');">删除</a>', 'mail_category_edit');
        ?>
                        </td>
                        <?php 
        foreach ($list_columns as $column_key => $column_value) {
            echo '<td>' . $value[$column_value['column']] . '</td>';
        }
        ?>
                    </tr>
                     <?php 
    }
    ?>
                     <?php 
}
?>
                </tbody>
开发者ID:RenzcPHP,项目名称:3dproduct,代码行数:31,代码来源:mail_category_list.php

示例12:

            <ul class="pro_oper">
                <?php 
echo role::view_check('<li><a href="javascript:void(0);" id="do_export"><span class="batch_pro">导出订单</span></a></li>', 'order_export');
?>

                <li class="down" id="export_product"><span class="batch_pro left">批量操作</span><span class="down_arrow left"></span>
                    <ul class="level_2">
                        <li><a id="shipping_processing" href="javascript:void(0)">批量配货</a></li>
                        <?php 
/* 可显示废除按钮的状态 */
?>
                        <?php 
if (in_array($status, $show_cancel_btn_quick_search)) {
    ?>
                            <?php 
    echo role::view_check('<li><a href="javascript:void(0);" id="order_cancel">批量废除</a></li>', 'order_edit');
    ?>
                        <?php 
}
?>
                    </ul>
                </li>
            </ul>
            <form action="/order/order" method="GET" name="search_form" class="new_search" id="search_form">
                <input type="hidden" value="0" id="adv_bar_nor" name="adv_bar">
                <div>搜索:
                    <select name="search_type" class="text">
                        <option value="order_num" <?php 
if ($where['search_type'] == 'order_num') {
    echo "SELECTED";
}
开发者ID:RenzcPHP,项目名称:3dproduct,代码行数:31,代码来源:order_list.php


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