<?php
@include("../class/connect.php");
@include("../class/config.php");
//风格
$loginadminstyleid=(int)getcvar('loginadminstyleid');
if(empty($loginadminstyleid))
{
	$loginadminstyleid=$public_r['defadminstyle']?$public_r['defadminstyle']:1;
}
// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
// HTTP/1.0
header("Pragma: no-cache");
if(empty($public_r['adminloginkey']))
{
	$loginkey='<tr> 
          <td>验证码:</td>
          <td width="65"><input name="key" type="text" class="b-form2" size="9"></td>
            <td><img src="ShowKey.php" align="bottom"></td>
        </tr>';
	$loginbutton='<input name="imageField" type="image" src="loginimg/login.gif" width="78" height="18" border="0">';
}
else
{
	$loginkey='<tr> 
          <td></td>
          <td width="65"><input name="imageField" type="image" src="loginimg/login.gif" width="78" height="18" border="0"></td>
            <td></td>
        </tr>';
	$loginbutton='';
}
?>
<html>
<head>
<title>帝国网站管理系统管理后台 - Powered by EmpireCMS</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="loginimg/css.css" type="text/css">
<base onmouseover="window.status='帝国网站管理系统(EmpireCMS)';return true">
<script>
if(self!=top)
{
	parent.location.href='index.php';
}
</script>
</head>

<body text="383636" bgcolor="#FFFFFF" onload="document.login.username.focus();">
<table width="98" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td height="60">&nbsp;</td>
  </tr>
</table>
<table width="524" border="0" cellspacing="0" cellpadding="0" align="center" height="320">
<form name="login" method="post" action="enews.php">
<input type="hidden" name="enews" value="login">
  <tr> 
    <td rowspan="3" width="61"><img src="loginimg/login_r1_c1.gif" width="61" height="249"></td>
    <td colspan="3"><img src="loginimg/login_r1_c2.gif" width="463" height="65"></td>
  </tr>
  <tr> 
      <td width="241" height="104" valign="top" background="loginimg/login_r2_c2.gif">&nbsp;</td>
    <td width="157" rowspan="2" valign="baseline" background="loginimg/login_r2_c3.gif">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
            <td height="31"><?=$loginbutton?></td>
        </tr>
      </table></td>
    <td rowspan="2"><img src="loginimg/login_r2_c4.gif" width="65" height="184"></td>
  </tr>
  <tr> 
    <td height="80">
      <table width="202" height="75" border="0" align="right" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="50">用户名:</td>
          <td colspan="2">
            <input name="username" type="text" class="b-form2" size="22">
          </td>
        </tr>
        <tr> 
          <td>密&nbsp;&nbsp;码:</td>
          <td colspan="2">
            <input name="password" type="password" class="b-form2" size="22">
          </td>
        </tr>
        <?=$loginkey?>
      </table>
    </td>
  </tr>
  <tr> 
    <td colspan="4"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="loginimg/login_r4_c1.gif">
        <tr>
          <td width="111" height="32">&nbsp;</td>
          <td width="111" valign="top">&nbsp;</td>
          <td width="302">&nbsp;</td>
        </tr>
      </table></td>
  </tr>
    <tr valign="top"> 
      <td height="39" colspan="4" bgcolor="ECECEC"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td width="19%"><div align="center"></div></td>
            <td width="73%" height="30">Powered by <a href="http://www.phome.net" target="_blank"><strong>EmpireCMS</strong></a> 
              <font color="#FF9900"><strong>4.7</strong></font> &copy; 2007-2008 
              EmpireSoft Inc.</td>
            <td width="8%">&nbsp;</td>
          </tr>
        </table></td>
  </tr>
  </form>
</table>
</body>
</html>
