<%@ Page Title="" Language="C#" MasterPageFile="Site.Master" AutoEventWireup="true" CodeBehind="login.aspx.cs"
    Inherits="FanXian.Web.login" %>


<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">用户登录</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
    <script language="javascript" type="text/javascript">
        var W_CallBack;
        var iWidth;
        var iHeight;
        var ileft;
        var itop;
        var sResize;
        function sys_fResize(iW, iH) {
            iWidth = iW;
            iHeight = iH;
            ileft = (screen.width - iWidth) / 2 - 5;
            itop = (screen.height - iHeight) / 2 - 20
            sResize = "no";
        }
        function imgBtnClick(url) {
            if (url != '') {
                sys_fResize(800, 600);
                W_CallBack = window.open("about:blank", "W_CallBack", "resizable=" + sResize + ",width=" + iWidth + ",height=" + iHeight + ",left=" + ileft + ",top=" + itop);
                W_CallBack.location.href = url;
            }
        }

        function CallBackSuccess(Type) {
            if (W_CallBack) {
                W_CallBack.close();
            }
            location.href = "Default.aspx?Type=" + Type + "&random=" + Math.random();
        }
    </script>
</asp:Content>


<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <h2>用户登录</h2>
    <form id="aspnetForm" runat="server">
        <asp:Login ID="LoginUser" runat="server" BackColor="#F7F7DE" BorderColor="#CCCC99" 
            BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="10pt" 
            onauthenticate="Login1_Authenticate" FailureText="登录失败，请重试。" 
            LoginButtonText="提交登录" PasswordLabelText="密 码：" 
            PasswordRequiredErrorMessage="请填写“密码”。" RememberMeText="记住我的帐户" 
            TitleText="会员登录" UserNameLabelText="用户名：" 
            UserNameRequiredErrorMessage="请填写“用户名”。">
            <LayoutTemplate>
                <table cellpadding="1" cellspacing="0" style="border-collapse:collapse;">
                    <tr>
                        <td>
                            <table cellpadding="0">
                                <tr>
                                    <td align="center" colspan="2" 
                                        style="color:White;background-color:#6B696B;font-weight:bold;">
                                        会员登录</td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">用户名：</asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                            ControlToValidate="UserName" ErrorMessage="请填写“用户名”。" ToolTip="请填写“用户名”。" 
                                            ValidationGroup="LoginUser">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">密 码：</asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                            ControlToValidate="Password" ErrorMessage="请填写“密码”。" ToolTip="请填写“密码”。" 
                                            ValidationGroup="LoginUser">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <asp:CheckBox ID="RememberMe" runat="server" Text="记住我的帐户" />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2" style="color:Red;">
                                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" colspan="2">
                                        <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="提交登录" 
                                            ValidationGroup="LoginUser" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </LayoutTemplate>
            <TitleTextStyle BackColor="#6B696B" Font-Bold="True" ForeColor="#FFFFFF" />
        </asp:Login>
        <br />
        <a href="login_taobao.aspx"><img src="content/images/login_taobao.png" align="absmiddle" alt="淘宝登录" />用淘宝账户登录</a>
        <br />
        <br />
        <a href="login_sina.aspx"><img src="content/images/sina240.png" align="absmiddle" alt="用新浪微博帐号登录" /></a>
    </form>
    <asp:Label ID="labMsg" ForeColor="Red" runat="server" />
</asp:Content>
