本文整理汇总了PHP中Crud::searchBox方法的典型用法代码示例。如果您正苦于以下问题:PHP Crud::searchBox方法的具体用法?PHP Crud::searchBox怎么用?PHP Crud::searchBox使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Crud
的用法示例。
在下文中一共展示了Crud::searchBox方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: time
<?php
//pr($arr);
//pr($return);
$c = $classname;
$t = time() - 10000000;
?>
<h1><?php
echo Lang::t($classname);
?>
</h1>
<div class="row hidden-print" style="margin-bottom: 10px;">
<?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>
示例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") {
//.........这里部分代码省略.........