<% Option Explicit %>
<!--#include file="../FS_Inc/Const.asp" -->
<!--#include file="../FS_InterFace/MF_Function.asp" -->
<!--#include file="../FS_Inc/Function.asp" -->
<%
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = "no-cache"
Dim Conn,cookies_obj,cookies_str,FileObj,MF_Site_Name,GetConfigObj ,Sql,p_Soft_Version
MF_Default_Conn
session("GetCode")=""
Set cookies_obj = Server.CreateObject("MSWC.BrowserType")   
if cookies_obj.cookies = false then   
	cookies_str = "<html xmlns=""http://www.w3.org/1999/xhtml"">"&chr(10)
	cookies_str = cookies_str& "<title>"
	cookies_str = cookies_str& "您的浏览器不支持cookies，不能使用本系统"
	cookies_str = cookies_str& "</title>"&chr(10)
	cookies_str = cookies_str& "<head>"&chr(10)
	cookies_str = cookies_str& "</head>"&chr(10)
	cookies_str = cookies_str& "<body>"&chr(10)
	cookies_str = cookies_str& "<div align=center><font style=""font-size:14px"">您的浏览器不支持Cookies,不能使用FoosunCMS<br />by foosun.cn</font></div>"&chr(10)
	cookies_str = cookies_str& "</body>"&chr(10)
	cookies_str = cookies_str& "</html>"&chr(10)
	Response.Write cookies_str
	Response.end
end if  
'检查安装文件是否存在，如果存在，转向到安装目录
Set FileObj=Server.CreateObject(G_FS_FSO)
If FileObj.FileExists(Server.MapPath("../Install/install.asp")) = True then
	response.Redirect "../Install/install.asp"
Elseif FileObj.FolderExists(Server.MapPath("../Install")) Then 
	FileObj.DeleteFolder Server.MapPath("../Install"),True
End if
Set GetConfigObj = server.CreateObject (G_FS_RS)
Sql = "select  Top  1 MF_Login_style,MF_Soft_Version,MF_Site_Name From FS_MF_Config"
GetConfigObj.open sql,Conn,1,3
if Not GetConfigObj.eof then
	Session("Admin_Style_Num") = GetConfigObj(0)
	p_Soft_Version = "版本号:V" & GetConfigObj(1)
	MF_Site_Name=GetConfigObj(2)
	GetConfigObj.close:Set GetConfigObj = nothing
Else
	p_Soft_Version = "<font color=""Red"">Err:Please configure Your Soft</font>"
	Session("Admin_Style_Num") = "1"
	MF_Site_Name = "风讯网站内容管理系统"
	GetConfigObj.close:Set GetConfigObj = nothing
End if
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<title>[请采用IE5.5以上版本浏览器、1024*768分辨率进入]</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta content="MSHTML 6.00.3790.2491" name="GENERATOR" />
<style>
a{text-decoration: none;} /* 链接无下划线,有为underline */ 
a:link {color: #232323;} /* 未访问的链接 */
a:visited {color: #232323;} /* 已访问的链接 */
a:hover{color: #FFCC00;} /* 鼠标在链接上 */ 
a:active {color: #FFCC00;} /* 点击激活链接 */
td ,body{
	color:#232323;
	font-size:12px;
	line-height: 18px;
}
.input{
    FONT-FAMILY: "新宋体";
    FONT-SIZE: 12px;
	COLOR:#F3F3F3;
    text-decoration: none;
    line-height: 150%;
    background:#0099CC;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
    border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #FFFFFF;
	border-right-color: #FFFFFF;
	border-bottom-color: #FFFFFF;
	border-left-color: #FFFFFF;
	padding:0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
}
.input_1{
    FONT-FAMILY: "新宋体";
    FONT-SIZE: 12px;
	COLOR:#006699;
    text-decoration: none;
    line-height: normal;
    background:#FFFFFF;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
    border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #80CCFF;
	border-right-color: #80CCFF;
	border-bottom-color: #80CCFF;
	border-left-color: #80CCFF;
	padding:0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
}
</style>
<SCRIPT language="javascript">
	window.status="建议采用IE5.5以上版本浏览器、1024*768分辨率进入后台\本系统对Maxthon,Mozilla Firefox等浏览器有良好的支持";
</SCRIPT>
<head>
<body background="Images/log_bg.gif" topmargin="80">
<table width="486" border="0" align="center" cellpadding="0" cellspacing="3" bgcolor="#00CCFF">
  <tr>
    <td height="287" bgcolor="#FFFFFF"> 
      <TABLE WIDTH=486 BORDER=0 CELLPADDING=0 CELLSPACING=0>
        <TR> 
          <TD COLSPAN=2> <IMG SRC="images/i_1.gif" ALT="" WIDTH=486 HEIGHT=87 border="0" usemap="#Map" target="_blank"></TD>
        </TR>
        <TR> 
          <TD width="339" background="images/i_2.gif">
		  <table width="317" height="112" border="0" align="center" cellpadding="0" cellspacing="0">
              <form action="CheckLogin.asp"  method="post" name="myform" id="myform"  onsubmit="return CheckForm();">
                <tr> 
                  <td width="23%" height="16"> <div align="center">用户名 </div></td>
                  <td width="77%" height="16"> <input name="name" type="text" class="input_1" id="name4" style="width:160px" value="<%=Request.Cookies("FoosunCookie")("AdminName")%>"  /> 
                    <input name="AutoGet" type="checkbox" id="AutoGet" value="1" <% If Request.Cookies("FoosunCookie")("AdminName")<>"" Then Response.Write "checked" End If%>/>
                    记住</td>
                </tr>
                <tr> 
                  <td height="15"> <div align="center">密　码</div></td>
                  <td height="15"><input name="password" type="password" class="input_1" id="password4" style="width:160px;FONT-SIZE:12px;" /></td>
                </tr>
                <tr> 
                  <td height="19"> <div align="center">附加码</div></td>
                  <td height="19"><input name="VerifyCode" type="text" class="input_1" id="VerifyCode" size="10" maxlength="10"/>
                    附加码框请输入 
                    <img src="../Fs_Inc/vCode.asp?" onClick="this.src+=Math.random()" alt="图片看不清？点击重新得到验证码" style="cursor:hand;">
                    <input name="URLs" type="hidden" id="URLs" value="<% = Request.QueryString("URLs")%>"></td>
                </tr>
                <tr class="back"> 
                  <td height="21" class="hback">&nbsp;</td>
                  <td height="21" class="hback"> <input class="input" type="submit" value="确定登陆" name="Submit" /> 
                    <input class="input" onClick="javascript:location.href='../'" type="button" value="返回首页" name="Submit1" /> 
                    <input class="input" onClick="window.location.reload()" type="button" value="刷新本页" name="Submit4" /></td>
                </tr>
              </form>
            </table> </TD>
          <TD width="147"> <IMG SRC="images/i_3.gif" WIDTH=147 HEIGHT=124 ALT=""></TD>
        </TR>
        <TR valign="bottom"> 
          <TD height="77" COLSPAN=2 background="images/i_4.jpg"> <font color="#FFFFFF"><br>
            </font></TD>
        </TR>
      </TABLE>
    </td>
  </tr>
</table>
  
<p align="center">&nbsp;</p>
<font color="#FFFFFF"></div> 
</p>
</font>
</body>
</html>
<%
set Conn =nothing
%>
<script language="JavaScript" type="text/javascript">
CheckBrowerVersion();
var ErrInfo='<% = Request("ErrInfo")%>';
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浏览器版本太低，系统将不能正常运行。点击确定将带你到下载地址！');
		location.href="http://nj.onlinedown.net/soft/17441.htm"
	}
}
if (ErrInfo!='') alert(ErrInfo);
function SetFocus()
{
if (document.myform.name.value=="")
	document.myform.name.focus();
else
	document.myform.name.select();
}
function CheckForm()
{
	if(document.myform.name.value=="")
	{
		alert("请输入您的用户名！");
		document.myform.name.focus();
		return false;
	}
	if(document.myform.password.value == "")
	{
		alert("请输入您的密码！");
		document.myform.password.focus();
		return false;
	}
	if (document.myform.VerifyCode.value==""){
       alert ("请输入您的验证码！");
       document.myform.VerifyCode.focus();
       return(false);
    }
}
</script>
