29 lines
1.5 KiB
Plaintext
29 lines
1.5 KiB
Plaintext
<%@ page contentType="text/html;charset=UTF-8"%>
|
||
<%@ include file="/webpage/include/taglib.jsp"%>
|
||
<%@ taglib prefix="sitemesh" uri="http://www.opensymphony.com/sitemesh/decorator" %>
|
||
<!DOCTYPE html>
|
||
<html style="overflow-x:auto;overflow-y:auto;">
|
||
<head>
|
||
<title><sitemesh:title/></title>
|
||
<%@include file="/webpage/include/head.jsp" %>
|
||
<sitemesh:head/>
|
||
</head>
|
||
<body id="<sitemesh:getProperty property='body.id'/>" class="<sitemesh:getProperty property='body.class'/>" style="<sitemesh:getProperty property='body.style'/>">
|
||
<sitemesh:body/>
|
||
<script type="text/javascript">//<!-- 无框架时,左上角显示菜单图标按钮。
|
||
if(!(self.frameElement && self.frameElement.tagName=="IFRAME")){
|
||
$("body").prepend("<i id=\"btnMenu\" class=\"icon-th-list\" style=\"cursor:pointer;float:right;margin:10px;\"></i><div id=\"menuContent\"></div>");
|
||
$("#btnMenu").click(function(){
|
||
|
||
top.layer.open({
|
||
type: 2,
|
||
area:['300px','350px'],
|
||
content: 'get:${ctx}/sys/menu/treeselect;JSESSIONID=<shiro:principal property="sessionid"/>' //这里content是一个URL,如果你不想让iframe出现滚动条,你还可以content: ['http://sentsin.com', 'no']
|
||
});
|
||
//top.$.jBox('get:${ctx}/sys/menu/treeselect;JSESSIONID=<shiro:principal property="sessionid"/>', {title:'选择菜单', buttons:{'关闭':true}, width:300, height: 350, top:10});
|
||
//if ($("#menuContent").html()==""){$.get("${ctx}/sys/menu/treeselect", function(data){$("#menuContent").html(data);});}else{$("#menuContent").toggle(100);}
|
||
});
|
||
}//-->
|
||
</script>
|
||
</body>
|
||
</html> |