index.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {if $founder}
  2. <div id="actionbar">
  3. <div class="fn-left">
  4. <a href="{:url('operate/edit')}" class="button button-blue"> <i class="iconfont icon-add_icon"></i>增加运营商</a>
  5. </div>
  6. <div class="fn-right button-group">
  7. <a href="{:url('operate/index',['lock'=>1])}" class="button{if $lock == 1} button-violet{/if}">正常</a>
  8. <a href="{:url('operate/index',['lock'=>2])}" class="button{if $lock == 2} button-violet{/if}">锁定</a>
  9. </div>
  10. </div>
  11. {/if}
  12. <table class="table">
  13. <thead>
  14. <tr>
  15. <th class="w200">操作</th>
  16. <th class="w200">名称</th>
  17. <th class="w200">创始人</th>
  18. <th class="w100">电话</th>
  19. <th>运营公司</th>
  20. <th class="w120 fn-tac">状态</th>
  21. <th class="w140 fn-tac">创建时间</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. {foreach $lists as $vo}
  26. <tr>
  27. <td class="button-group">
  28. <a class="button" href="{:url('operate/edit',['id'=>$vo.id])}"><i class="iconfont icon-edit"></i>编辑</a>
  29. <a class="button button-green" href="{:url('operate/user',['id' => $vo.id])}"><i class="iconfont icon-my_icon"></i>管理员</a>
  30. </td>
  31. <td>{$vo.operate_name}</td>
  32. <td>{$vo.user.nickname}</td>
  33. <td>{$vo.tel}</td>
  34. <td>{$vo.company}</td>
  35. <td class="fn-tac">
  36. <a class="isAction" url="{:url('operate/isLock',['id'=> $vo.id])}" href="javascript:;" title="设置为默认">
  37. {if $vo.is_lock}<span class="badge bg-red">锁定</span>{else}<span class="badge">锁定</span>{/if}
  38. </a>
  39. </td>
  40. <td class="fn-tac">{$vo.create_time|date='Y-m-d H:i'}</td>
  41. </tr>
  42. {/foreach}
  43. </tbody>
  44. </table>
  45. {$lists|raw}
  46. <script type="text/javascript">
  47. Do('base', 'layer', function () {
  48. $('.isAction').click(function () {
  49. var url = $(this).attr("url");
  50. parent.layer.confirm('确认要设置当前城市',{ icon: 3,title: '友情提示' }, function (index) {
  51. $.getJSON(url,function (data) {
  52. parent.layer.alert(data.msg);
  53. window.location.reload();
  54. });
  55. parent.layer.close(index);
  56. });
  57. })
  58. })
  59. </script>