<?php
	!defined('DIRCMS_MANAGE') && exit('Access Denied!');
?>
<!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=gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="admin/template/css/top.css" type="text/css" rel="stylesheet" />
<title>顶部菜单</title>
<script language="javascript" type="text/javascript" charset="utf-8">
function goindex()
{
	self.top.document.getElementById('leftFrame').src="<?php echo ADMIN_FILE;?>?file=left&module=index";
	self.top.document.getElementById('main').src="<?php echo ADMIN_FILE;?>?file=main";
}
</script>
</head>

<body oncontextmenu="return false" ondragstart="return false" onSelectStart="return false">
<div class="div_left"><img src="admin/template/images/logo.gif" /></div>
<div class="div_right">
	<div class="div_top">
		您好！<?php echo $_username;?> [<?php 
				if($_userid==ADMIN_FOUNDERS)
				{
					echo '网站创始人';
				}
				else
				{
					$t_r=cache_read('role'.$roleid_array[0].'.cache.php',DIRCMS_ROOT.'data/cache/');echo $t_r['name'];
				}
		?>] | [<a href="javascript:void(0);" onClick="self.top.location.href='<?php echo ADMIN_FILE;?>?file=login&action=logout'">安全退出</a>] &nbsp;&nbsp;&nbsp;&nbsp; <a href="<?php echo SITE_URL;?>" target="_blank">站点首页</a> | <a href="http://www.dircms.net" target="_blank">官方网站</a> | <a href="http://www.dircms.net/license/license.php?domain=<?php echo $domain;?>" target="_blank">授权查询</a> | <a href="http://bbs.dircms.net" target="_blank">支持论坛</a> | <a href="http://doc.dircms.net" target="_blank">技术文档</a> &nbsp;
	</div>
	<div class="div_bottom">
	<ul>
		<li><a href="javascript:void(0);" onclick="goindex()">后台首页</a></li>
		<li><a href="<?php echo ADMIN_FILE;?>?file=left&module=html" target='leftFrame'>更新网站</a></li>
		<?php if($topmenu)foreach($topmenu as $_topmenu){?>
		<li><a href="<?php echo ADMIN_FILE;?>?file=left&module=<?php echo $_topmenu['modulemurl'];?>" target='leftFrame'><?php echo $_topmenu['modulename'];?></a></li>
		<?php }?>
	</ul>
	</div>
</div>
</body>
</html>