index.php 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {extend name="public/container"}
  2. {block name="head_top"}
  3. {/block}
  4. {block name="content"}
  5. <div class="layui-fluid" style="background: #fff;margin-top: -10px;">
  6. <div class="layui-row layui-col-space15">
  7. <div class="layui-col-md12">
  8. <div class="layui-card">
  9. <div class="layui-card-header">搜索条件</div>
  10. <div class="layui-card-body">
  11. <form class="layui-form layui-form-pane" action="">
  12. <div class="layui-form-item">
  13. <div class="layui-inline">
  14. <label class="layui-form-label">发送状态</label>
  15. <div class="layui-input-block">
  16. <select name="status">
  17. <option value="">状态</option>
  18. <option value="100">成功</option>
  19. <option value="130">失败</option>
  20. <option value="131">空号</option>
  21. <option value="132">停机</option>
  22. <option value="134">无状态</option>
  23. </select>
  24. </div>
  25. </div>
  26. <div class="layui-inline">
  27. <label class="layui-form-label">发送账号</label>
  28. <div class="layui-input-block">
  29. <input type="text" name="uid" class="layui-input" placeholder="请输入发送账号">
  30. </div>
  31. </div>
  32. <div class="layui-inline">
  33. <label class="layui-form-label">手机号码</label>
  34. <div class="layui-input-block">
  35. <input type="text" name="phone" class="layui-input" placeholder="请输入手机号码">
  36. </div>
  37. </div>
  38. <div class="layui-inline">
  39. <div class="layui-input-inline">
  40. <button class="layui-btn layui-btn-sm layui-btn-normal" lay-submit="search" lay-filter="search">
  41. <i class="layui-icon layui-icon-search"></i>搜索</button>
  42. </div>
  43. </div>
  44. </div>
  45. </form>
  46. </div>
  47. </div>
  48. <div class="layui-card">
  49. <div class="layui-card-header">短信记录</div>
  50. <div class="layui-card-body">
  51. <table class="layui-hide" id="List" lay-filter="List"></table>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. <script src="{__ADMIN_PATH}js/layuiList.js"></script>
  58. {/block}
  59. {block name="script"}
  60. <script>
  61. //实例化form
  62. layList.form.render();
  63. layList.tableList('List', "{:Url('recordList')}", function () {
  64. return [
  65. {field: 'id', title: 'ID', sort: true, width: '5%'},
  66. {field: 'uid', title: '发送账号', width: '10%'},
  67. {field: 'phone', title: '手机号码', width: '10%'},
  68. {field: 'content', title: '短信内容', width: '45%'},
  69. {field: '_resultcode', title: '发送状态', width: '10%'},
  70. {field: 'add_time', title: '发送时间', sort: true, width: '20%'},
  71. ];
  72. });
  73. //查询
  74. layList.search('search',function(where){
  75. layList.reload(where);
  76. });
  77. </script>
  78. {/block}