<?php
	session_start(); 
	require_once('inc/conn.php');
	require_once('inc/constant.php');
	require_once('inc/ls_syscode.php');

	$opendb=new mydb();
?>
<!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>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<style type=text/css>
body  { background:#7B9AE7; margin:0px; font:9pt 宋体; padding:0px; padding-top:3px;}
td  { font:normal 12px 宋体; }
a  { font:normal 12px 宋体; color:#FFFFFF; text-decoration:none; }
a:hover  { color:#FF0000;text-decoration:none; }
.whitetext{ color:#FFFFFF; padding-left: 10px;}
</style>
<body bgcolor="#7B9AE7">
	<div class="whitetext">
		管理员：<b><?php echo $_SESSION['username']; ?></b>	 
			&nbsp;&nbsp;
			<!--<a href="ls_config.php" target="right">系统配制</a>
			&nbsp;&nbsp;
			<a href="ls_menu.php" target="right">主菜单管理</a> -->
			<a href="modipwd.php" target="right">修改登陆密码</a>
			&nbsp;&nbsp;
			<a href="help.html" target="right">使用帮助</a>
			&nbsp;&nbsp;
			<a href="ls_about.php" target="right">关于我们</a>
			&nbsp;&nbsp;
			<a href="version.html" target="right">更新日志</a>
			&nbsp;&nbsp;
			<a href="advance.html" target="right">系统优势</a>
			<?php
			$menu_sql="select * from ls_menu order by menuNum desc";
				$menu_query=$opendb->query($menu_sql);
				while ($menu_rows=mysql_fetch_assoc($menu_query))
	 			{
	 					if($menu_rows['menuLink']=="products.htm" && $menu_rows['enable']==1)
	 					{
				?>
				&nbsp;&nbsp;
			<a href="products.php" target="right">产品管理</a>
			<?php
						}
						if($menu_rows['menuLink']=="news.htm" && $menu_rows['enable']==1)
			 			{
				?>
			&nbsp;&nbsp;
			<a href="news.php" target="right">新闻管理</a>
			<?php
						}
					if($menu_rows['menuLink']=="download.htm" && $menu_rows['enable']==1)
					 	{
				?>
				&nbsp;&nbsp;
			<a href="download.php" target="right">下载管理</a>
			<?php
				}
			}
			?>
			&nbsp;&nbsp;
			<a href='loginout.php' target='_top'>[退出系统]</a>

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