<%@page trimDirectiveWhitespaces="true"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="gen" uri="http://help.jspgen.com/taglib/jstl"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=${config.charset}" />
<meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1" />
<title>${config.title} 管理中心</title>
<!-- ZTree树形插件 -->
<link type="text/css" href="${config.statie}js/ztree/images/ztree.css" rel="stylesheet">
<!-- 当前页面 -->
<link type="text/css" href="${config.statie}ui/admin/images/index.css" rel="stylesheet">
<script type="text/javascript">if(top.location != self.location) top.location = self.location;</script>
</head>
<body>
<div id="wrapper">
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="header">
    <tr>
      <td class="header-left"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td class="logo" title="${config.name} - ${config.version}">logo</td>
            <td><div class="info">
                <p id="loading">正在加载…</p>
                <p>欢迎您：<a href="javascript:void(0);" title="${loginUser.username}">${loginAdmin.name}<span id="ums" title="未读消息"></span></a>&nbsp;&nbsp;<span class="spacer">|</span>&nbsp;&nbsp;<a href="${config.path}user!logout.gen">退出</a></p>
              </div></td>
          </tr>
        </table></td>
      <td class="header-right"><div id="nav-arrow-left" class="nav-arrow left"></div>
        <div id="nav-arrow-right" class="nav-arrow right"></div>
        <div class="nav no-select" onselectstart="return false;">
          <ul id="nav">
            <c:forEach items="${purviewList}" var="purview">
              <gen:if test="${purview.id == 1}">
                <li class="set" rootId="${purview.id}" rootName="${purview.name}"><b class="a"></b><b class="b">${purview.name}</b><b class="c"></b></li>
                <gen:elseif test="${purview.isHide == 0}" />
                <li rootId="${purview.id}" rootName="${purview.name}"><b class="a"></b><b class="b">${purview.name}</b><b class="c"></b></li>
              </gen:if>
            </c:forEach>
          </ul>
        </div>
        <div class="clear"></div></td>
    </tr>
  </table>
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="content">
    <tr>
      <td valign="top" class="side"><h1><i title="应用中心"></i>操作菜单</h1>
        <div class="side-menu">
          <ul id="indexTree" class="ztree menu-tree">
          </ul>
          <div class="rail"><span class="slider"><span class="bar-up"></span><span class="bar-mid"><b></b></span><span class="bar-down"></span></span></div>
        </div></td>
      <td valign="top" class="main"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td class="main-tab"><div id="tab-arrow-left" class="tab-arrow left"></div>
              <div id="tab-arrow-right" class="tab-arrow right"></div>
              <div class="tab no-select" onselectstart="return false;">
                <ul id="tab">
                </ul>
              </div>
              <div class="clear"></div></td>
          </tr>
          <tr>
            <td class="main-content"></td>
          </tr>
        </table></td>
    </tr>
  </table>
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="footer">
    <tr>
      <td align="left"><p>角色：${loginAdmin.adminRole.name}&nbsp;&nbsp;已登录：${loginUser.count}次&nbsp;&nbsp;上次登录时间：${gen:friendTime(loginUser.lastTime, 'yyyy-MM-dd HH:mm:ss', config.timezoneid, true)}&nbsp;&nbsp;上次登录IP：${loginUser.lastIp}</p></td>
      <td></td>
      <td align="right"><p>Copyright &copy; 2006-<script type="text/javascript" src="${config.statie}js/year.js"></script> <a href="http://www.jspgen.com/" target="_blank">JSPGen.com</a></p></td>
    </tr>
  </table>
</div>
<!-- 必备插件 -->
<script type="text/javascript" src="${config.statie}js/jquery.js"></script>
<script type="text/javascript" src="${config.statie}js/jquery.grapes.js"></script>
<script type="text/javascript" src="${config.statie}js/jquery.timers.js"></script>
<script type="text/javascript" src="${config.statie}js/jquery.mousewheel.js"></script>
<script type="text/javascript" src="${config.statie}js/scrollbar/jquery.scrollbar.js"></script>
<!-- 弹窗插件 -->
<script type="text/javascript" src="${config.statie}js/dialog/jquery.dialog.js"></script>
<script type="text/javascript" src="${config.statie}js/dialog/jquery.dialog.plugins.js"></script>
<!-- ZTree插件 -->
<script type="text/javascript" src="${config.statie}js/ztree/jquery.ztree.core-3.5.js"></script>
<script type="text/javascript" src="${config.statie}js/ztree/jquery.ztree.excheck-3.5.js"></script>
<script type="text/javascript" src="${config.statie}js/ztree/jquery.ztree.exhide-3.5.js"></script>
<!-- UI界面必备 -->
<script type="text/javascript" src="${config.statie}ui/js/jspgen.js"></script>
<script type="text/javascript" src="${config.statie}ui/js/jspgen.ajax.js"></script>
<script type="text/javascript" src="${config.statie}ui/js/jspgen.ums.js"></script>
<script type="text/javascript" src="${config.statie}ui/js/jspgen.ready.js"></script>
<!-- 当前页面 -->
<script type="text/javascript" src="${config.statie}ui/admin/js/index.init.js"></script>
<script type="text/javascript" src="${config.statie}ui/admin/js/tree-icon.js"></script>
<script type="text/javascript" src="${config.statie}ui/admin/js/tree-index.js"></script>

<script type="text/javascript">
// document.domain = "jspgen.com";

// 调用
$(document).ready(function(){
	// 初始化
	init();	
	
	// 默认树菜单
	createTree('indexTree', 1, '我', '144');
	<gen:if test="${loginAdmin.roleId<=2}">
	addTab('欢迎页', '../cms/admin/chart.gen', 'tab-welcome');
	</gen:if>
	
	// 弹窗
	// $.dialog.tips('数据加载中…', 600, 'loading');
});
</script>
</body>
</html>