1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <link href="../ligerui/lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <link href="css/all.css" rel="stylesheet" type="text/css" />
- <script src="../ligerui/lib/jquery/jquery-1.3.2.min.js"type="text/javascript"></script>
- <script src="../ligerui/lib/ligerUI/js/ligerui.min.js"type="text/javascript"></script>
- <script src="../ligerui/indexdata.js" type="text/javascript"></script>
- <script type="text/javascript">
- var tab = null;
- var accordion = null;
- var tree = null;
- $(function() {
- //布局
- $("#layout1").ligerLayout( {
- leftWidth : 190,
- height : '100%',
- heightDiff : -34,
- space : 4,
- onHeightChanged : f_heightChanged
- });
- var height = $(".l-layout-center").height();
- //Tab
- $("#framecenter").ligerTab( {
- height : height
- });
- //面板
- $("#accordion1").ligerAccordion( {
- height : height - 24,
- speed : null
- });
- $(".l-link").hover(function() {
- $(this).addClass("l-link-over");
- }, function() {
- $(this).removeClass("l-link-over");
- });
- //树
- $("#tree1").ligerTree( {
- data : indexdata,
- checkbox : false,
- slide : false,
- nodeWidth : 120,
- attribute : [ 'nodename', 'url' ],
- onSelect : function(node) {
- if (!node.data.url)
- return;
- var tabid = $(node.target).attr("tabid");
- if (!tabid) {
- tabid = new Date().getTime();
- $(node.target).attr("tabid", tabid)
- }
- f_addTab(tabid, node.data.text, node.data.url);
- }
- });
- tab = $("#framecenter").ligerGetTabManager();
- accordion = $("#accordion1").ligerGetAccordionManager();
- tree = $("#tree1").ligerGetTreeManager();
- $("#pageloading").hide();
- });
- function f_heightChanged(options) {
- if (tab)
- tab.addHeight(options.diff);
- if (accordion && options.middleHeight - 24 > 0)
- accordion.setHeight(options.middleHeight - 24);
- }
- function f_addTab(tabid, text, url) {
- tab.addTabItem( {
- tabid : tabid,
- text : text,
- url : url
- });
- }
- </script>
- </head>
-
- <body style="padding: 0px; background: #EAEEF5;">
-
- </body>
- </html>
|