| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <include file="public@header" />
- </head>
- <body>
- <div class="wrap js-check-wrap">
- <ul class="nav nav-tabs">
- <li class="active"><a href="{:url('Message/shanghu')}">商户分配</a></li>
- <li><a href="{:url('Message/add')}">添加咨询</a></li>
- <li><a href="{:url('Message/index')}">加盟咨询</a></li>
- </ul>
-
- <div>
- <form class="well form-inline margin-top-20" method="get" action="{:url('Message/shanghu')}">
- 商户名:
- <input type="text" class="form-control" name="shname" style="width: 300px;" value="{$shname}" placeholder="请输入商户名">
- <input type="submit" class="btn btn-primary" value="搜索" />
- <a class="btn btn-danger" href="{:url('Message/shanghu')}">清空</a>
- </form>
- <form method="post" action="{:url('Message/fenpei')}">
- <table class="table table-hover table-bordered">
- <thead>
- <tr>
- <!-- <th width="40"><input type="checkbox" onclick="checkall(this.form);"></th> -->
- <th width="150">商户名</th>
- <th>已分配分类</th>
- <th width="200">开始时间</th>
- <th width="200">结束时间</th>
- <th width="200">分配时间</th>
- <th width="120">操作</th>
- </tr>
- </thead>
- <tbody>
- <foreach name="lists" item="vo">
- <tr>
- <!-- <td><input type="checkbox" name="msg[]" value="{$vo.id}"></td> -->
- <td>{$vo.user_login}</td>
- <td>
- <?php
- if($vo['cates']!=''){
- $fenlei = explode(",",$vo['cates']);
- foreach($fenlei as $kk=>$vv){
- if(isset($cate_arr[$vv])){
- echo $cate_arr[$vv];
- echo " ";
- }
-
- }
- }
- ?>
- </td>
- <td><if condition="$vo['from_time']">{:date('Y-m-d H:i:s',$vo['from_time'])}</if></td>
- <td><if condition="$vo['from_time']">{:date('Y-m-d H:i:s',$vo['end_time'])}</if></td>
-
- <td><if condition="$vo['from_time']">{:date('Y-m-d H:i:s',$vo['create_time'])}</if></td>
-
- <td>
- <a class="btn btn-xs btn-primary" href='{:url("Message/shanghuEdit",array("userid"=>$vo["shid"]))}'>分配调整</a>
- </td>
-
- </tr>
- </foreach>
- </tbody>
- </table>
- </form>
- <div class="pagination">{$lists->render()}</div>
- </div>
- <script src="__STATIC__/js/admin.js"></script>
- <script>
- function checkall(f, t) {
- var t = t ? t : 1;
- for(var i = 0; i < f.elements.length; i++) {
- var e = f.elements[i];
- if(e.type != 'checkbox') continue;
- if(e.name=='msg[]'){
- if(t == 1) e.checked = e.checked ? false : true;
- if(t == 2) e.checked = true;
- if(t == 3) e.checked = false;
- }
- }
- }
- </script>
-
- </div>
- </body>
- </html>
|