123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="renderer" content="webkit|ie-comp|ie-stand">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
- <meta http-equiv="Cache-Control" content="no-siteapp" />
- <!--[if lt IE 9]>
- <script type="text/javascript" src="${ctx}/assets/lib/html5.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/respond.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/PIE_IE678.js"></script>
- <![endif]-->
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui/css/H-ui.min.css" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/H-ui.admin.css" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/Hui-iconfont/1.0.7/iconfont.css" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/icheck/icheck.css" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/skin/default/skin.css" id="skin" />
- <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/style.css" />
- <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" >
- <script type="text/ecmascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.js"></script>
- <script type="text/javascript" src="${ctx}/assets/static/h-ui/js/H-ui.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
- <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqueryui/jquery-ui.css" />
- <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqgrid/css/ui.jqgrid.css" />
- <script type="text/ecmascript" src="${ctx}/assets/lib/jqueryui/jquery-ui.js"></script>
- <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/i18n/grid.locale-cn.js"></script>
- <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/jquery.jqGrid.min.js"></script>
- <script type="text/javascript" src="${ctx}/assets/js/base.js"></script>
- <script type="text/javascript" src="${ctx}/assets/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
- <!--[if IE 6]>
- <script type="text/javascript" src="${ctx}/assets/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
- <script>DD_belatedPNG.fix('*');</script>
- <![endif]-->
- <script type="text/javascript">
- function refJQ(){
- $("#jqGrid").trigger("reloadGrid");
- }
- $(function() {
- $("#jqGrid").jqGrid({
- url : '${ctx}/myconsole/commentwait/getByPage',
- editurl:"${ctx}/myconsole/commentwait/saveOrUpdate",
- mtype : "POST",
- datatype : "json",
- caption:'待审核评论',
- prmNames : { //定义表单的主键 // Default valuesprmNames: {page:“page”,rows:“rows”, sort: “sidx”,order: “sord”, search:“_search”, nd:“nd”, npage:null} 当参数为null时不会被发到服务器端
- id: "keyid"
- },
- colModel : [ {
- label : '评论编号',
- name : 'keyid',
- key : true,
- editable: false,
- hidden:true
- }, {
- label : '评论内容',
- name : 'content',
- editable: true,
- width : 80,
- }, {
- label : '评论状态',
- name : 'tstate',
- editable: true,
- width : 40
- }, {
- label : '评论时间',
- name : 'inserttime',
- editable: true,
- width : 40
- } ],
- rownumbers : true,//添加左侧行号
- viewrecords : true,//是否在浏览导航栏显示记录总数
- rowNum : 15,//每页显示记录数
- rowList : [10,15,20,30,40,50 ],//用于改变显示行数的下拉列表框的元素数组。
- autowidth : true,
- height : 'auto',
- pager : "#jqGridPager",
- loadComplete: function() {
- if (true){
- $('td[title="分配权限"]').show();
- }
- }
- });
- $('#jqGrid').navGrid('#jqGridPager',
- {
- edit : false,
- add : false,
- del : false,
- search : true,
- view : true,
- position : "left",
- cloneToTop : true
- },{
- // search options 这里支持多条件查询
- multipleSearch: true,
- closeAfterSearch: true,
- sopt:['eq','ne','cn','nc','lt','le','gt','ge'],
- afterSubmit: function(r, data) {
- var messageString = r.responseText;
- var mesObj = eval('(' + messageString + ')');
- return [mesObj.state, mesObj.message];
- }
- }
- ).navButtonAdd('#jqGridPager',{
- title:"审核",
- caption:"评论审核",
- buttonicon:"ui-icon-del",
- onClickButton: function(){
- var sel=$('#jqGrid').jqGrid('getGridParam','selrow');
- if(sel==null){
- //alert('请先选择数据');
- parent.layer.alert("请先选择需要编辑的行!", {
- skin: 'layui-layer-molv' //样式类名
- ,closeBtn: 0
- });
- }else{
-
- /* 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>');
-
- lzck.dialog({
- title: '评论审核',
- width: 600,
- height: 350,
- closed : false,
- cache : false,
- modal : true,
- }); */
- layer.open({
- type: 2,
- title: '审核评论',
- shadeClose: true,
- shade: 0.8,
- area: ['570px', '360px'],
- content: '${ctx}/myconsole/commentwait/selectInfo?keyid='+sel
- });
- }
- },
- position : "last"
- }
- )
- ;
- })
- </script>
- <title>待审核评论</title>
- </head>
- <body>
- <div class="page-container">
- <table id="jqGrid"></table>
- <div id="jqGridPager"></div>
- </div>
- <footer class="footer mt-20">
- <div class="container">
- <p></p>
- </div>
- </footer>
- </body>
- </html>
|