<%
Option Explicit
Response.Buffer = True
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = "no-cache"
%>
<!--#include file="../inc/version.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>TOT-CMS-<%=Tot_Cms_Version%></title>
<style type="text/css">
<!--
body {
	margin-top: 100px;
	font-size: 12px;
}
td {
	font-size: 12px;
	line-height:20px;
	color: #666666;
}
.style1 {color: #FFFFFF}
.style2 {font-size: 12px; line-height: 1.4; color: #FFFFFF; }
a:link{font-size:12px; text-decoration:none;}
-->
</style>
<script language="JavaScript">
CheckBrowerVersion();
function CheckBrowerVersion()
{
	var MajorVer=navigator.appVersion.match(/MSIE (.)/)[1];
	var MinorVer=navigator.appVersion.match(/MSIE .\.(.)/)[1];
	var IE6OrMore=MajorVer>= 5.5||(MajorVer>=5.5&&MinorVer>=5.5);
	if (!IE6OrMore)
	{
		alert('IE浏览器版本太低，请升级IE浏览器到5.5以上版本！');
		document.all.BtnSubmit.disabled=true;
	}
}
function check(obj){
	if(obj.UserName.value==""){
		alert("用户名称不能为空!");
		obj.UserName.focus();
		return false;
	}
	if(obj.PassWord.value==""){
		alert("密码不能为空!");
		obj.PassWord.focus();
		return false;
	}
	if(obj.VerifyCode.value==""){
		alert("请输入验证码!");
		obj.VerifyCode.focus();
		return false;
	}
	return true;
}
</script>
<%
Function GetCode()
	Dim TestObj
	On Error Resume Next
	Set TestObj = Server.CreateObject("Adodb.Stream")
	Set TestObj = Nothing
	If Err Then
		Dim TempNum
		Randomize timer
		TempNum = cint(8999*Rnd+1000)
		Session("GetCode") = TempNum
		GetCode = Session("GetCode")		
	Else
		GetCode = "<img src=""GetCode.asp"">"		
	End If
End Function
%>
</head>
<body bgcolor="#E0E0E0" oncontextmenu="javascript:return false;" onLoad="document.form1.UserName.focus()">
<div align="center"></div>
<table width="491" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><img src="images/login/login_01.gif" width="491" height="60" alt=""></td>
  </tr>
  <tr> 
    <td><img src="images/login/login_02.gif" width="491" height="75" alt=""></td>
  </tr>
  <tr>
    <td height="217" valign="top" background="images/login/login_03.gif" bgcolor="#002764" style="background-position:center; background-repeat:no-repeat; "><table width="350" border="0" align="center" cellpadding="4" cellspacing="0">
      <form name="form1" method="post" action="loginok.asp" onSubmit="return check(this)">
        <tr>
          <td width="104"><div align="right" class="td style1">用户名：</div></td>
          <td width="230"><input name="UserName" type="text" id="UserName" value="<%=Request.Cookies("TOTCookie")("AdminName")%>" size="16">
              <input name="AutoGet" type="checkbox" id="AutoGet" value="1" <% If Request.Cookies("TOTCookie")("AdminName")<>"" Then Response.Write "checked" End If%>>
              <span class="style2">记住用户名</span></td>
        </tr>
        <tr>
          <td><div align="right" class="style2">密　码<span class="td style1">：</span></div></td>
          <td><input name="PassWord" type="password"  id="PassWord" size="16">
          </td>
        </tr>
        <tr>
          <td><div align="right" class="style2">验证码<span class="td style1">：</span></div></td>
          <td><input name="VerifyCode" type="text" class="input" id="VerifyCode3" size="9">
              <%=GetCode()%></td>
        </tr>
        <tr>
          <td height="80" colspan="2">            
              <div align="center">
  <input name="imageField" type="image" src="Images/Login/login.gif" width="69" height="28" border="0">
&nbsp;&nbsp;&nbsp;&nbsp; <a href="javascript:window.close()"><img src="Images/Login/close.gif" width="69" height="28" border="0"></a> </div></td>
        </tr>
      </form>
    </table></td>
  </tr>
  <tr>
    <td bgcolor="#F5F5F5"><img src="images/login/login_04.gif" width="491" height="24" alt=""></td>
  </tr>
  <tr>
    <td bgcolor="#E0E0E0"><div align="center">官方站点：<a href="http://www.totcms.com" target="_blank">http://www.totcms.com</a></div></td>
  </tr>
</table>
<p align="center">&nbsp;</p>
</body>
</html>