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


PHP Crud::filterButton方法代码示例

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


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

示例1: foreach

            <?php 
Crud::viewAll($arr, $webClass);
?>
            <?php 
Crud::exportExcel($arr, $webClass);
?>
            <?php 
Crud::AddButton($arr, $webClass);
?>
            <?php 
Crud::filter($arr, $webClass);
?>
        </div>
    </div>
    <?php 
Crud::filterButton($arr, $webClass);
?>
</div>
<div class="table-responsive">
    <table class="table table-bordered table-striped table-hover" style="background-color: white;">

        <tr>
            <?php 
if (isset($objs[0])) {
    foreach ($objs[0] as $colom => $isi) {
        ?>
                <th id="sort_<?php 
        echo $colom;
        echo $t;
        ?>
"><?php 
开发者ID:CapsuleCorpIndonesia,项目名称:biji_katak,代码行数:31,代码来源:read.php

示例2: bankDiscountModel

    public function bankDiscountModel()
    {
        //create the model object
        $cal = new BankDiscountModel();
        //send the webclass
        $webClass = __CLASS__;
        //run the crud utility
        Crud::run($cal, $webClass);
        ?>
<h1><?php 
        echo Lang::t($webClass);
        ?>
</h1>
<div class="row hidden-print" style="margin-bottom: 10px;">
    <?php 
        if ($obj->crud_setting['search']) {
            Crud::searchBox($arr, $webClass);
        }
        ?>
    <div class="col-md-8 col-xs-12">
        <div class="btn-group">
            <?php 
        if ($obj->crud_setting['viewall']) {
            Crud::viewAll($arr, $webClass);
        }
        ?>
            <?php 
        if ($obj->crud_setting['export']) {
            Crud::exportExcel($arr, $webClass);
        }
        ?>
            <?php 
        if ($obj->crud_setting['import']) {
            Crud::importExcel($arr, $webClass);
        }
        ?>
            <?php 
        if ($obj->crud_setting['add']) {
            Crud::AddButton($arr, $webClass);
        }
        ?>
            <?php 
        if ($obj->crud_setting['toggle']) {
            Crud::filter($arr, $webClass, $t);
        }
        ?>
            <?php 
        if ($obj->crud_setting['webservice']) {
            Crud::listWebService($arr, $webClass);
        }
        ?>
        </div>
    </div>
    <?php 
        if ($obj->crud_setting['toggle']) {
            Crud::filterButton($arr, $webClass, $t);
        }
        ?>
</div>
<div class="table-responsive">
    <table class="table table-bordered table-striped table-hover crud-table" style="background-color: white;">

        <tr>
            <?php 
        if (isset($objs[0])) {
            foreach ($objs[0] as $colom => $isi) {
                if ($colom == "removeAutoCrudClick") {
                    continue;
                }
                ?>
                <th id="sort_<?php 
                echo $colom;
                echo $t;
                ?>
"><?php 
                echo Lang::t($colom);
                ?>
</th>

                <?php 
                Crud::sortBy($arr, $webClass, "sort_" . $colom . $t, $colom);
            }
        }
        ?>
        </tr>

        <?php 
        foreach ($objs as $num => $obj) {
            ?>
            <tr id="<?php 
            echo $c;
            ?>
_<?php 
            echo $obj->{$main_id};
            ?>
">

                <?php 
            foreach ($obj as $colom => $isi) {
                if ($colom == "removeAutoCrudClick") {
//.........这里部分代码省略.........
开发者ID:CapsuleCorpIndonesia,项目名称:martabak_revolution,代码行数:101,代码来源:BankDiscount.php


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