<%@ page language="C#" autoeventwireup="true" inherits="User_SimpleLogin, App_Web_alwjrles" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<!DOCTYPE HTML>
<html lang="zh-CN">
<head id="Head1" runat="server">
<title>用户登录-<%Call.Label("{$SiteName/}"); %></title>
<link href="../App_Themes/UserThem/style.css"rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../JS/ajaxrequest.js"></script>
<script type="text/javascript">
    if (self != top) { top.location = self.location; }
    function onfocus() {
        try {
            document.getElementById('TxtUserName').focus();
        } catch (Error) { }
    }
    var sts = 3;//登录后跳转等待时间;单位：秒
    function sucse(s, url) {
        if (s == 1) {//成功
            document.getElementById("main_l").style.display = "none";
            document.getElementById("main_s").style.display = "";
            document.getElementById("sec").innerHTML = sts;
            setInterval(loacationgoto, 1000);
        }
        else {
            document.getElementById("main_l").style.display = "";
            document.getElementById("main_s").style.display = "none";
        }
    }
    function BtnTj() {
        var username = document.getElementById("TxtUserName");
        var userpass = document.getElementById("TxtPassword");
        var TxtValidateCode = document.getElementById("TxtValidateCode");

        if (username.value == "") {
            username.focus();
            return false;
        }
        if (userpass.value == "") {
            userpass.focus();
            return false;
        }
        if (TxtValidateCode && TxtValidateCode.value == "") {
            TxtValidateCode.focus();
            return false;
        }
    }
    var v = 500;
</script>
</head>
<body onload="onfocus();" >
<div id="main" style="position:relative;">
    <form id="form" runat="server">
<div id="main_l">
<ul>
<h1>登录会员中心</h1>
<li><asp:Label ID="lblUser" runat="server" Text="用户名："></asp:Label>
<asp:TextBox ID="TxtUserName" runat="server" style="width:140px; margin-left:20px ;border:#CCC solid 1px;"  CssClass="input_out"  onfocus="this.className='input_on';this.onmouseout=''" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};" onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"></asp:TextBox>

    
</li>
      
<li>密　码： <asp:TextBox ID="TxtPassword" runat="server" TextMode="Password" style="width:140px; margin-left:20px; border:#CCC solid 1px;"  CssClass="input_out"  onfocus="this.className='input_on';this.onmouseout=''" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};" onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"></asp:TextBox></li>
<li><div class="reg_put" id="trVcodeRegister" visible="false" runat="server" >
    验证码：<asp:TextBox ID="TxtValidateCode" MaxLength="6" runat="server" style="width:140px; margin-left:20px ;border:#CCC solid 1px;" CssClass="input_out"  onfocus="this.className='input_on';this.onmouseout=''" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};" onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"></asp:TextBox>
    <asp:Image ID="Image1" runat="server" ImageUrl="~/Common/ValidateCode.aspx" Height="20px" ToolTip="点击刷新验证码" Style="cursor: pointer; border: 0; vertical-align: middle;" onclick="this.src='../Common/ValidateCode.aspx?t='+Math.random()" />        </div>
</li>
<li><asp:Button ID="btnLogin" CssClass="i_bottom" OnClientClick="return BtnTj();" runat="server" Text="登　录" onclick="btnLogin_Click" />　

<input type="checkbox" name="checkbox" checked="checked" id="checkbox" style="margin-left:18px" />记住登录&nbsp;
  &nbsp;  <a href="/User/GetPassword.aspx">忘记密码了？ </a></li>
<li style="margin-top:10px;  ">如果您尚未在本站注册为用户，请先点击<a href="Register.aspx">点此注册</a>。</li>
</ul>
</div>
</form>
<div id="main_r">
<h2>登录会员中心您将获得：</h2>
<ul>
<li>自由发布信息</li>
<li>查看积分与管理空间</li>
<li>设定您的个性化空间</li>
<li>提交您的需求为您服务</li>
<li>购物支付多彩商务体验</li>
<li>专业的用户中心引领E时代！</li>
    <li><asp:HyperLink ID="hlReg" runat="server"  NavigateUrl="~/User/login.aspx?RegID=1">Email登录</asp:HyperLink> &nbsp; <asp:HyperLink ID="uidReg" runat="server"  NavigateUrl="~/User/login.aspx?RegID=2">用户ID登录</asp:HyperLink> </li>
</ul>
</div><div class="clear"></div>
</div><!--main end -->
    
  
             
<div id="bottom">
<a href="/"><img src="<%Call.Label("{$LogoUrl/}"); %>" alt="<%Call.Label("{$SiteName/}"); %>" /></a>
<p>
&copy;&nbsp;Copyright&nbsp; <%Call.Label("{$SiteName/}"); %> All rights reserved.</p>
</div>
</body>
</html>