commentwait.html 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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/commentwait/getByPage',
  42. editurl:"${ctx}/myconsole/commentwait/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 : 'content',
  58. editable: true,
  59. width : 80,
  60. }, {
  61. label : '评论状态',
  62. name : 'tstate',
  63. editable: true,
  64. width : 40
  65. }, {
  66. label : '评论时间',
  67. name : 'inserttime',
  68. editable: true,
  69. width : 40
  70. } ],
  71. rownumbers : true,//添加左侧行号
  72. viewrecords : true,//是否在浏览导航栏显示记录总数
  73. rowNum : 15,//每页显示记录数
  74. rowList : [10,15,20,30,40,50 ],//用于改变显示行数的下拉列表框的元素数组。
  75. autowidth : true,
  76. height : 'auto',
  77. pager : "#jqGridPager",
  78. loadComplete: function() {
  79. if (true){
  80. $('td[title="分配权限"]').show();
  81. }
  82. }
  83. });
  84. $('#jqGrid').navGrid('#jqGridPager',
  85. {
  86. edit : false,
  87. add : false,
  88. del : false,
  89. search : true,
  90. view : true,
  91. position : "left",
  92. cloneToTop : true
  93. },{
  94. // search options 这里支持多条件查询
  95. multipleSearch: true,
  96. closeAfterSearch: true,
  97. sopt:['eq','ne','cn','nc','lt','le','gt','ge'],
  98. afterSubmit: function(r, data) {
  99. var messageString = r.responseText;
  100. var mesObj = eval('(' + messageString + ')');
  101. return [mesObj.state, mesObj.message];
  102. }
  103. }
  104. ).navButtonAdd('#jqGridPager',{
  105. title:"审核",
  106. caption:"评论审核",
  107. buttonicon:"ui-icon-del",
  108. onClickButton: function(){
  109. var sel=$('#jqGrid').jqGrid('getGridParam','selrow');
  110. if(sel==null){
  111. //alert('请先选择数据');
  112. parent.layer.alert("请先选择需要编辑的行!", {
  113. skin: 'layui-layer-molv' //样式类名
  114. ,closeBtn: 0
  115. });
  116. }else{
  117. /* var lzck=$('<div id="dd" style="overflow:hidden"><iframe id="plsh" scrolling="no" frameborder="0" src="${ctx}/myconsole/commentwait/selectInfo?keyid='+sel+'" style="width:100%;height:98%;"></iframe></div>');
  118. lzck.dialog({
  119. title: '评论审核',
  120. width: 600,
  121. height: 350,
  122. closed : false,
  123. cache : false,
  124. modal : true,
  125. }); */
  126. layer.open({
  127. type: 2,
  128. title: '审核评论',
  129. shadeClose: true,
  130. shade: 0.8,
  131. area: ['570px', '360px'],
  132. content: '${ctx}/myconsole/commentwait/selectInfo?keyid='+sel
  133. });
  134. }
  135. },
  136. position : "last"
  137. }
  138. )
  139. ;
  140. })
  141. </script>
  142. <title>待审核评论</title>
  143. </head>
  144. <body>
  145. <div class="page-container">
  146. <table id="jqGrid"></table>
  147. <div id="jqGridPager"></div>
  148. </div>
  149. <footer class="footer mt-20">
  150. <div class="container">
  151. <p></p>
  152. </div>
  153. </footer>
  154. </body>
  155. </html>