index.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {// 引入标签库 }
  2. <tagLib name="html" />
  3. <include file="Public:header" />
  4. <load href='__TMPL__Common/js/jquery.bgiframe.js' />
  5. <load href='__TMPL__Common/js/jquery.weebox.js' />
  6. <load href='__TMPL__Common/js/user.js' />
  7. <load href='__TMPL__Common/style/weebox.css' />
  8. <script type="text/javascript">
  9. function show_content(id)
  10. {
  11. $.ajax({
  12. url: ROOT+'?m=PromoteMsgList&a=show_content&id='+id,
  13. data: "ajax=1",
  14. dataType: "json",
  15. success: function(msg){
  16. if(msg.status==0){
  17. alert(msg.info);
  18. }
  19. },
  20. error: function(){
  21. $.weeboxs.open(ROOT+'?m=PromoteMsgList&a=show_content&id='+id, {contentType:'ajax',showButton:false,title:LANG['SHOW_CONTENT'],width:800,height:400});
  22. }
  23. });
  24. //$.weeboxs.open(ROOT+'?m=PromoteMsgList&a=show_content&id='+id, {contentType:'ajax',showButton:false,title:LANG['SHOW_CONTENT'],width:800,height:400});
  25. }
  26. function send(id)
  27. {
  28. $.ajax({
  29. url: ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=send&id="+id,
  30. data: "ajax=1",
  31. success: function(msg){
  32. alert(msg);
  33. }
  34. });
  35. }
  36. </script>
  37. <div class="main">
  38. <div class="main_title_list"><div class="list-line-ico"></div>{$main_title}</div>
  39. <div class="button_row">
  40. </div>
  41. <div class="search_row">
  42. <form name="search" action="__APP__" method="get">
  43. {%SEND_DEST}:<input type="text" class="textbox" name="dest" value="{:trim($_REQUEST['dest'])}" style="width:100px;" />{%CONTENT}:<input type="text" style="margin:0" class="textbox" name="content" value="{:trim($_REQUEST['content'])}" /><input type="hidden" value="PromoteMsgList" name="m" /><input type="hidden" value="index" name="a" /><input type="submit" class="button" value="{%SEARCH}" />
  44. </form>
  45. </div>
  46. <html:list
  47. id="dataTable"
  48. style="dataTable"
  49. name="msg"
  50. checkbox="true"
  51. action="true"
  52. datasource="list"
  53. show="id:{%ID}|90px
  54. ,send_type|get_send_type_msg:{%SEND_TYPE}
  55. ,dest:{%SEND_DEST}
  56. ,title:{%TITLE}
  57. ,content|show_content=$msg['id']:{%CONTENT}
  58. ,create_time|to_date:{%CREATE_TIME}
  59. ,send_time|to_date:{%SEND_TIME}
  60. ,is_send|get_is_send:{%SEND_STATUS}
  61. ,is_success|get_send_result:{%SEND_RESULT}
  62. ,result:{%SEND_INFO}"
  63. actionlist="send:{%SEND_NOW},foreverdel:{%FOREVERDEL}" />
  64. <table class="dataTable">
  65. <tbody>
  66. <td colspan="12">
  67. <input type="button" class="button button-add" value="{%FOREVERDEL}" onclick="foreverdel();" />
  68. <input type="button" id="reset_sending" class="button button-del" value="{%CANCEL_SENDING}" onclick="reset_sending('PROMOTE_MSG_LOCK');" />
  69. </td>
  70. </tbody>
  71. </table>
  72. <div class="page">{$page}</div>
  73. </div>
  74. <include file="Public:footer" />