#define layout()
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link href="/assets/css/manage.css" media="screen" rel="stylesheet" type="text/css" />
<script src="/assets/js/jquery-1.4.4.min.js" type="text/javascript" ></script>
<script type="text/javascript">
function logout(){
window.location.href="/logout"
}
</script>
</head>
<body>
<div class="manage_container">
<div class="manage_head">
<div class="manage_logo">
<a href="http://www.jfinal.com" target="_blank">图书管理系统</a>
</div>
<div id="nav">
<ul>
<li><a href="/index"><b>首页</b></a></li>
#if(session.loginUser.identity == 1)
<li><a href="/user"><b>管理员管理</b></a></li>
#end
<li><a href="/books"><b>图书管理</b></a></li>
<li><a href="/readers"><b>会员管理</b></a></li>
<li><a href="/borrow"><b>借书管理</b></a></li>
<li><a href="/back"><b>还书管理</b></a></li>
<li><a href="/student"><b>学生管理</b></a></li>
</ul>
</div>
</div>
<div style="text-align:right">
<label>当前用户:</label>
<span>#(session.loginUser.name)</span>
<label>身份:</label>
<span>#(session.loginUser.identity == 1 ? "系统管理员":"普通管理员")</span>
<label>在线人数:</label>
<span>#(session.online)</span>
<label>访问量:</label>
<span>#(session.fangweiliang)</span>
<a target="_self" hre="javascript:void(0);" onclick="logout();">退出</a>
</div>
<div class="main">
#@main()
</div>
</div>
</body>
</html>
#end