123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <%@ page contentType="text/html; charset=UTF-8" language="java"%>
- <%@ page language="java" import="model.setup.constant.ConstantTree" %>
- <%@ page import ="com.sysmodel.datamodel.xmlmodel.ModelFactory,
- com.sysmodel.datamodel.xmlmodel.able.MdpConstant,com.toolkit.tree.TreeNode"%>
- <html>
- <%
- String nodeURL = request.getParameter("nodeURL");
- nodeURL = nodeURL == null ? "/admin/setup/constantinit/tree/NodeContent.jsp" : nodeURL;
- String path =request.getContextPath();
- String codeName = request.getParameter("codeName") == null ? "TB_BM$_CONFIGURATION" : request.getParameter("codeName");
- ConstantTree myTree = new ConstantTree(codeName,path,"dataCollection",nodeURL);
- MdpConstant constant = ModelFactory.getSysmodel().getMdpConstantByName(codeName);
- String rootfrom = constant.getRootFrom();
- TreeNode treeNode = myTree.getCurrentTreeNode(rootfrom);
- String target = myTree.getLinkTarget();
- String str = myTree.getJsonByNodeId(codeName,myTree,target);
- %>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <title>����</title>
- <style type="text/css">
- body {
- font-size: 9pt;
- }
- a {
- color:#000564;
- font-family: "����";
- text-decoration:none;
- margin: 0pt;
- padding:0pt;
- cursor:pointer;
- cursor:hand;
- font-size: 12px
- }
- img {
- vertical-align: middle;
- border-width:0pt;
- margin: 0pt;
- padding:0pt
- }
- div{
- padding-left:18px;
- padding-right:0px;
- padding-top:10px;
- padding-bottom:0px
- }
- DivSurfaceCss{
- padding-left:4px;
- padding-right:0px;
- padding-top:10px;
- padding-bottom:0px
- }
- </style>
- <!--<link rel="stylesheet" href="../../../styles/css.css" type="text/css">
- <SCRIPT language="JavaScript" src="../../../scripts/divtree.js"></SCRIPT>
- <link rel="stylesheet" type="text/css" href="../../../../scripts/easyui/themes/default/easyui.css">
- <link rel="stylesheet" type="text/css" href="../../../../scripts/easyui/themes/icon.css">
- <link rel="stylesheet" type="text/css" href="../../../../scripts/easyui/demo/demo.css">
- <script type="text/javascript" src="../../../../scripts/easyui/jquery.min.js"></script>
- <script type="text/javascript" src="../../../../scripts/easyui/jquery.easyui.min.js"></script>
- <script type="text/javascript" src="../../../../scripts/easyui/locale/easyui-lang-zh_CN.js"></script> -->
- <link rel="stylesheet" href="../../../../scripts/zTree/css/demo.css" type="text/css">
- <link rel="stylesheet" href="../../../../scripts/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
- <script type="text/javascript" src="../../../../scripts/zTree/js/jquery-1.4.4.min.js"></script>
- <script type="text/javascript" src="../../../../scripts/zTree/js/jquery.ztree.core-3.5.js"></script>
- <%-- <script language="JavaScript">
- var treeImagePath = "<%=path%>/admin/images/tree_images/";
- var url = "<%=path%>/admin/setup/constantinit/tree/divTreeService.jsp?codeName=<%=codeName%>&nodeURL=<%=nodeURL%>";
- var treeCloseImg = "plus.gif";
- var treeOpenImg = "minus.gif";
- </script> --%>
- <SCRIPT type="text/javascript">
- <!--
- var setting = {
- data: {
- simpleData: {
- enable: true
- }
- }
- };
- var zNodes ='<%=str %>';
- var obj = eval('(' + zNodes + ')');
- $(document).ready(function(){
- $.fn.zTree.init($("#treeDemo"), setting, obj);
- });
- //-->
- </SCRIPT>
- </head>
- <body bgcolor="#FFFFFF" oncontextmenu="if(!event.ctrlKey){return false} else {return true}" topmargin="0" leftmargin="0" onselectstart="return false">
-
- <%-- <div class="easyui-panel" style="padding:5px;height:500px;">
- <ul id="tt" class="easyui-tree" data-options="
- url: 'json_data.jsp?codeName=<%=codeName %>',
- method: 'get',
- animate: true
- "></ul>
- </div> --%>
- <div class="zTreeDemoBackground left">
- <ul id="treeDemo" class="ztree"></ul>
- </div>
- </body>
- </html>
|