default.jsp 1.87 KB
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/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/> - Powered By ODM</title>
	<%@include file="/WEB-INF/views/include/head.jsp" %>		
	<!-- Baidu tongji analytics <script>var _hmt=_hmt||[];(function(){var hm=document.createElement("script");hm.src="//hm.baidu.com/hm.js?82116c626a8d504a5c0675073362ef6f";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm,s);})();</script>
	 -->
	<sitemesh:head/>
</head>
<body>
	<sitemesh:body/>
	<script type="text/javascript">
// 		window.onbeforeunload = function()
// 		{//获取浏览器关闭或浏览器页签关闭事件
// 			alert("222");
// 		    setTimeout(onunloadcancel, 10);
		    
// 		    return "真的离开?";
// 		}
// 		window.onunloadcancel = function()
// 		{
// 		}
// 		history.pushState(null, null, document.URL);
// 	    window.addEventListener('popstate', function () {
// 	        history.pushState(null, null, document.URL);
// 	    });
	</script>
	<%--
	<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.$.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>