shanghu.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <include file="public@header" />
  2. </head>
  3. <body>
  4. <div class="wrap js-check-wrap">
  5. <ul class="nav nav-tabs">
  6. <li class="active"><a href="{:url('Message/shanghu')}">商户分配</a></li>
  7. <li><a href="{:url('Message/add')}">添加咨询</a></li>
  8. <li><a href="{:url('Message/index')}">加盟咨询</a></li>
  9. </ul>
  10. <div>
  11. <form class="well form-inline margin-top-20" method="get" action="{:url('Message/shanghu')}">
  12. 商户名:
  13. <input type="text" class="form-control" name="shname" style="width: 300px;" value="{$shname}" placeholder="请输入商户名">
  14. <input type="submit" class="btn btn-primary" value="搜索" />
  15. <a class="btn btn-danger" href="{:url('Message/shanghu')}">清空</a>
  16. </form>
  17. <form method="post" action="{:url('Message/fenpei')}">
  18. <table class="table table-hover table-bordered">
  19. <thead>
  20. <tr>
  21. <!-- <th width="40"><input type="checkbox" onclick="checkall(this.form);"></th> -->
  22. <th width="150">商户名</th>
  23. <th>已分配分类</th>
  24. <th width="200">开始时间</th>
  25. <th width="200">结束时间</th>
  26. <th width="200">分配时间</th>
  27. <th width="120">操作</th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. <foreach name="lists" item="vo">
  32. <tr>
  33. <!-- <td><input type="checkbox" name="msg[]" value="{$vo.id}"></td> -->
  34. <td>{$vo.user_login}</td>
  35. <td>
  36. <?php
  37. if($vo['cates']!=''){
  38. $fenlei = explode(",",$vo['cates']);
  39. foreach($fenlei as $kk=>$vv){
  40. if(isset($cate_arr[$vv])){
  41. echo $cate_arr[$vv];
  42. echo "&nbsp;&nbsp;";
  43. }
  44. }
  45. }
  46. ?>
  47. </td>
  48. <td><if condition="$vo['from_time']">{:date('Y-m-d H:i:s',$vo['from_time'])}</if></td>
  49. <td><if condition="$vo['from_time']">{:date('Y-m-d H:i:s',$vo['end_time'])}</if></td>
  50. <td><if condition="$vo['from_time']">{:date('Y-m-d H:i:s',$vo['create_time'])}</if></td>
  51. <td>
  52. <a class="btn btn-xs btn-primary" href='{:url("Message/shanghuEdit",array("userid"=>$vo["shid"]))}'>分配调整</a>
  53. </td>
  54. </tr>
  55. </foreach>
  56. </tbody>
  57. </table>
  58. </form>
  59. <div class="pagination">{$lists->render()}</div>
  60. </div>
  61. <script src="__STATIC__/js/admin.js"></script>
  62. <script>
  63. function checkall(f, t) {
  64. var t = t ? t : 1;
  65. for(var i = 0; i < f.elements.length; i++) {
  66. var e = f.elements[i];
  67. if(e.type != 'checkbox') continue;
  68. if(e.name=='msg[]'){
  69. if(t == 1) e.checked = e.checked ? false : true;
  70. if(t == 2) e.checked = true;
  71. if(t == 3) e.checked = false;
  72. }
  73. }
  74. }
  75. </script>
  76. </div>
  77. </body>
  78. </html>