<?
include_once("inc/config.php");
include_once("inc/publicfun.php");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>飞天论坛 ——管理员登录</title>
</head>
<style type=text/css>
body {
    background:#EFEFEF;
    font-size: 12px;
    margin-top:0px;
}

INPUT {

    FONT-SIZE: 12px;
    font-family: "宋体";
}
SPAN {
    FONT-SIZE: 12px; POSITION: static
}
a:link,a:visited  {
    color: #0033FF;
    text-decoration: none;
}
</style>
<script language=javascript src="js/resetcode.js"></script>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table align=center width=380 style="border: outset 3px;" cellpadding=0 cellspacing=0 ID="Table1">
    <tr>
        
    <td style="padding:3px;background-color:blue;color:white;FONT-SIZE:13px;">管理员登录--飞天论坛　　　　 
      Powered By：WWW.FTBBS.CN</td>
    </tr>
    <tr valign=top>
        
    <td><img src="images/admin_title.gif" width="100%"></td>
    </tr>
    <tr>
        <td style="padding:15px;">
<script language="Javascript">
<!--
function VF_loginform(){
    var theForm = document.loginform;
    var numRE = /^\d+$/;
    var errMsg = "";
    var setfocus = "";

    if (theForm['password'].value == ""){
        errMsg = "请填写登录密码！";
        setfocus = "['password']";
    }
    if (theForm['username'].value == ""){
        errMsg = "请填写登录用户名！";
        setfocus = "['username']";
    }
    if (errMsg != ""){
        alert(errMsg);
        eval("theForm" + setfocus + ".focus()");
    }
    else theForm.submit();
}//-->
</script>
        <table  border="0">
        <form action="admin/adminlogin.php" method="post" name="loginform" onsubmit="VF_loginform();return false;"> 
          <tr>
            <td><span style="width:80px;">用户名：</span></td>
            <td><input maxlength=20 type="text" name="username" style="width:200px;" tabindex="1"></td>
          </tr>
          <tr>
            <td><span style="width:80px;">密　码：</span></td>
            <td><input maxlength=20 type="password" name="password" style="width:200px;"></td>
          </tr>
		  <?
		  if ($_SESSION["errorcount"]>=3){
		  ?>
          <tr>
            <td><span style="width:80px;">验证码：</span></td>
            <td style="FONT-SIZE: 12px;"> <input name=codestr id=codestr type=text size=6 maxlength=4>
              验证码输入： 
              <img src="getyzm.php" alt="看不清楚请点击刷新验证码" class="simg" style="cursor : pointer;" onclick="this.src='getyzm.php';" align="absmiddle">
            </td>
          </tr>
		  <? }?>
          <tr>
            <td>&nbsp;</td>
            <td align="right">&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td align="right"><input type="submit" value="登 录..." name="btnSubmit" style="width:80px;font:menu;" ID="Submit1"></td>
          </tr>
          </form>  
        </table>
        </td>
    </tr>
    <tr>
    <td style="padding:10px;FONT-SIZE:13px;"> 客户端操作系统:&nbsp;<?=sysinfo()?> &nbsp;<?=browser()?></td>
  </tr>
</table>
<script src=online.php?dis=no&stats=后台登陆></script>
<br><br>
</body>
</html>
