<!--#include file="Conn.asp"-->
<!--#include file="inc/function.asp"-->
<%
if isarray(application(cachename&"info"))=false then
	call PutApplicationValue()
end if
if CheckUserLogined()=true then
	response.Redirect "user_index.asp"
end if
%>
<html>
<head>
<title>博客登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="Admin_STYLE.CSS">
<script language=javascript>
<!--
function SetFocus()
{
if (document.Login.UserName.value=="")
	document.Login.UserName.focus();
else
	document.Login.UserName.select();
}
function CheckForm()
{
	if(document.Login.UserName.value=="")
	{
		alert("请输入用户名！");
		document.Login.UserName.focus();
		return false;
	}
	if(document.Login.Password.value == "")
	{
		alert("请输入密码！");
		document.Login.Password.focus();
		return false;
	}
	
}

function CheckBrowser() 
{
  var app=navigator.appName;
  var verStr=navigator.appVersion;
  if (app.indexOf('Netscape') != -1) {
    alert("提示：\n    你使用的是Netscape浏览器，可能会导致无法使用后台的部分功能。建议您使用 IE6.0 或以上版本。");
  } 
  else if (app.indexOf('Microsoft') != -1) {
    if (verStr.indexOf("MSIE 3.0")!=-1 || verStr.indexOf("MSIE 4.0") != -1 || verStr.indexOf("MSIE 5.0") != -1 || verStr.indexOf("MSIE 5.1") != -1)
      alert("提示：\n    您的浏览器版本太低，可能会导致无法使用后台的部分功能。建议您使用 IE6.0 或以上版本。");
  }
}
//-->
</script>


</head>
<body class="bgcolor">
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<form name="Login" action="user_ChkLogin.asp" method="post" target="_parent" onSubmit="return CheckForm();">
    
  <table width="300" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#FFFFFF" class="border">
    <tr height="22" align="center" class="topbg" >
      <td  colspan="2" ><b>博客登录</b></td>
    </tr>
    <tr class="tdbg">
      <td height="22" align="right"><span class="style1">用户名称：</span></td>
      <td><input name="UserName"  type="text"  id="UserName4" maxlength="20" style="width:160px;border-style:solid;border-width:1;padding-left:4;padding-right:4;padding-top:1;padding-bottom:1" onmouseover="this.style.background='#D6DFF7';" onmouseout="this.style.background='#FFFFFF'" onFocus="this.select(); "></td>
    </tr>
    <tr class="tdbg">
      <td height="22" align="right"><span class="style1">用户密码：</span></td>
      <td><input name="Password"  type="password" maxlength="20" style="width:160px;border-style:solid;border-width:1;padding-left:4;padding-right:4;padding-top:1;padding-bottom:1" onmouseover="this.style.background='#D6DFF7';" onmouseout="this.style.background='#FFFFFF'" onFocus="this.select(); "></td>
    </tr>
    <tr class="tdbg">
      <td align="right" valign="top"><span class="style1">Cookie：</span></td>
      <td><input name="CookieDate" type="radio" value="0" checked>
      不保存，关闭浏览器就失效 <br>
      <input type="radio" name="CookieDate" value="1">
      保存一天<BR>
      <input type="radio" name="CookieDate" value="2">
      保存一月<BR>
      <input type="radio" name="CookieDate" value="3">
      保存一年</td>
    </tr>
    <tr class="tdbg">
      <td height="25" colspan="2"><div align="center">
          <input name="Submit"   type="submit"   value=" 确&nbsp;认 ">
&nbsp;
        <input name="reset" type="reset"  id="reset" value=" 清&nbsp;除 " >
        <br>
      </div></td>
    </tr>
  </table>
  </form>
<script language="JavaScript" type="text/JavaScript">
//CheckBrowser();
SetFocus(); 
</script>
</body>
</html>
