<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="PowerEasy.Module.General.WebSite.LogOn" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>
        <asp:Literal ID="Literal1" runat="server" Text="<%$ Res: Login_Page , 会员登录 %>"></asp:Literal></title>
</head>
<body id="LoginStatusbody">
    <form id="form1" runat="server">
        <asp:Panel ID="PnlLogOn" runat="server">
            <table cellspacing="0">
                <tr>
                    <td>
                        <asp:Literal ID="Literal2" runat="server" Text="<%$ Res: Login_Literal2 ,用户名： %>"></asp:Literal>
                    </td>
                    <td>
                        <asp:TextBox ID="TxtUserName" MaxLength="20" Width="95" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Literal ID="Literal3" runat="server" Text="<%$ Res: Login_Literal3 ,密 码： %>"></asp:Literal>
                    </td>
                    <td>
                        <%-- 取消Type=Password，利用JS在页面加载完毕后修改 --%>
                        <asp:TextBox ID="TxtPassword" runat="server" Width="95" TextMode="Password"></asp:TextBox>
                    </td>
                </tr>
                <asp:PlaceHolder ID="PhValCode" runat="server">
                    <tr>
                        <td>
                            <asp:Literal ID="Literal4" runat="server" Text="<%$ Res: Login_Literal4 ,验证码： %>"></asp:Literal>
                        </td>
                        <td>
                            <asp:TextBox ID="TxtValidateCode" MaxLength="6" Width="60" runat="server" onfocus="this.select();"></asp:TextBox>
                            <pe:ValidateCode ImageAlign="AbsMiddle" ID="VcodeLogOn" runat="server" RefreshLinkToolTip="<%$ Res: Login_VcodeLogOn ,看不清楚，换一个 %>" />
                        </td>
                    </tr>
                </asp:PlaceHolder>
                <tr>
                    <td>Cookie：
                    </td>
                    <td>
                        <asp:DropDownList ID="DropExpiration" runat="server">
                            <asp:ListItem Value="None" Text="<%$ Res: Login_ListItem1 ,不保存 %>"></asp:ListItem>
                            <asp:ListItem Value="Day" Text="<%$ Res: Login_ListItem2 ,保存一天 %>"></asp:ListItem>
                            <asp:ListItem Value="Month" Text="<%$ Res: Login_ListItem3 ,保存一月 %>"></asp:ListItem>
                            <asp:ListItem Value="Year" Text="<%$ Res: Login_ListItem4 ,保存一年 %>"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
            <asp:Button ID="BtnLogOn" runat="server" Text="<%$ Res: Login_BtnLogOn ,登录 %>" OnClientClick="return BeginClick();" OnClick="BtnLogOn_Click" />&nbsp;&nbsp;
        <a href="User/Register.aspx" target="_top">
            <asp:Literal ID="Literal5" runat="server" Text="<%$ Res: Login_Literal5 ,注册 %>"></asp:Literal></a>｜<a href="User/GetPassword.aspx"
                target="_top"><asp:Literal ID="Literal6" runat="server" Text="<%$ Res: Login_Literal6 ,忘记密码 %>"></asp:Literal></a>
            <div class="clearbox">
            </div>
            <a class="bt_login" href="User/Contents/AnonymousContent.aspx" target="_blank">
                <asp:Literal ID="Literal7" runat="server" Text="<%$ Res: Login_Literal7 ,匿名投稿 %>"></asp:Literal></a><a
                    class="bt_login" href="shop/OrderForm.aspx" target="_blank"><asp:Literal ID="Literal8" runat="server" Text="<%$ Res: Login_Literal8 ,订单查询 %>"></asp:Literal></a>
            <div class="clearbox">
            </div>
            <pe:RequiredFieldValidator ID="ValrUserName" runat="server" ErrorMessage="<%$ Res: Login_ValrUserName ,请输入用户名！ %>"
                ControlToValidate="TxtUserName" Display="None" SetFocusOnError="True"></pe:RequiredFieldValidator>
            <pe:RequiredFieldValidator ID="ValrPassword" runat="server" ErrorMessage="<%$ Res: Login_ValrPassword ,请输入密码！ %>"
                ControlToValidate="TxtPassword" Display="None" SetFocusOnError="True"></pe:RequiredFieldValidator>
            <pe:RequiredFieldValidator ID="ValrValidateCode" runat="server" ErrorMessage="<%$ Res: Login_ValrValidateCode ,请输入验证码！ %>"
                ControlToValidate="TxtValidateCode" Display="None" SetFocusOnError="True"></pe:RequiredFieldValidator>
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                ShowSummary="False" />
        </asp:Panel>
        <asp:Panel ID="PnlLogOnStatus" runat="server">
            <div class="u_login">
                <asp:Literal ID="LitUserName" runat="server"></asp:Literal><asp:Literal ID="Literal9" runat="server" Text="<%$ Res: Login_Literal9 ,，您好！您有： %>"></asp:Literal><br />
                <asp:Literal ID="LitMoney" runat="server">0</asp:Literal><br />
                <asp:Literal ID="LitUserExp" runat="server">0</asp:Literal><br />
                <pe:ExtendedLiteral HtmlEncode="false" ID="LitMessage" runat="server">0</pe:ExtendedLiteral><br />
                <asp:Literal ID="LitLogOnTime" runat="server">0</asp:Literal><br />
                <asp:Literal ID="LitPoint" runat="server">0</asp:Literal><br />
                <asp:Literal ID="LitSignIn" runat="server">0</asp:Literal><br />
                <div style="text-align: center">
                    <a href="User/Default.aspx" target="_top">
                        <asp:Literal ID="Literal10" runat="server" Text="<%$ Res: Login_Literal10 ,会员中心 %>"></asp:Literal></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="User/Logout.aspx"
                            target="_top"><asp:Literal ID="Literal11" runat="server" Text="<%$ Res: Login_Literal11 ,退出登录 %>"></asp:Literal></a>
                </div>
            </div>
        </asp:Panel>
        <asp:Panel ID="PnlLogOnMessage" runat="server" Visible="false">
            <pe:ExtendedLiteral HtmlEncode="false" ID="LitErrorMessage" runat="server"></pe:ExtendedLiteral>
            <asp:Button ID="BtnReturn" runat="server" Text="<%$ Res: Login_BtnReturn ,返回 %>" OnClick="BtnReturn_Click" />
        </asp:Panel>
        <script type="text/javascript" src="JS/jquery.pack.js"></script>
        <script type="text/javascript" src="JS/Encrypt/BigInt.js"></script>
        <script type="text/javascript" src="JS/Encrypt/Encrypt.js"></script>
        <script type="text/javascript" src="JS/Encrypt/Barrett.js"></script>
        <script type="text/javascript" src="JS/Encrypt/Common.js"></script>
        <script type="text/javascript">
            var BeginClick = function () {
                if (Page_ClientValidate()) {
                    GetRsaEncrypt(1);
                    $("#TxtPassword").val(rsaEncrypt($("#TxtPassword").val()));
                    return true;
                } else {
                    return false;
                }
            }
        </script>
    </form>
</body>
</html>
