<?php
require_once '../include/adminfunction.php';

$action=var_request("action","");
$errmsg = "";
if($action=="login"){
	
	$adminuser = var_request("username","");
	$adminpass = md5(var_request("password",""));

	if($adminuser==$manage_adminname && $adminpass == $manage_adminpass){
	
		SetCookie("COOKIEadminuser", $adminuser);  
		$_SESSION['adminuser'] = $adminuser;
		
		SetCookie("COOKIEadminpass", var_request("password",""));  
		$_SESSION['adminpass'] = var_request("password","");
		
		redirect_to("manage.php");

	}else{
		$errmsg = "账号密码错误，请重新输入。";
	}

}
if($action=="loginout"){
		$_SESSION['adminuser'] = "";
		SetCookie("COOKIEadminuser", "");  
		redirect_to($sitetitleurl);
}



?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>管理登录--快捷管理后台</TITLE>
<STYLE type=text/css>
TD {
	FONT-SIZE: 9pt; COLOR: #666666; LINE-HEIGHT: 150%; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
A {
	FONT-SIZE: 9pt; COLOR: #666666; LINE-HEIGHT: 150%; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
.input {
	BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid; BORDER-LEFT: #666666 1px solid; BORDER-BOTTOM: #666666 1px solid; HEIGHT: 16px
}
.style2 {
	COLOR: #f7941d
}
.style3 {
	COLOR: #ff0000
}
.style5 {
	COLOR: #9c0000
}
BODY {
	BACKGROUND-IMAGE:  url("images/w01.jpg"); MARGIN: 0px
}
</STYLE>

<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR><LINK 
href="images/windFx.css" type=text/css 
rel=stylesheet></HEAD>
<BODY>
<FORM action=index.php?action=login method=post>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD height=130>&nbsp;</TD>
    <TD>&nbsp;</TD>
    <TD>&nbsp;</TD></TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD width=702>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD vAlign=top><IMG height=408 
            src="images/w02.jpg" width=81> </TD>
          <TD vAlign=top>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD><IMG height=24 src="images/w05.jpg" 
                  width=528></TD></TR>
              <TR>
                <TD bgColor=#ffffff height=217>
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD width=164><IMG height=217 
                        src="images/w10.jpg" width=164></TD>
                      <TD vAlign=top>
                        <TABLE cellSpacing=0 cellPadding=0 width="100%" 
border=0>
                          <TBODY>
                          <TR>
                            <TD><IMG height=67 
                              src="images/w07.jpg" 
                            width=364></TD></TR>
                          <TR>
                            <TD height=12></TD></TR>
                          <TR>
                            <TD><SPAN class=font-ffffff>用 户： <INPUT 
                              name=username 
                              class=input id=username 
                              style="WIDTH: 210px; HEIGHT: 20px" size=12> 
                            </SPAN></TD></TR>
                          <TR>
                            <TD height=6></TD></TR>
                          <TR>
                            <TD height=6></TD></TR>
                          <TR>
                            <TD vAlign=center><SPAN class=font-ffffff>密 码： 
                              <INPUT name=password type=password class=input id=password 
                              style="WIDTH: 150px; HEIGHT: 20px" 
                              size=12> 
                              <INPUT type=image height=19 
                              width=65 src="images/001A.gif" 
                              value=" 开 始 登 录 " name=Submit2> </SPAN></TD></TR>
                          <TR>
                            <TD height=12></TD></TR>
                          <TR>
                            <TD><IMG height=4 
                              src="images/w08.jpg" 
                            width=364></TD></TR>
                          <TR>
                            <TD style="color:#FF0000"><?php echo $errmsg;?></TD>
                          </TR>
                          <TR>
                            <TD>&nbsp;</TD>
                          </TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
              <TR>
                <TD><IMG height=63 src="images/w04.jpg" 
                  width=528></TD></TR>
              <TR>
                <TD vAlign=top><IMG height=104 
                  src="images/w09.jpg" 
              width=528></TD></TR></TBODY></TABLE></TD>
          <TD vAlign=top><IMG height=408 
            src="images/w03.jpg" 
      width=93></TD></TR></TBODY></TABLE></TD>
    <TD>&nbsp;</TD></TR></TBODY></TABLE></FORM></BODY></HTML>

