<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ include file="/commons/taglibs.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<%@ include file="/commons/meta.jsp" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>统计首页</title>
<link href="${ctx_js_plugins}/simpletable/simpletable.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="${ctx_js_plugins}/simpletable/simpletable.js"></script>
	<link href="${ctx}/resource/js/plugins/loadmask/jquery.loadmask.css" rel="stylesheet" type="text/css" />
	<script type='text/javascript' src='${ctx}/resource/js/plugins/loadmask/jquery.loadmask.js'></script> 

<script type="text/javascript">

	function  sysCount(){
		if($("#sys").length > 0){
			if($("#sys").children().length>0){
				
			}else{
	    	$("#sys").html(" <iframe height='1000px' width='100%' frameBorder=0 src='${ctx}/processReport/sysreport.do'  allowTransparency='true'></iframe>");
	        }
			}
	}
	
</script>


</head>
<body>

<ul id="myTab" class="nav nav-tabs">
 <li class="active">
<a href="#tenant" data-toggle="tab">应用统计</a>
 </li>
 <c:if test="${ebpmAdmin}">
  <li>
  <a href="#sys" data-toggle="tab" onclick="sysCount()">平台统计</a>
  </li>
  </c:if>
</ul>

<div  id="myTabContent" class="tab-content" style="padding: 0;">
 <div class="tab-pane fade in active" id="tenant">
 <iframe height="1000px" width="100%" frameBorder=0 src="${ctx}/processReport/appreport.do"  allowTransparency="true"></iframe>
 </div>
 
 <c:if test="${ebpmAdmin}">
 <div class="tab-pane fade" id="sys">

  
   </div>
   </c:if>

</div>
</body>
</html>