<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="ynhtm.Admin.Login" %>

<!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 runat="server">
    <title>登录 - Powered by YNHTM.COM</title>
    <link rel="stylesheet" href="Css/Login.css" />
    <script type="text/javascript" src="/Js/jquery.js"></script>
    <script type="text/javascript" src="/Js/Utils.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="msg">
    </div>
    <script type="text/javascript">
        $.Msg.container = "#msg";
        window.ValidationSummaryOnSubmit = $.Msg.validationSummaryOnSubmit;
        function OAuthQzoneLogin() {
            location.href = "/Admin/";
        }
    </script>
    <div id="login">
        <ul>
            <li class="gray">其他登录方式<br />
                <a href="javascript:$.OAuth.qzoneLogin();">
                    <img src="Images/OAuthQzone.png" alt="" /></a></li>
            <li>
                <asp:Label runat="server" AssociatedControlID="txtUserName">用户名</asp:Label><br />
                <asp:TextBox ID="txtUserName" runat="server" Width="202px"></asp:TextBox>
                <asp:RequiredFieldValidator runat="server" ControlToValidate="txtUserName" ErrorMessage="用户名不能为空"></asp:RequiredFieldValidator>
            </li>
            <li>
                <asp:Label runat="server" AssociatedControlID="txtPassWord">密码</asp:Label><br />
                <asp:TextBox ID="txtPassWord" runat="server" Width="202px" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator runat="server" ControlToValidate="txtPassWord" ErrorMessage="密码不能为空"></asp:RequiredFieldValidator>
            </li>
            <li>
                <asp:Label runat="server" AssociatedControlID="txtAuthcode">验证码</asp:Label><br />
                <asp:TextBox ID="txtAuthcode" runat="server" CssClass="authcode" Width="50px" MaxLength="4"></asp:TextBox>
                <asp:RequiredFieldValidator runat="server" ControlToValidate="txtAuthcode" ErrorMessage="验证码不能为空"></asp:RequiredFieldValidator>
                <script type="text/javascript">
                    $.Authcode.create();
                </script>
            </li>
            <li>
                <asp:Button ID="btnLogin" runat="server" OnClick="btnLogin_Click" Text="登录" />
            </li>
            <li>&laquo; <a href="/" class="b">网站首页</a></li>
        </ul>
    </div>
    <div id="footer">
        版权所有 &copy;
        <asp:Label ID="lblCopy" runat="server"></asp:Label><br />
        Powered by <a href="http://www.ynhtm.com/" target="_blank">YNHTM.COM</a>
    </div>
    <div id="silverlight">
        <a href="http://www.ynhtm.com/Public/Silverlight.exe" target="_blank">
            <img src="Images/ms-silverlight-logo.gif" alt="silverlight" title="Get Silverlight" /></a></div>
    </form>
</body>
</html>
