noticelist.html 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <include file="Public:header"/>
  2. <div id="main-content">
  3. <div id="top-alert" class="fixed alert alert-error" style="display: none;">
  4. <button class="close fixed" style="margin-top: 4px;">&times;</button>
  5. <div class="alert-content">警告内容</div>
  6. </div>
  7. <div id="main" class="main">
  8. <div class="main-title-h">
  9. <span class="h1-title">发送通知记录</span>
  10. <div class="fr">
  11. <button class="btn btn-warning" onClick="location.href='{:U('User/noticelist')}'">初始化搜索</button>
  12. </div>
  13. </div>
  14. <div>
  15. <div class="cf">
  16. <div class="fl">
  17. <button class="btn ajax-post confirm btn-danger " url="{:U('User/noticedel',array('type'=>'1'))}" target-form="ids">删 除</button>
  18. </div>
  19. <div class="search-form fr cf" style="float: none !important;">
  20. <div class="sleft">
  21. <form name="formSearch" id="formSearch" method="get" name="form1">
  22. <input type="text" name="username" class="search-input form-control " value="{$Think.get.username}" placeholder="请输入查询内容" style="">
  23. <a class="sch-btn" href="javascript:;" id="search"> <i class="btn-search"></i> </a>
  24. </form>
  25. <script>
  26. //搜索功能
  27. $(function () {
  28. $('#search').click(function () {
  29. $('#formSearch').submit();
  30. });
  31. });
  32. //回车搜索
  33. $(".search-input").keyup(function (e) {
  34. if (e.keyCode === 13) {
  35. $("#search").click();
  36. return false;
  37. }
  38. });
  39. </script>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. <div class="data-table table-striped">
  45. <table class="">
  46. <thead>
  47. <tr>
  48. <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
  49. <th class="">ID</th>
  50. <th class="">会员账号</th>
  51. <th class="">通知标题</th>
  52. <th class="">通知内容</th>
  53. <th class="">发送时间</th>
  54. <th class="">状态</th>
  55. </tr>
  56. </thead>
  57. <tbody>
  58. <notempty name="list">
  59. <volist name="list" id="vo">
  60. <tr>
  61. <td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}"/></td>
  62. <td>{$vo.id}</td>
  63. <td>{$vo.account}</td>
  64. <td>{$vo.title}</td>
  65. <td>{$vo.content}</td>
  66. <td>{$vo.addtime}</td>
  67. <td>
  68. <if condition="$vo.status eq 1">
  69. <span style="color:red;">未读</span>
  70. <elseif condition="$vo.status eq 2" />
  71. <span style="color:green;">已读</span>
  72. </if>
  73. </td>
  74. </tr>
  75. </volist>
  76. <else/>
  77. <td colspan="12" class="text-center empty-info"><i class="glyphicon glyphicon-exclamation-sign"></i>暂无数据</td>
  78. </notempty>
  79. </tbody>
  80. </table>
  81. <div class="page">
  82. <div>{$page}</div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. <include file="Public:footer"/>
  88. <block name="script">
  89. <script type="text/javascript" charset="utf-8">
  90. //导航高亮
  91. highlight_subnav("{:U('User/noticelist')}");
  92. </script>
  93. </block>