<? session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
	require_once('inc/conn.php');
	require_once('inc/constant.php');
	require_once('inc/ls_syscode.php');
	$opendb=new mydb();
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
</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; line-height:28px; }
</style>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
setInterval(function() {
    var now = (new Date()).toLocaleString();
    $('#current-time').text(now);
}, 1000);
</script>
<body bgcolor="#7B9AE7">
	<div class="whitetext">
    	 <div style="float:right; padding-right:20px; width:200px;">
         <table width="100%" border="0">
          <tr>
            <td><a href="temp_index.php?ls=all" style="cursor:hand;color:#FF0000; background-image:url(images/btn-bg.jpg); border:1px #a5a5a5 solid; display:block; width:60px; text-align:center;  padding:4px 6px;" target="right">生成整站</a></td>
            <td><a href="temp_index.php?ls=products&productsall=ok" style="cursor:hand;color:#000000; background-image:url(images/btn-bg.jpg); width:80px; text-align:center;  border:1px #a5a5a5 solid; display:block;  padding:4px 6px;" target="right">生成产品页</a></td>
          </tr>
        </table>
</div>
		管理员：<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>

			<?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>
            &nbsp; &nbsp;
            时间：<span id="current-time"></span>
	</div>
</body>
</html>