JSP tree-shaped structure __js

Source: Internet
Author: User

Dtree tree-shaped structure, very convenient, very suitable.

Download Dtree.zip Package Please go to the address below to download

http://jinchun1223.javaeye.com/admin/blogs/421817

<%@ page language= "java" import= "java.util.*" pageencoding= "GBK"%>
<%
String path = Request.getcontextpath ();
String basepath = request.getscheme () + "://" +request.getservername () + ":" +request.getserverport () +path+ "/";
%>
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >
<base href= "<%=basePath%>" >
<title> Tree Menu </title>
<meta http-equiv= "Pragma" content= "No-cache" >
<meta http-equiv= "Cache-control" content= "No-cache" >
<meta http-equiv= "Expires" content= "0" >
<meta http-equiv= "keywords" content= "keyword1,keyword2,keyword3" >
<meta http-equiv= "description" content= "This are my page" >
<link rel= "stylesheet" type= "Text/css" href= "Css/dtree.css" >
<script type= "Text/javascript" src= "Js/dtree.js" ></script>
<body>
<div class= "Dtree" >
<p><a href= "Javascript:d.openall ();" > Expand </a> | <a href= "Javascript:d.closeall ();" > Shrink </a></p>
<script type= "Text/javascript" >

D = new Dtree (' d ');
D.add (0,-1, ' Welcome to login ');
D.add (1, 0, ' first part of Project ');
D.add (2,1, ' information added ', ' index.jsp ');
D.add (3,1, ' Information inquiry ', ' index.jsp ');
D.add (4,1, ' Information dispatch ', ' index.jsp ');
D.add (5,1, ' information graph ', ' index.jsp ');
D.add (6,0, ' second part of the project ');
D.add (7,6, ' information added ', ' index.jsp ');
D.add (8,6, ' Information inquiry ', ' index.jsp ');
D.add (9,6, ' Information inquiry ');
D.add (10,6, ' Information inquiry ');
D.add (11,0, ' third part of the project ');
D.add (12,11, ' information added ', ' index.jsp ');
D.add (13,11, ' Information inquiry ', ' index.jsp ');
D.add (14,11, ' Information inquiry ', ' index.jsp ');
D.add (15,11, ' Information inquiry ');
D.add (16,0, ' Inventory management of goods ');
D.add (17,16, ' warehousing management ');
D.add (18,17, ' inbound registration ', ' index.jsp ');
D.add (19,17, ' Inbound query ', ' index.jsp ');
D.add (20,16, ' out of Library Management ');
D.add (21,20, ' out of library registration ', ' index.jsp ');
D.add (22,20, ' out of the Library query ', ' index.jsp ');
D.add (23,0, ' System Application Management ');
D.add (24,23, ' departmental Management ', ' index.jsp ');
D.add (25,23, ' role management ', ' index.jsp ');
D.add (26,23, ' user Management ');
D.add (27,26, ' user add ', ' index.jsp ');
D.add (28,26, ' User inquiries ', ' index.jsp ');
D.add (29,23, ' Operation Log ');
D.add (30,0, ' system use help ');
D.add (31,30, ' use instructions ');
D.add (32,30, ' System homepage ');
D.add (33,0, ' safe exit system ', ' index.jsp ', ', ' _parent ');

document.write (d);
</script>
</div>
</body>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.