<?php
if( !defined('ISDVBBS') ){
	header('HTTP/1.0 404 Not Found');
	exit;
}
$psysusername=get_cookie("psysusername");

?>
<!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=$charset" />
    <title><?=$forum_type?>-<?=$lang['page_title']?>[Powered By Dvbbs.Net]</title>
    <meta name="author" content="Lao_Mi" />
    <meta name="author's email" content="heshi@21cn.com" />
    <meta name="author's homepage" content="www.dvbbs.net" />
    <script language="javascript" src="inc/blackol.js" type="text/javascript"></script>
	<style type="text/css">
		body { background:#fff; background-image : url("images/body_bg.gif");background-repeat: repeat-x ;  }
		td { font-size:12px;}
		input { border:1px solid #999; }
		.button { color: #135294; border:1px solid #666; height:21px; line-height:21px; background:url("images/button_bg.gif")}
		div#nifty{margin: 0 10%;background: #ABD4EF;width: 420px;word-break:break-all; margin-top:60px;}
		b.rtop, b.rbottom{display:block;background: #FFF}
		b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden; background: #ABD4EF}
		b.r1{margin: 0 5px}
		b.r2{margin: 0 3px}
		b.r3{margin: 0 2px}
		b.rtop b.r4, b.rbottom b.r4{margin: 0 1px;height: 2px}
	</style>
  </head>
<body onload="if(window.name!='') parent.location='login.php';">
	<script type="text/javascript" language="javascript">
		function checkform(f){
                    cansubmit=true;
                    for(i=0;i<f.elements.length;i++){
                       ele=f.elements[i];
                       if(ele.type=="text"&&ele.value==""){
                           cansubmit=false;
                           break;
                       } 
                    }
		    f.submit.disabled=!cansubmit;
		}
	</script>
<center>
<div id="nifty">
<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
<div style="width:403px; height:26px; line-height:26px; background:none; font-size:12px; text-align:left;">正在登录系统管理中心</div>
<div style="width:403px; height:46px; background:#166CA3;"><img src="images/login.gif" alt="" /></div>
<div style="width:401px !important; width:403px;  height:<?=(strlen($psysusername)==0)?'180':'120';?>px; background:#fff; border-left:1px solid #649EB2; border-right:1px solid #649EB2; ">
<div style="padding:3px;color:red;text-indent:80px;line-height:18px;text-align:left;"><?=$err_msg?></div>
<table width="100%" border="0" cellspacing="3" cellpadding="0">
    <form action="login.php?action=checklogin" method="post" onKeyUp="checkform(this)">
<?
if ( strlen($psysusername) == 0 ){
?>
		<tr>
			<td align="right" width="35%">前台用户：</td>
		  <td align="left"><input type="text" name="rusername" size="19" value="<?=stripslashes($GLOBALS['rusername'])?>" onblur="checkform(this.form)"></td>
		</tr>
		<tr>
			<td align="right" width="35%">前台密码：</td>
		  <td align="left"><input type="password" name="rpassword" size="20" onblur="checkform(this.form)"></td>
		</tr>
 <?
	 }
 ?>
  <tr>
    <td align="right" width="35%">后台用户：</td>
    <td align="left"><input type="text" name="username" size="19" value="<?=stripslashes($GLOBALS['username'])?>" onblur="checkform(this.form)"></td>
  </tr>
  <tr>
    <td align="right" width="35%">后台密码：</td>
    <td align="left"><input type="password" name="password" size="20" onblur="checkform(this.form)"></td>
  </tr>
<?
	if($fsetting['logingetcode']) {
?>
		<tr>
			<td align="right" width="35%">验证码：</td>
			<td align="left"><input type="text" name="verifycode" size="19" onfocus="setObjSize(document.getElementById('cercode'),100,24)" onblur="checkform(this.form)">
		  <script language="javascript">document.write('<scri'+'pt language="javascript" src="../dv_getcode.js.php?syslogin=1&sysuser=<?=$membername?>&d=1&w=0&h=0&t='+Date()+'"></sc'+'ript>')</script></td>
		</tr>
<?
	}
?>
  <tr>
    <td align="right"></td>
    <td align="left"><input style="margin-top:5px;" type="submit" name="submit" value="<?=$lang['str_login']?>" disabled="disabled" /></td>
  </tr>
<!--   <tr>
    <td colspan=2>动网论坛 Dvbbs·php Version 2.0++</td>
  </tr> -->
  </form>
</table>
</div>
<div style="width:401px !important; width:403px; height:50px; background:#F7F7E7; border:1px solid #649EB2; border-top:1px solid #ddd; margin-bottom:5px; font-size:12px; line-height:20px;  display:block; overflow:hidden;"> 动网论坛 Dvbbs·php Version 2.0++</div>
<b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b>
</body>
</html>