<?php
session_start();
if(isset($_SESSION["logedin"])){
	header("location:innerhome.php");
	exit;
}
include_once("admin.config.inc.php");
include ("config.inc.php");
if(isset($_GET['id']))
	$id=$_GET['id'];
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head><title>欢迎到 <? echo $ADMIN_MAIN_SITE_NAME ;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script>
	function Process()
	{
		document.all.loading.style.visibility = 'visible';
	}
</script>
<link href = "../style/css/login.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="wrap">
	<div class="login-wrap">

<form id='loign' name='loign' action="password.php" method="post">
<div class="username">
        	<label for="username">用户名</label>
            <input type="text" id="username" size="25" name="name">
        </div>
    	<div class="password">
        	<label for="password">密码</label>
            <input type="password" id="pass" type="password" size="25" name="pass">
        </div>
    	
    	<div class="button-wrap">
		<INPUT language="Javascript" class="login-button" onClick="Process(); if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate(); " type="submit" value="" name="_ctl1"> 
        <INPUT TYPE="hidden" NAME="ed_type" VALUE=""> 
        <input type="hidden" name="redirect" value="<?echo $redirect?>">
         </div>   
		<div class="clear"></div>                     
        </form>
    </div>
</div>
<?php
                      if($id==1)
                      {
                    ?>
                      
            <table width="50%" border="1" align="center" cellpadding="2" cellspacing="0" bordercolor = "#475C74" bgcolor="#ffffff">
              <tr valign="middle"> 
                          
                <td  valign="middle" >
				<table border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td width="17"><img src="images/ALERT.gif" width="16" height="16"></td>
						<td align="center" width="500"><font size="2" face="Verdana, Arial, Helvetica, sans-serif" color="#FF0000"><strong>&nbsp;&nbsp;&nbsp;用户名和密码</strong> 
                  不正确</font></td>
					</tr>
				</table>
				</td>
                        </tr>
                      </table>
                      <?php
                      }
                    ?>
</body>
</html>

