<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="yueyaCMS.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 id="Head1" runat="server">
    <title>用户登录</title>
    <link href="/Plugins/bootstrap/bootstrap.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
body{padding-top:40px;padding-bottom:40px;background-color:#f5f5f5;line-height:2.2}
.form-signin{max-width:300px;padding:19px 29px 29px;margin:0 auto 20px;background-color:#fff;border:1px solid #e5e5e5;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}
.form-signin .form-signin-heading,.form-signin .checkbox{margin-bottom:10px}
.form-signin input[type=text],.form-signin input[type=password]{font-size:16px;height:auto;margin-bottom:15px;padding:7px 9px}
#qqLoginBtn img { border-radius:5px;}

</style>
</head>
<body>
    <div class="container">
        <form id="form1" runat="server" style="width:600px; margin:auto;">
        <%=errorMsg%>

        <h3 class="form-signin-heading">管理员登陆</h3>
            <p>
        <div class="input-prepend">
<span class="add-on"><i class="icon-user"></i> 登陆账号</span><asp:TextBox ID="username" Text="admin" class="input-block-level" placeholder="请输入……" runat="server"
            required /></div>
                </p>

            <p>
        <div class="input-prepend">
<span class="add-on"><i class="icon-lock"></i> 登录密码</span><asp:TextBox ID="userpwd" Text="123456" class="input-block-level" placeholder="请输入……" runat="server"
            required TextMode="Password" /></div>
                </p>

            <p>
        <div class="input-prepend input-append">
<span class="add-on"><i class="icon-barcode"></i>&nbsp;验&nbsp;&nbsp;证&nbsp;&nbsp;码</span><asp:TextBox ID="checkcode" runat="server" Width="80px" required />
        
        <a href="#a" class="btn" id="changeCKCode"><img id="ckcode" src="/ckCode.aspx" onkeypress="if(event.keyCode==13){Login();}" />看不清？</a>
            </div>
                </p>
<p>
<asp:Button ID="Button1" runat="server" class="btn btn-large btn-warning" Text="登录系统" OnClick="Button1_Click" />&nbsp;

<span id="qqLoginBtn"></span>
</p>

<div class="alert">
如果您使用<code>IE</code>浏览器，请检查版本是否在<code>9.0</code>以上，<br />
推荐您使用<code>火狐/谷歌/360浏览器（极速模式）/Opera/搜购/遨游浏览器。</code>
</div>
</form>
</div>

<script src="/Scripts/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="/Plugins/bootstrap/bootstrap.js" type="text/javascript"></script>
<script type="text/javascript" src="http://qzonestyle.gtimg.cn/qzone/openapi/qc_loader.js" data-appid="100570646" data-redirecturi="" charset="utf-8"></script>
<script type="text/javascript">
        //登录成功
        var QQLoginResult = function (reqData, opts) {
            if (QC.Login.check()) {
                var RequestData = { content: "#玥雅CMS企业网站管理系统#免费提供下载，支持千万级数据量，想做网站的话快来看看！http://cms.yueyasoft.com/admin/login.aspx" };
                QC.api("add_t", RequestData).complete(function (c) { window.location.href = "Login.aspx"; });
            }
        };

        if (!QC.Login.check()) {
            QC.Login({
                btnId: "qqLoginBtn", size: "A_L",
                scope: "get_user_info",
            }, QQLoginResult, function (opts) { });
        }
        else {
            QC.api("get_user_info").success(function (s) {
                window.location.href = "Login.aspx?figureurl=" + s.data.figureurl + "&nickname=" + s.data.nickname;
            });
        }

        $(function () {
            $("#ckcode").click(function () { $(this).attr("src", $(this).attr("src") + "?").hide().fadeIn(); });
            $("#changeCKCode").click(function () { $("#ckcode").attr("src", $("#ckcode").attr("src") + "?").hide().fadeIn(); });
        });
</script>

<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F6ea6f910935ddf9f2f7df9c9c16d5a5b' type='text/javascript'%3E%3C/script%3E"));
</script>
</body>
</html>