You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

67 lines
1.8 KiB

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
String WDK_ROOT = WDKCore.WDK_ROOT;
String RSS_ROOT = WDK_ROOT + "/"+WDKConstant.Theme+"/"+WDKCore.THEME;
%>
<!DOCTYPE html>
<%@page import="org.wdk.WDKConstant"%>
<%@page import="org.wdk.WDKCore"%>
<html>
<head>
<base href="<%=basePath%>" target="_self">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>菜单首页</title>
<script type="text/javascript" src="<%=RSS_ROOT%>/core/js/wdk.js"></script>
<script type="text/javascript">
window.onload = function(){
$.accordion_tree({
id:'accordion',
url:"wdk?action=wdk.public&method=menu_load&ajaxparam="+new Date().getTime(),
method:"get",
onClick:function(node){
if(node.attributes.menuurl){
var _url = node.attributes.menuurl;
if(-1==_url.indexOf('?')){
_url += '?menucode='+node.id;
}else{
_url += '&menucode='+node.id;
}
if(_Enable_Tab){
var tabs = {menucode:node.id,title:node.text,url:_url,closable:true};
$.tab_addTop(tabs);
}else{
$.getRoot().showmenu({menucode:node.id,url:_url,title:node.text});
}
$.applog({
pagename:node.text,
type:'page',
desc:'打开页面'
});
}else{
//alert("页面不存在");
}
}
});
};
</script>
</head>
<body style="margin:0px; padding:0px;">
<div id="accordion" style="width:100%;height:100%;overflow:hidden;">
</div>
<!--
<div id="mytree" class="easyui-tree" style="padding:5px;">
<img src="<%=WDK_ROOT%>/theme/classic/skins/default/images/loading.gif">loading...
</div>
-->
</body>
</html>