<!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=<?php echo SYS_CHARSET ?>" />
<title>用户登陆_<?php echo $sys_title ?></title>
<meta name="keywords" content="<?php echo $sys_title ?>" />
<meta name="description" content="<?php echo $sys_title ?>" />
<link rel="stylesheet" type="text/css" href="<?php echo SYS_FRONT_STYLE_PATH?>style/style.css" />
<script type="text/javascript" src="<?php echo SYS_FRONT_STYLE_PATH?>js/validate.js"></script>
<script>
	function checklogin()
	{
	 if( document.getElementById("username").value.length<1) {
	 alert("\请输入您的用户名！！")
	 return false;
	 }
	 if( document.getElementById("password").value.length<1 ) {
	 alert("\请输入密码！！")
	 return false;
	 }
	}

</script>
<base target="_self" />
</head>

<body>
<?php include("inc_topbar.tpl.html"); ?>
<div id="wrap">
<!--Content, Left, Right, Middle, Outer, Advertisement--> 
<!--Header-->
<div id="header">
<?php 
include("inc_pagetitle.tpl.html"); 
include("inc_mainmenu.tpl.html"); 
include("inc_submenu.tpl.html"); 
$navigation = '&gt;&gt; 用户登陆';
include("inc_navigation.tpl.html"); 
?>
</div>
<!--/Header-->

<!--Content-->
<h1>老用户登陆</h1>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center">
			<table width="500" border="0" cellpadding="0" cellspacing="0">
        <tr>  
          <td align="center">
<?php
if(!empty($uid)){
?>
				<a href="<?php echo DIR_INSTALL ?>admin/main/index.php" target="_blank">进入管理中心</a><br /><br />
<?php if(! strstr($cburl,'login.php')) : ?>
				<a href="<?php echo $cburl ?>" target="_self">继续浏览</a><br /><br />
<?php endif; ?>             
                <a href="logout.php" target="_self">注销退出</a>
<?php
}else{
?>
          	<form name="loginform" method="post" action="" onsubmit="javascript:return checklogin();">
            <table width="100%" height="103" border="0" align="center" cellspacing="0">
                <tr> 
                  <td height="19" colspan="3"><strong>&nbsp;管理登陆入口:</strong></td>
                </tr>
                <tr> 
                  <td height="28"><img src="<?php echo SYS_FRONT_STYLE_PATH?>images/user.gif"></td>
                  <td>用户名：</td>
                  <td><input name="username" type="text" id="username" style="width:120"></td>
                </tr>
                <tr> 
                  <td height="24"><img src="<?php echo SYS_FRONT_STYLE_PATH?>images/password.gif"></td>
                  <td height="24">密&nbsp;&nbsp;码：</td>
                  <td><input name="password" type="password" id="password" style="width:120"></td>
                </tr>
                <tr> 
                  <td colspan="2">
                  <input type="hidden" name="act" value="login">
                  <input type="hidden" name="cburl" value="<?php echo $cburl ?>">
                  </td>
                  <td><input type="submit" name="Submit" value=" 进 入 "> 
                    <input type="reset" name="Submit2" value=" 取 消 "></td>
                </tr>
            </table>
            </form>
<?php
}?>
          </td>
        </tr>
      </table>
      <table width="100%" height="50" border="0" cellpadding="0" cellspacing="0">
	    <tr>
	      <td align="center"><font color="red"><?php echo $errormsg ?></font></td>
	    </tr>
	  </table>
</td>
  </tr>
</table>
<!--/Content-->

<?php include("inc_footer.tpl.html"); ?>
</div>
</body>
</html>