lexical.html 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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/lib/layer/3.0.3/layer.js"></script>
  23. <script type="text/javascript" src="${ctx}/assets/static/h-ui/js/H-ui.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. var treeObj = null;
  37. $(function() {
  38. $('#contentFrame').css('height',document.body.clientHeight-80);
  39. var t = $("#treeDemo");
  40. treeObj = $.fn.zTree.init(t, setting,zNodes);
  41. var node = treeObj.getNodes()[0];
  42. treeObj.selectNode(node);
  43. treeObj.setting.callback.onClick(null,treeObj.setting.treeId,node);
  44. })
  45. var zNodes =[
  46. {"id":"dic_tag", "pId":"0", "name":"Tag词"},   
  47.     {"id":"dic_taboo", "pId":"0", "name":"敏感词"},  
  48. {"id":"dic_hot", "pId":"0", "name":"热点词"},  
  49. {"id":"dic_easyerror", "pId":"0", "name":"易错词"},  
  50. ];
  51. var setting = {
  52. view: {
  53. dblClickExpand: false,
  54. showLine: false,
  55. selectedMulti: false
  56. },
  57. data: {
  58. simpleData: {
  59. enable:true,
  60. idKey: "id",
  61. pIdKey: "pId",
  62. rootPId: ""
  63. }
  64. },
  65. callback: {
  66. onClick: zTreeClick
  67. }
  68. };
  69. function zTreeClick(event, treeId, treeNode) {
  70. $('.tips').text(treeNode.name);
  71. $('#contentFrame').attr('src','${ctx}/myconsole/'+treeNode.id);
  72. }
  73. </script>
  74. <title>我的桌面</title>
  75. </head>
  76. <body>
  77. <div class="pos-a" style="width:150px;left:0;top:0; bottom:0; height:100%; border-right:1px solid #e5e5e5; background-color:#f5f5f5">
  78. <ul id="treeDemo" class="ztree">
  79. </ul>
  80. </div>
  81. <div style="margin-left:150px;" id='rightContent'>
  82. <iframe id="contentFrame" scrolling="yes" frameborder="0" width="100%" src=""></iframe>
  83. </div>
  84. <footer class="footer mt-10">
  85. <div class="container">
  86. <p></p>
  87. </div>
  88. </footer>
  89. </body>
  90. </html>