main.jsp 5.08 KB
<!DOCTYPE html>
<html>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="weaver.templetecheck.ConfigSpecialHandle" %>
<%@ page import="weaver.file.Prop" %>
<%@ include file="main_init.jsp" %>
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
	<title><%=SystemEnv.getHtmlLabelName(502064,user.getLanguage())%></title>
	<link rel="stylesheet" href="/templetecheck/css/bootstrap.css">
	<script src="/templetecheck/js/jquery-1.10.2.js"></script>
	<script src="/templetecheck/js/bootstrap.js"></script>
<%
//部分配置需要在高版本删除掉,部分配置只能在resin中配置
ConfigSpecialHandle handle = new ConfigSpecialHandle();
handle.deleteXMLConfig_DB();
String showXmlMenu = Util.null2String(Prop.getPropValue("templeteCheckMenu", "showXmlMenu"));
String showPropertiesMenu = Util.null2String(Prop.getPropValue("templeteCheckMenu", "showPropertiesMenu"));
//添加check页面设置
%>
<script type="text/javascript">
	$(document).ready(function(){
		$("li[role='presentation']").bind("click",function(){
			$("li[role='presentation']").removeClass("active");
			$(this).addClass("active");
			$(".dropdown-menu").width($(this).css("width"));
		});
		
		$(".dropdown-menu").bind("mouseout",function(){
			//alert(0);
			var s = event.toElement || event.relatedTarget;
			if(!this.contains(s)) { $(this).parent().removeClass("open"); }
			
		});
	});
	//维护xml
	function editxml(type) {
		if(type=='1') {
			$("#iframe1").attr("src","/templetecheck/AddXml.jsp");
		} else {
			$("#iframe1").attr("src","/templetecheck/EditXml.jsp");
		}
	}
	
	//维护properties
	function editproperties(type) {
		if(type=='1') {
			$("#iframe1").attr("src","/templetecheck/AddProperties.jsp");
		} else {
			$("#iframe1").attr("src","/templetecheck/EditProperties.jsp");
		}
	}
	
	//检测
	function checkrule(){
		$("#iframe1").attr("src", "/templetecheck/checkruleiframe.jsp");
	}
	//配置文件信息维护
	function configmanager() {
		$("#iframe1").attr("src", "/templetecheck/ConfigManagerIframe.jsp");
	}

</script>
</head>

<body style="width:100%;margin:0px auto;height:100%;">
<div id="tabdiv" style="width:100%;height:93%;">

  <!-- Nav tabs -->
  <div  style="background-color:#87CEFA;height:60px;">
	  <ul class="nav nav-pills tabclass1" role="tablist">
		  <li role="presentation" style="width:400px;text-align:center;"><span style="line-height:60px;"><img src="image/title.png"></img>&nbsp;&nbsp;<%=SystemEnv.getHtmlLabelName(502064,user.getLanguage())%></span></li>
		  <li role="presentation" class="active">
			  <a id="checkrule" href="javascript:checkrule()" class="dropdown-toggle" aria-controls="messages" role="button" aria-haspopup="true" aria-expanded="false"><%=SystemEnv.getHtmlLabelName(502065,user.getLanguage())%></a>
		  </li>
          <%if(showXmlMenu.equals("1")){ %>
          <li role="presentation">
              <a class="dropdown-toggle" href="#" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><%=SystemEnv.getHtmlLabelName(502072,user.getLanguage())%><span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="javascript:editxml(1)"><%=SystemEnv.getHtmlLabelName(502074,user.getLanguage())%></a></li>
                <li><a href="javascript:editxml(2)"><%=SystemEnv.getHtmlLabelName(502075,user.getLanguage())%></a></li>
              </ul>
          </li>
          <%}%>
          <%if(showPropertiesMenu.equals("1")){ %>
          <li role="presentation">
              <a class="dropdown-toggle"  href="#" aria-controls="messages" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><%=SystemEnv.getHtmlLabelName(502073,user.getLanguage())%><span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="javascript:editproperties(1)"><%=SystemEnv.getHtmlLabelName(502076,user.getLanguage())%></a></li>
                <li><a href="javascript:editproperties(2)"><%=SystemEnv.getHtmlLabelName(502077,user.getLanguage())%></a></li>
              </ul>
          </li>
          <%}%>
		  <li role="presentation">
			  <a id="configmanager" href="javascript:configmanager()" class="dropdown-toggle" aria-controls="messages" role="button" aria-haspopup="true" aria-expanded="false"><%=SystemEnv.getHtmlLabelName(502080,user.getLanguage())%></a>
		  </li>
	  </ul>
  </div>
  <!-- Tab panes -->
  <div class="tab-content">
    <div role="tabpanel" class="tab-pane active" id="home" style="height:100%"><iframe id="iframe1" style="border: 0px" name="iframe1" src="/templetecheck/checkruleiframe.jsp"></iframe></div>
  </div>

</div>
<style>
body{
font-size:20px;
height:100%;
scrolling:none;
overflow-y:hidden;
}
html {
height:100%;
}
.tab-content{
height:100%;
}
.tabclass1>li{
 width:225px;
}
.tabclass1>li>a{
 line-height:40px;
 text-align:center;
}
.dropdown-menu {
	background-color:#87CEFA;
}
.tab-pane>iframe {
	width:100%;
	height:100%;
}
.title {
	font-size:16px;
	color:#8B8B83
}

</style>
</body>
</html>