waitlist.html 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" >
  21. <script type="text/ecmascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.js"></script>
  22. <script type="text/javascript" src="${ctx}/assets/static/h-ui/js/H-ui.js"></script>
  23. <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
  24. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqueryui/jquery-ui.css" />
  25. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqgrid/css/ui.jqgrid.css" />
  26. <script type="text/ecmascript" src="${ctx}/assets/lib/jqueryui/jquery-ui.js"></script>
  27. <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/i18n/grid.locale-cn.js"></script>
  28. <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/jquery.jqGrid.min.js"></script>
  29. <script type="text/javascript" src="${ctx}/assets/js/base.js"></script>
  30. <script type="text/javascript" src="${ctx}/assets/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
  31. <!--[if IE 6]>
  32. <script type="text/javascript" src="${ctx}/assets/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
  33. <script>DD_belatedPNG.fix('*');</script>
  34. <![endif]-->
  35. <script type="text/javascript">
  36. function refJQ(){
  37. $("#jqGrid").trigger("reloadGrid");
  38. }
  39. $(function() {
  40. $("#jqGrid").jqGrid({
  41. url : '${ctx}/myconsole/leavemessage/getByPageForWait',
  42. editurl:"${ctx}/myconsole/leavemessage/saveOrUpdate",
  43. mtype : "POST",
  44. datatype : "json",
  45. caption:'待回复留言',
  46. prmNames : { //定义表单的主键 // Default valuesprmNames: {page:“page”,rows:“rows”, sort: “sidx”,order: “sord”, search:“_search”, nd:“nd”, npage:null} 当参数为null时不会被发到服务器端
  47. id: "keyid"
  48. },
  49. colModel : [ {
  50. label : '留言编号',
  51. name : 'keyid',
  52. key : true,
  53. editable: false,
  54. hidden:true
  55. }, {
  56. label : '标题 ',
  57. name : 'title',
  58. editable: true,
  59. width : 80,
  60. }, {
  61. label : '留言人姓名 ',
  62. name : 'tname',
  63. editable: true,
  64. width : 80,
  65. }, {
  66. label : '联系电话 ',
  67. name : 'linkphone',
  68. editable: true,
  69. width : 80,
  70. }, {
  71. label : '联系地址 ',
  72. name : 'linkaddress',
  73. editable: true,
  74. width : 80,
  75. }, {
  76. label : '邮政编码 ',
  77. name : 'postalcode',
  78. editable: true,
  79. width : 80,
  80. }, {
  81. label : '单位名称 ',
  82. name : 'corporatename',
  83. editable: true,
  84. width : 80,
  85. }, {
  86. label : '留言内容',
  87. name : 'content',
  88. editable: true,
  89. width : 80,
  90. }, {
  91. label : '留言状态',
  92. name : 'tstate',
  93. editable: true,
  94. width : 40
  95. }, {
  96. label : '留言时间',
  97. name : 'inserttime',
  98. editable: true,
  99. width : 40
  100. } ],
  101. rownumbers : true,//添加左侧行号
  102. viewrecords : true,//是否在浏览导航栏显示记录总数
  103. rowNum : 15,//每页显示记录数
  104. rowList : [10,15,20,30,40,50 ],//用于改变显示行数的下拉列表框的元素数组。
  105. autowidth : true,
  106. height : 'auto',
  107. pager : "#jqGridPager",
  108. });
  109. $('#jqGrid').navGrid('#jqGridPager',
  110. {
  111. edit : false,
  112. add : false,
  113. del : true,
  114. search : true,
  115. view : true,
  116. position : "left",
  117. cloneToTop : true
  118. },{
  119. // 编辑按钮处理区
  120. },{
  121. // 添加按钮处理区
  122. },{
  123. // 删除按钮处理区
  124. afterSubmit: function(response,postdata)
  125. {
  126. var res=eval('(' + response.responseText + ')');
  127. if(res.flag)
  128. {
  129. layer.alert(res.message, {
  130. skin: 'layui-layer-molv' //样式类名
  131. ,closeBtn: 0
  132. });
  133. return [true,res.message,''];
  134. }
  135. else
  136. {
  137. layer.alert(res.message, {
  138. skin: 'layui-layer-molv' //样式类名
  139. ,closeBtn: 0
  140. });
  141. return [false,res.message,''];
  142. }
  143. },errorTextFormat : function(data) {
  144. return 'Error: ' + data.responseText
  145. }
  146. },{
  147. // search options 这里支持多条件查询
  148. multipleSearch: true,
  149. closeAfterSearch: true,
  150. sopt:['eq','ne','cn','nc','lt','le','gt','ge'],
  151. afterSubmit: function(r, data) {
  152. var messageString = r.responseText;
  153. var mesObj = eval('(' + messageString + ')');
  154. return [mesObj.state, mesObj.message];
  155. }
  156. }
  157. ).navButtonAdd('#jqGridPager',{
  158. title:"回复",
  159. caption:"留言回复",
  160. buttonicon:"ui-icon-del",
  161. onClickButton: function(){
  162. var sel=$('#jqGrid').jqGrid('getGridParam','selrow');
  163. if(sel==null){
  164. //alert('请先选择数据');
  165. parent.layer.alert("请先选择需要编辑的行!", {
  166. skin: 'layui-layer-molv' //样式类名
  167. ,closeBtn: 0
  168. });
  169. }else{
  170. layer.open({
  171. type: 2,
  172. title: '留言回复',
  173. shadeClose: true,
  174. shade: 0.8,
  175. area: ['670px', '460px'],
  176. content: '${ctx}/myconsole/leavemessage/selectInfo?keyid='+sel
  177. });
  178. }
  179. },
  180. position : "last"
  181. }
  182. ).navButtonAdd('#jqGridPager',{
  183. title:"导出excel",
  184. caption:"导出excel",
  185. buttonicon:"ui-icon-del",
  186. onClickButton: function(){
  187. window.location.href="${ctx}/myconsole/leavemessage/export?type=wait";
  188. },
  189. position : "last"
  190. }
  191. )
  192. ;
  193. })
  194. </script>
  195. <title>待回复留言</title>
  196. </head>
  197. <body>
  198. <div class="page-container">
  199. <table id="jqGrid"></table>
  200. <div id="jqGridPager"></div>
  201. </div>
  202. <footer class="footer mt-20">
  203. <div class="container">
  204. <p></p>
  205. </div>
  206. </footer>
  207. </body>
  208. </html>