index.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {extend name="../../admin/view/main"}
  2. {block name="button"}
  3. <!--{if auth("remove")}-->
  4. <button class='layui-btn layui-btn-sm layui-btn-primary' data-action='{:url("remove")}' data-confirm="确实要删除这些记录吗?" data-rule="id#{key}">删除记录</button>
  5. <!--{/if}-->
  6. {/block}
  7. {block name="content"}
  8. <div class="think-box-shadow">
  9. {include file='user/message/index_search'}
  10. <table class="layui-table margin-top-10" lay-skin="line">
  11. {notempty name='list'}
  12. <thead>
  13. <tr>
  14. <th class='list-table-check-td think-checkbox'>
  15. <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
  16. </th>
  17. <th class='text-left nowrap'>目标手机</th>
  18. <th class='text-left nowrap'>短信内容</th>
  19. <th class='text-left nowrap'>执行结果</th>
  20. <th class='text-left nowrap'>发送时间</th>
  21. <th></th>
  22. </tr>
  23. </thead>
  24. {/notempty}
  25. <tbody>
  26. {foreach $list as $key=>$vo}
  27. <tr>
  28. <td class='list-table-check-td think-checkbox'>
  29. <label><input class="list-check-box" type='checkbox' value='{$vo.id}'></label>
  30. </td>
  31. <td>{$vo.phone|default=''}</td>
  32. <td>{$vo.content|default=''}</td>
  33. <td>
  34. {if $vo.status eq 0}<b class="color-red margin-right-5">失败</b>{/if}
  35. {if $vo.status eq 1}<b class="color-green margin-right-5">成功</b>{/if}
  36. {$vo.result|default=''}
  37. </td>
  38. <td>{$vo.create_at|default=''}<br></td>
  39. <td>
  40. <!--{if auth("remove")}-->
  41. <a class="layui-btn layui-btn-xs layui-btn-danger" data-action="{:url('remove')}" data-confirm="确定要删除数据吗?" data-value="id#{$vo.id}">删 除</a>
  42. <!--{/if}-->
  43. </td>
  44. </tr>
  45. {/foreach}
  46. </tbody>
  47. </table>
  48. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  49. </div>
  50. {/block}