emaillog.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="renderer" content="webkit|ie-comp|ie-stand">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  8. <meta http-equiv="Cache-Control" content="no-siteapp" />
  9. <!--[if lt IE 9]>
  10. <script type="text/javascript" src="${ctx}/assets/lib/html5.js"></script>
  11. <script type="text/javascript" src="${ctx}/assets/lib/respond.min.js"></script>
  12. <script type="text/javascript" src="${ctx}/assets/lib/PIE_IE678.js"></script>
  13. <![endif]-->
  14. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui/css/H-ui.min.css" />
  15. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/H-ui.admin.css" />
  16. <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/Hui-iconfont/1.0.7/iconfont.css" />
  17. <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/icheck/icheck.css" />
  18. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/skin/default/skin.css" id="skin" />
  19. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/style.css" />
  20. <script type="text/ecmascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.js"></script>
  21. <script type="text/javascript" src="${ctx}/assets/static/h-ui/js/H-ui.js"></script>
  22. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqueryui/jquery-ui.css" />
  23. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqgrid/css/ui.jqgrid.css" />
  24. <script type="text/ecmascript" src="${ctx}/assets/lib/jqueryui/jquery-ui.js"></script>
  25. <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/i18n/grid.locale-cn.js"></script>
  26. <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/jquery.jqGrid.min.js"></script>
  27. <script type="text/javascript" src="${ctx}/assets/js/base.js"></script>
  28. <!--[if IE 6]>
  29. <script type="text/javascript" src="${ctx}/assets/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
  30. <script>DD_belatedPNG.fix('*');</script>
  31. <![endif]-->
  32. <script type="text/javascript">
  33. $(function() {
  34. $(window).resize(function(){
  35. $("#tree").setGridWidth($(window).width()-40); 
  36. });
  37. $("#tree").jqGrid({
  38. caption:'邮件/短信日志查看',
  39. url : '${ctx}/myconsole/complaint/log/getEmailLogList',
  40. editurl:"${ctx}/myconsole/loginlog/saveOrUpdate",
  41. mtype : "POST",
  42. datatype : "json",
  43. sidx : "opttime",
  44. sord : "desc",
  45. prmNames : {
  46. id: "keyid", 
  47. oper:"oper",    
  48. addoper:"add",
  49. editoper:"edit",
  50. deloper:"del" 
  51. },
  52. colModel : [{
  53. label : '发送时间',
  54. name : 'recordtime',
  55. editable: true,
  56. width : 60,
  57. formoptions:{
  58. elmsuffix:"*"
  59. },
  60. editrules:{required:true}
  61. },{
  62. label : '发送状态',
  63. name : 'sendstate',
  64. width : 35,
  65. editable: true,
  66. },{
  67. label : '邮箱地址/手机号',
  68. name : 'emailaddress',
  69. width : 80,
  70. editable: true,
  71. edittype:"text"
  72. },{
  73. label : '邮件内容/短信内容',
  74. name : 'infocontent',
  75. width : 200,
  76. editable: true,
  77. edittype:"text"
  78. }],
  79. rownumbers : true,//添加左侧行号
  80. viewrecords : true,//是否在浏览导航栏显示记录总数
  81. rowNum : 10,//每页显示记录数
  82. rowList : [10,15,20,30,40,50 ],//用于改变显示行数的下拉列表框的元素数组。
  83. autowidth : true,
  84. height : 'auto',
  85. pager : "#pager",
  86. });
  87. jQuery('#tree').navGrid('#pager',
  88. // the buttons to appear on the toolbar of the grid
  89. {
  90. edit : false,
  91. add : false,
  92. del : false,
  93. search : true,
  94. refresh : true,
  95. view : true,
  96. position : "left",
  97. cloneToTop : true
  98. },
  99. // options for the Delete Dailog
  100. {
  101. errorTextFormat : function(data) {
  102. return 'Error: ' + data.responseText
  103. }
  104. },{},{},{
  105. // search options 这里支持多条件查询
  106. multipleSearch: true,
  107. sopt:['eq','ne','cn','nc','lt','le','gt','ge'],
  108. afterSubmit: function(r, data) {
  109. var messageString = r.responseText;
  110. var mesObj = eval('(' + messageString + ')');
  111. return [mesObj.state, mesObj.message];
  112. }
  113. }
  114. );
  115. /* jQuery('#tree').jqGrid('bindKeys'); */
  116. })
  117. </script>
  118. <title>我的桌面</title>
  119. </head>
  120. <body>
  121. <div class="page-container">
  122. <table id="tree"></table>
  123. <div id="pager"></div>
  124. </div>
  125. <footer class="footer mt-20">
  126. <div class="container">
  127. <p></p>
  128. </div>
  129. </footer>
  130. </body>
  131. </html>