index.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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('reply/index')}">回复二维码列表</a></li>
  7. <li ><a href="{:url('reply/add')}">添加回复二维码</a></li>
  8. </ul>
  9. <form class="well form-inline margin-top-20" method="get" action="{:url('Reply/index')}">
  10. 回复码二维码名称:
  11. <input type="text" class="form-control" name="act_name" style="width: 180px;" value="{:input('request.user_login/s','')}" placeholder="请输入回复码二维码名称">
  12. <input type="submit" class="btn btn-primary" value="搜索" />
  13. <a class="btn btn-danger" href="{:url('Reply/index')}">清空</a>
  14. </form>
  15. <form class="js-ajax-form" action="" method="post">
  16. <div class="table-actions">
  17. <button class="btn btn-primary btn-sm js-ajax-submit" style=" background-color: #d9534f; width: 38px; border-color: #d9534f;" type="submit"
  18. data-action="{:url('Reply/delreply',array('yes'=>1))}" onclick="return confirm('确定要删除该回复二维码吗?')" data-subcheck="true">删除
  19. </button>
  20. </div>
  21. <table class="table table-hover table-bordered">
  22. <thead>
  23. <tr>
  24. <th width="16">
  25. <label>
  26. <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
  27. </label>
  28. </th>
  29. <th width="50">ID</th>
  30. <th>二维码图片</th>
  31. <th>回复二维码名称</th>
  32. <th>关键字</th>
  33. <th>回复内容</th>
  34. <th style="text-align: center;">增加时间</th>
  35. <th>回复类型</th>
  36. <!-- <th>{:lang('STATUS')}</th> -->
  37. <th width="180">{:lang('ACTIONS')}</th>
  38. </tr>
  39. </thead>
  40. <tbody>
  41. <foreach name="replys" item="vo">
  42. <tr>
  43. <td>
  44. <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
  45. value="{$vo.id}">
  46. </td>
  47. <td>{$vo.id}</td>
  48. <td>
  49. <notempty name="vo.img">
  50. <img src="/upload/{$vo.img}" style="width: 80px;height: 50px;">
  51. </notempty>
  52. </td>
  53. <td>{$vo.title}</td>
  54. <td>{$vo.keyword}</td>
  55. <td>{$vo.content}</td>
  56. <td>{$vo['created_at']}</td>
  57. <td>
  58. <switch name="vo.reply_type">
  59. <case value="0"><font style="color: red"> 图文</font></case>
  60. <case value="1"><font style="color: green"> 活动进群二维码 </font></case>
  61. </switch>
  62. </td>
  63. <td>
  64. <a class="btn btn-xs btn-primary" href="{:url('reply/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
  65. </td>
  66. </tr>
  67. </foreach>
  68. </tbody>
  69. </table>
  70. <div class="pagination">{$page}</div>
  71. </form>
  72. </div>
  73. <script src="__STATIC__/js/admin.js"></script>
  74. <script src="__STATIC__/js/layer/layer.js"></script>
  75. <script >
  76. function getPaike(id){
  77. var addUrl = "{:url('Books/reminder')}?id="+id;
  78. layer.open({
  79. type: 2, //1:页面层,2:iframe层,3:加载层,4:tips层。
  80. title: '时间提醒设置',
  81. shadeClose: false, //不开启遮罩关闭,也就是说,点击弹出层其它地方不会关闭弹出框
  82. shade: 0.8, //遮罩
  83. area: ['470px', '470px'],
  84. content: addUrl,
  85. end: function () { //最后执行reload
  86. location.reload();
  87. }
  88. });
  89. }
  90. </script>
  91. </body>
  92. </html>