<?php
require_once '_admin_setting.php';

$pageTitle = '泽瑞 企业公司网站管理系统登陆';

if ($_GET['action'] == 'logout') $_SESSION['user'] = '';


$username = $_POST['username'];
$password = $_POST['password'];
$password = md5($password);

$sql = "SELECT * FROM users WHERE account = '{$username}' AND password = '{$password}'";

$row = $nsodb->get_row($sql);
if ($row) {
	$_SESSION['user'] = $username;
	header('Location: qa.php');
	exit;
}

require_once '_top.php';
?>
<center>
<form method="post">
<table border=1 borderColor=#6699CC cellPadding=4 cellSpacing=1 width=450 style="border-collapse: collapse" align=center >
	<tr valign="baseline"> 

		<td align="right" background=image/b1.gif>

        <div align="center"><font color="#000000" style="font-size: 10.5pt;"> 

          <strong>泽瑞 企业公司网站管理系统</strong></font></div>

      </td>

	</tr>

	<tr valign="baseline"> 

		<td bgcolor=#EFF1F3 align=center valign=middle height=60> 

			<table width="100%" border="0" cellspacing="0" cellpadding="0">

				<tr>

					<td width=20> </td>

					

            <td width=150>

              <div align="center"><img src="images/admin_p.gif" width="90" height="100" border="0" usemap="#Map">              </div>

            </td>

					<td width=280>

	 

	<table width="100%" border="0" cellspacing="8" cellpadding="0" align="center">

		<tr align="center"> 

			<td height="38" colspan="2"><font color="#000000" size="3"><strong>管理员登录</strong></font>			</td>
		</tr>

		<tr> 

			<td align="right"><font color="#000000">用户名称：</font></td>

			<td><input type="text" name="username" value="" /></td>
		</tr>

		<tr> 

			<td align="right"><font color="#000000">用户密码：</font></td>

			<td><input type="password" name="password" /></td>
		</tr>

		<tr> 

			<td colspan="2"> <div align="center"> &nbsp;&nbsp;&nbsp;&nbsp;

				<input type="submit" value="登陆" />

				&nbsp;<br>

				</div></td>
		</tr>
	</table>


					</td>

				</tr>

			</table>

		</td>

	</tr>

</table>

</form>
  <br>

  <a href="#"><font color="#990000"><b>东莞市泽瑞科技有限公司</b></font></a> 

  <a href="#"><font color="#990000"><b>Tel:0769-3399890 

  E-mail:services@zerich.cn </b></font></a> 

</center>

<p align="center">&nbsp;</p>

</div>

<map name="Map"> 

  <area shape="rect" coords="-15,33,108,68" href="http://www.zerich.cn/" target="_blank" alt="泽瑞条码" title="泽瑞科技有限公司">

</map>

<!-- zerich.cn Baidu tongji analytics -->
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");

document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fc61567174bd57bec1e0d3dde43a87025' type='text/javascript'%3E%3C/script%3E"));

</script>
</body>

</html>


