list.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <div class="subject">
  6. <h3>{$Think.lang.wechat_message_send}</h3>
  7. </div>
  8. <a href="javascript:dsLayerOpen('{:url('Wechat/Sendgroup')}','{$Think.lang.ds_add}{$Think.lang.keywords}')" class="btn btn-small" style="float: right">{$Think.lang.sendgroup}</a>
  9. </div>
  10. </div>
  11. <table class="ds-default-table">
  12. <thead>
  13. <tr>
  14. <th class="w24"></th>
  15. <th style="width: 10%">{$Think.lang.tomember}</th>
  16. <th style="width: 10%">{$Think.lang.totype}</th>
  17. <th style="width: 40%">{$Think.lang.content}</th>
  18. <th style="width: 20%">{$Think.lang.totime}</th>
  19. <th style="width: 10%">{$Think.lang.state}</th>
  20. <th style="width: 10%">{$Think.lang.ds_handle}</th>
  21. </tr>
  22. </thead>
  23. {notempty name="lists"}
  24. <tbody>
  25. {foreach name="lists" item="list"}
  26. <tr>
  27. <td><input type="checkbox" class="checkitem" name="id[]" value="{$list.id}" /></td>
  28. <td>{$list.member_name}</td>
  29. <td>{$list.type}</td>
  30. <td>{$list.content|raw}</td>
  31. <td>{:date('Y-m-d H:i:s',$list.createtime)}</td>
  32. <td>{if $list.issend}{$Think.lang.issend_1}{else/}<span style="color: red">{$Think.lang.issend_0}</span>{/if}</td>
  33. <td>
  34. <a href="javascript:submit_delete({$list.id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
  35. </td>
  36. </tr>
  37. {/foreach}
  38. </tbody>
  39. <tfoot>
  40. {notempty name="lists"}
  41. <tr class="tfoot">
  42. <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
  43. <td colspan="16"><label for="checkallBottom">{$Think.lang.ds_select_all}</label>
  44. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
  45. </td>
  46. </tr>
  47. {/notempty}
  48. </tfoot>
  49. {else /}
  50. <tbody>
  51. <tr class="no_data">
  52. <td colspan="20">{$Think.lang.no_record}</td>
  53. </tr>
  54. </tbody>
  55. {/notempty}
  56. </table>
  57. {$show_page|raw}
  58. </div>
  59. <div class="ncap-form-default show_new" id="dialog" style="display: none">
  60. <form method="post">
  61. <dl>
  62. <dt>{$Think.lang.wechat_title}</dt>
  63. <dd>
  64. <input type="text" name="title" id="Title" style="width: 300px" value="">
  65. </dd>
  66. </dl>
  67. <dl>
  68. <dt>{$Think.lang.wechat_digest}</dt>
  69. <dd>
  70. <input type="text" name="description" id="Description" style="width: 300px">
  71. </dd>
  72. </dl>
  73. <dl>
  74. <dt>{$Think.lang.wechat_file}</dt>
  75. <dd>
  76. <input type="file" name="s_pic">
  77. </dd>
  78. </dl>
  79. <dl>
  80. <dt>{$Think.lang.wechat_content_source_url}</dt>
  81. <dd>
  82. <input type="text" name="url" id="Url" style="width: 300px">
  83. </dd>
  84. </dl>
  85. </form>
  86. </div>
  87. <script>
  88. $('.news').click(function() {
  89. $( "#dialog" ).dialog("open");
  90. });
  91. $( "#dialog" ).dialog({
  92. autoOpen: false,
  93. modal: true,
  94. width: 500,
  95. height: 400,
  96. show: {
  97. effect: "explode",
  98. duration: 1000
  99. },
  100. hide: {
  101. effect: "puff",
  102. duration: 1000
  103. }
  104. });
  105. var content= $.attr('content');
  106. </script>
  107. <script type="text/javascript">
  108. function submit_delete(ids_str) {
  109. _uri = ADMINSITEURL + "/Wechat/del_wxmsg.html?id=" + ids_str;
  110. dsLayerConfirm(_uri, '{$Think.lang.ds_ensure_del}');
  111. }
  112. </script>