left.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <!--框架必需start-->
  6. <script type="text/javascript" src="../scripts/qui/libs/js/jquery.js"></script>
  7. <script type="text/javascript" src="../scripts/qui/libs/js/language/cn.js"></script>
  8. <script type="text/javascript" src="../scripts/qui/libs/js/framework.js"></script>
  9. <link href="../scripts/qui/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  10. <link rel="stylesheet" type="text/css" id="skin" prePath="../scripts/qui/" scrollerY="false"/>
  11. <link rel="stylesheet" type="text/css" id="customSkin"/>
  12. <!--框架必需end-->
  13. <!-- 树型抽屉导航start-->
  14. <script type="text/javascript" src="../scripts/qui/libs/js/tree/ztree/ztree.js"></script>
  15. <link href="../scripts/qui/libs/js/tree/ztree/ztree.css" rel="stylesheet" type="text/css"/>
  16. <script type="text/javascript" src="../scripts/qui/libs/js/nav/treeAccordion_normal.js"></script>
  17. <!-- 树型抽屉导航end -->
  18. <style>
  19. .ztree li span.zbutton.diy01_ico_open, .ztree li span.zbutton.diy01_ico_close{width:24px!important;height:24px!important;padding-top:0;}
  20. </style>
  21. <script type="text/javascript">
  22. var zNodes =[
  23. { id:3001, parentId:0, name:"表单模板",icon:"../scripts/qui/system/blue1_accordion/skin/icons/icon_1.png",iconSkin:"diy01"},
  24. { id:101, parentId:3001, name:"页面中的表单",url:"../scripts/qui/sample_skin/normal/form-page.html", target:"frmright",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  25. { id:3002, parentId:0, name:"表格模板",icon:"../scripts/qui/system/blue1_accordion/skin/icons/icon_2.png",iconSkin:"diy01"},
  26. { id:201, parentId:3002, name:"页面中的grid表格",url:"../scripts/qui/sample_skin/normal/grid-page.html", target:"frmright",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  27. { id:202, parentId:3002, name:"弹窗中的grid表格",url:"../scripts/qui/sample_skin/normal/grid-pop.html", target:"frmright",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  28. { id:203, parentId:3002, name:"页面中的table表格",url:"../scripts/qui/sample_skin/normal/table-page.html", target:"frmright",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  29. { id:204, parentId:3002, name:"弹窗中的table表格",url:"../scripts/qui/sample_skin/normal/table-pop.html", target:"frmright",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  30. { id:102, parentId:3001, name:"弹窗中的表单",url:"../scripts/qui/sample_skin/normal/form-pop.html", target:"frmright",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  31. { id:3003, parentId:0, name:"选项卡模板",icon:"../scripts/qui/system/blue1_accordion/skin/icons/icon_3.png",iconSkin:"diy01"},
  32. { id:301, parentId:3003, name:"页面中的选项卡",url:"../scripts/qui/sample_skin/normal/tab-page.html", target:"frmright",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  33. { id:302, parentId:3003, name:"弹窗中的选项卡",url:"../scripts/qui/sample_skin/normal/tab-pop.html", target:"frmright",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  34. { id:3004, parentId:0, name:"布局模板",icon:"../scripts/qui/system/blue1_accordion/skin/icons/icon_4.png",iconSkin:"diy01"},
  35. { id:401, parentId:3004, name:"单级纵向导航",url:"../scripts/qui/sample_skin/normal/nav-single.html", target:"frmright",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  36. { id:402, parentId:3004, name:"双级纵向导航",url:"../scripts/qui/sample_skin/normal/nav-double.html", target:"frmright",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  37. { id:403, parentId:3004, name:"分隔条",url:"../scripts/qui/sample_skin/normal/spliter.html", target:"frmright",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  38. { id:3005, parentId:0, name:"图片模板",icon:"../scripts/qui/system/blue1_accordion/skin/icons/icon_5.png",iconSkin:"diy01"},
  39. { id:501, parentId:3005, name:"图片列表",url:"../scripts/qui/sample_skin/normal/pic-list.html", target:"frmright",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  40. { id:3006, parentId:0, name:"情景模板",icon:"../scripts/qui/system/blue1_accordion/skin/icons/icon_6.png",iconSkin:"diy01"},
  41. { id:601, parentId:3006, name:"机构维护",url:"../scripts/qui/sample_skin/normal/org-management.html", target:"frmright",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  42. { id:602, parentId:3006, name:"用户管理",url:"../scripts/qui/sample_skin/normal/user-management.html", target:"frmright",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  43. { id:603, parentId:3006, name:"角色管理",url:"../scripts/qui/sample_skin/normal/role-management.html", target:"frmright",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  44. { id:604, parentId:3006, name:"资源分配(按用户)",url:"../scripts/qui/sample_skin/normal/user-assignment.html", target:"frmright",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  45. { id:605, parentId:3006, name:"资源分配(按角色)",url:"../scripts/qui/sample_skin/normal/role-assignment.html", target:"frmright",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  46. { id:606, parentId:3006, name:"综合box容器布局",url:"../scripts/qui/sample_skin/normal/layout-box.html", target:"frmright",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  47. { id:3007, parentId:0, name:"多级示例",icon:"../scripts/qui/system/blue1_accordion/skin/icons/icon_7.png",iconSkin:"diy01"},
  48. { id:701, parentId:3007, name:"第二级节点",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  49. { id:702, parentId:3007, name:"第二级节点",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  50. { id:703, parentId:3007, name:"第二级节点",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  51. { id:704, parentId:703, name:"第三级节点",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  52. { id:705, parentId:703, name:"第三级节点",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  53. { id:706, parentId:705, name:"第四级节点",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  54. { id:707, parentId:705, name:"第四级节点",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"},
  55. { id:708, parentId:707, name:"第五级节点",iconOpen:"../scripts/qui/libs/icons/tree_close.gif",iconClose:"../scripts/qui/libs/icons/tree_open.gif",icon:"../scripts/qui/system/blue1_accordion/skin/titlebar_arrow.gif"}
  56. ];
  57. var fixedObj=60;
  58. function customHeightSet(contentHeight){
  59. $("#scrollContent").height(contentHeight-fixedObj);
  60. }
  61. function initComplete() {
  62. $.fn.zTree.init($("#treeDemo"), setting, zNodes);
  63. //每次刷新时保持上次打开的
  64. showContent();
  65. }
  66. function showContent() {
  67. var treeNodeId = jQuery.jCookie('leftTreeNodeId');
  68. if (treeNodeId == false || treeNodeId == "false") { }
  69. else {
  70. var zTree = $.fn.zTree.getZTreeObj("treeDemo");
  71. var node = zTree.getNodeByParam("id", treeNodeId);
  72. zTree.selectNode(node);
  73. if (node.url) {
  74. //每次刷新时设置当前位置内容
  75. // if (node.name == "当前位置") {
  76. top.positionType = "normal";
  77. top.positionContent = "当前位置:" + node.getParentNode().name + ">>" + node.name;
  78. //}
  79. //else {
  80. // top.positionType = "none";
  81. // }
  82. top.frmright.location = node.url;
  83. }
  84. }
  85. }
  86. function onClick(e, treeId, treeNode) {
  87. //单击展开
  88. var zTree = $.fn.zTree.getZTreeObj("treeDemo");
  89. zTree.expandNode(treeNode);
  90. //出现进度条
  91. if (treeNode.url != null && treeNode.showProgess != false) {
  92. showProgressBar();
  93. top.positionContent = "当前位置:" + treeNode.getParentNode().name + ">>" + treeNode.name;
  94. top.positionType = "normal";
  95. }
  96. //可以设置某些页面出现或者某些页面不出现当前位置组件
  97. //if (treeNode.name == "当前位置") {
  98. //每次点击时设置当前位置内容
  99. //top.positionContent = "当前位置:" + treeNode.getParentNode().name + ">>" + treeNode.name;
  100. // top.positionType = "normal";
  101. // }
  102. // else {
  103. //top.positionType = "none";
  104. // }
  105. //存储点击节点id
  106. jQuery.jCookie('leftTreeNodeId', treeNode.id.toString());
  107. }
  108. function showAll() {
  109. var treeObj = $.fn.zTree.getZTreeObj("treeDemo");
  110. treeObj.expandAll(true);
  111. }
  112. function hideAll() {
  113. var treeObj = $.fn.zTree.getZTreeObj("treeDemo")
  114. treeObj.expandAll(false);
  115. }
  116. function customHeightSet(contentHeight){
  117. var windowWidth=document.documentElement.clientWidth;
  118. $("#scrollContent").width(windowWidth-4);
  119. $("#scrollContent").height(contentHeight-30);
  120. }
  121. function homeHandler(){
  122. var treeObj = $.fn.zTree.getZTreeObj("treeDemo")
  123. treeObj.expandAll(false);
  124. top.positionType="none";
  125. jQuery.jCookie('leftTreeNodeId',"false");
  126. }
  127. </script>
  128. </head>
  129. <body leftFrame="true">
  130. <div class="padding_top5 ali02" style="height:55px;">
  131. <table width="100%">
  132. <tr>
  133. <td width="85%" class="ali03"><input type="text" id="searchKey" value=""></td>
  134. <td><span class="img_find hand" title="点击查找节点" keepDefaultStyle="true" onclick="findNode()"></span></td>
  135. </tr>
  136. <tr>
  137. <td colspan="2" class="ali02"><a onclick="showAll()">全部展开</a>&nbsp;&nbsp;<a onclick="hideAll()">全部收缩</a></td>
  138. </tr>
  139. </table>
  140. </div>
  141. <div id="scrollContent" style="overflow-x:hidden;">
  142. <div>
  143. <ul id="treeDemo" class="ztree ztree_accordition"></ul>
  144. </div>
  145. </div>
  146. </body>
  147. </html>