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

equipment

@@ -35,6 +35,9 @@ use think\Db; @@ -35,6 +35,9 @@ use think\Db;
35 class AdminEquipmentController extends AdminBaseController{ 35 class AdminEquipmentController extends AdminBaseController{
36 36
37 public function index(){ 37 public function index(){
  38 +
  39 +
  40 +
38 $Equipment=new EquipmentModel(); 41 $Equipment=new EquipmentModel();
39 $data=$Equipment->paginate(10); 42 $data=$Equipment->paginate(10);
40 $this->assign('data',$data); 43 $this->assign('data',$data);
@@ -6,21 +6,30 @@ @@ -6,21 +6,30 @@
6 <li class="active"><a href="javascript:;">设备列表</a></li> 6 <li class="active"><a href="javascript:;">设备列表</a></li>
7 </ul> 7 </ul>
8 <form class="well form-inline margin-top-20" method="post" action="{:url('AdminEquipment/index')}"> 8 <form class="well form-inline margin-top-20" method="post" action="{:url('AdminEquipment/index')}">
9 - 分类:  
10 - <select class="form-control" name="category" style="width: 140px;">  
11 - <option value='0'>全部</option>  
12 - {$category_tree|default=''}  
13 - </select> &nbsp;&nbsp;  
14 - 时间: 9 +
  10 + 设备名称:
  11 + <input type="text" class="form-control" name="keyword" style="width: 200px;"
  12 + value="{$keyword|default=''}" placeholder="请输入关键字...">
  13 + 设备名称:
  14 + <input type="text" class="form-control" name="keyword" style="width: 200px;"
  15 + value="{$keyword|default=''}" placeholder="请输入关键字...">
  16 + 设备名称:
  17 + <input type="text" class="form-control" name="keyword" style="width: 200px;"
  18 + value="{$keyword|default=''}" placeholder="请输入关键字...">
  19 + 导入时间:
  20 + <input type="text" class="form-control js-bootstrap-datetime" name="start_time"
  21 + value="{$start_time|default=''}"
  22 + style="width: 140px;" autocomplete="off">-
  23 + <input type="text" class="form-control js-bootstrap-datetime" name="end_time"
  24 + value="{$end_time|default=''}"
  25 + style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
  26 + 导入时间:
15 <input type="text" class="form-control js-bootstrap-datetime" name="start_time" 27 <input type="text" class="form-control js-bootstrap-datetime" name="start_time"
16 value="{$start_time|default=''}" 28 value="{$start_time|default=''}"
17 style="width: 140px;" autocomplete="off">- 29 style="width: 140px;" autocomplete="off">-
18 <input type="text" class="form-control js-bootstrap-datetime" name="end_time" 30 <input type="text" class="form-control js-bootstrap-datetime" name="end_time"
19 value="{$end_time|default=''}" 31 value="{$end_time|default=''}"
20 style="width: 140px;" autocomplete="off"> &nbsp; &nbsp; 32 style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
21 - 关键字:  
22 - <input type="text" class="form-control" name="keyword" style="width: 200px;"  
23 - value="{$keyword|default=''}" placeholder="请输入关键字...">  
24 <input type="submit" class="btn btn-primary" value="搜索"/> 33 <input type="submit" class="btn btn-primary" value="搜索"/>
25 <a class="btn btn-danger" href="{:url('AdminEquipment/index')}">清空</a> 34 <a class="btn btn-danger" href="{:url('AdminEquipment/index')}">清空</a>
26 </form> 35 </form>