<%@language=vbscript codepage=936%>
<%
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%>企业Mssql版</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>
<%
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=""../image.asp"" alt=""点击换一张!"" onClick=""this.src='../image.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="control.asp">
        <tr>
          <td width="104"><div align="right" class="td style1">用户名：</div></td>
          <td width="230"><input name="username" type="text" id="Name2" 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"></td>
  </tr>
</table>
<p align="center">&nbsp;</p>
</body>
</html>