當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Crud::filter方法代碼示例

本文整理匯總了PHP中Crud::filter方法的典型用法代碼示例。如果您正苦於以下問題:PHP Crud::filter方法的具體用法?PHP Crud::filter怎麽用?PHP Crud::filter使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Crud的用法示例。


在下文中一共展示了Crud::filter方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: foreach

    <?php 
Crud::searchBox($arr, $webClass);
?>
    <div class="col-md-8 col-xs-12">
        <div class="btn-group">
            <?php 
Crud::viewAll($arr, $webClass);
?>
            <?php 
Crud::exportExcel($arr, $webClass);
?>
            <?php 
Crud::AddButton($arr, $webClass);
?>
            <?php 
Crud::filter($arr, $webClass, $t);
?>
        </div>
    </div>
    <?php 
Crud::filterButton($arr, $webClass, $t);
?>
</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) {
        ?>
開發者ID:CapsuleCorpIndonesia,項目名稱:biji_katak,代碼行數:31,代碼來源:read.php

示例2: foreach

    <?php 
Crud::searchBox($arr, $webClass);
?>
    <div class="col-md-8 col-xs-12">
        <div class="btn-group">
            <?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) {
        ?>
開發者ID:CapsuleCorpIndonesia,項目名稱:biji_katak,代碼行數:31,代碼來源:read.php

示例3: 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::filter方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。