作者 董瑞恩
1 个管道 的构建 通过 耗费 2 秒

equipment

... ... @@ -35,6 +35,9 @@ use think\Db;
class AdminEquipmentController extends AdminBaseController{
public function index(){
$Equipment=new EquipmentModel();
$data=$Equipment->paginate(10);
$this->assign('data',$data);
... ...
... ... @@ -6,21 +6,30 @@
<li class="active"><a href="javascript:;">设备列表</a></li>
</ul>
<form class="well form-inline margin-top-20" method="post" action="{:url('AdminEquipment/index')}">
分类:
<select class="form-control" name="category" style="width: 140px;">
<option value='0'>全部</option>
{$category_tree|default=''}
</select> &nbsp;&nbsp;
时间:
设备名称:
<input type="text" class="form-control" name="keyword" style="width: 200px;"
value="{$keyword|default=''}" placeholder="请输入关键字...">
设备名称:
<input type="text" class="form-control" name="keyword" style="width: 200px;"
value="{$keyword|default=''}" placeholder="请输入关键字...">
设备名称:
<input type="text" class="form-control" name="keyword" style="width: 200px;"
value="{$keyword|default=''}" placeholder="请输入关键字...">
导入时间:
<input type="text" class="form-control js-bootstrap-datetime" name="start_time"
value="{$start_time|default=''}"
style="width: 140px;" autocomplete="off">-
<input type="text" class="form-control js-bootstrap-datetime" name="end_time"
value="{$end_time|default=''}"
style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
导入时间:
<input type="text" class="form-control js-bootstrap-datetime" name="start_time"
value="{$start_time|default=''}"
style="width: 140px;" autocomplete="off">-
<input type="text" class="form-control js-bootstrap-datetime" name="end_time"
value="{$end_time|default=''}"
style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
关键字:
<input type="text" class="form-control" name="keyword" style="width: 200px;"
value="{$keyword|default=''}" placeholder="请输入关键字...">
<input type="submit" class="btn btn-primary" value="搜索"/>
<a class="btn btn-danger" href="{:url('AdminEquipment/index')}">清空</a>
</form>
... ...