<%@ page language="C#" autoeventwireup="true" inherits="admin_SysLogin, ALL" enableEventValidation="false" %>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>系统管理员登录</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <!-- Bootstrap core CSS -->
    <link href="/control/login/bootstrap.min.css" rel="stylesheet" />
    <link href="/control/login/base.css" rel="stylesheet">
    <link href="/control/login/a_login.css" rel="stylesheet">
    <link href="/control/login/ionicons/ionicons.min.css" rel="stylesheet">
</head>
<body>
    <div class="wrapper">
        <div class="container">
            <div class="logo text-center">
                <h3> <img src="/control/logo.png" style="height: 40px; margin-top: -5px; display: inline-block" />会议室预约系统</h3>
            </div>
            <div class="loginBox">
                <div class="login-head">
                    <h2><span>系统管理员登录</span></h2>
                </div>
                <form class="form-horizontal" role="form" runat="server">
                    <div class="form-group">
                        <label class="ion-ios7-person-outline"></label>
                        <asp:TextBox ID="txtUser" runat="server" class="form-control" placeholder="用户名"></asp:TextBox>
                    </div>
                    <div class="form-group">
                        <label class="ion-ios7-locked-outline"></label>

                        <asp:TextBox ID="txtPass" runat="server" TextMode="Password" class="form-control" placeholder="密码"></asp:TextBox>

                    </div>
                    <div class="form-group">
                        <label class="ion-ios7-compose-outline"></label>

                        <asp:TextBox ID="txtValid" class="form-control col-sm-3" placeholder="验证码" runat="server"></asp:TextBox>

                    </div>
                    <div class="form-group codePic">
                        <div class="pull-left">

                            <img id="ImageCheck" src="ValidCode.aspx" alt='王莹' onclick="ChangeCode()" style="cursor: pointer" />
                            <script language="javascript" type="text/javascript">
                                function newGuid() {
                                    var guid = "";
                                    for (var i = 1; i <= 32; i++) {
                                        var n = Math.floor(Math.random() * 16.0).toString(16);
                                        guid += n;
                                        if ((i == 8) || (i == 12) || (i == 16) || (i == 20))
                                            guid += "-";
                                    }
                                    return guid;
                                }
                                function ChangeCode() {
                                    var myImg = document.getElementById("ImageCheck");
                                    myImg.src = "ValidCode.aspx?flag=" + newGuid();
                                    return false;
                                }
                            </script>

                            <a href="#" onclick="ChangeCode()">看不清？换一张</a>
                        </div>
                    </div>
                    <!--<div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox"> 记住密码
                                </label>
                            </div>
                        </div>
                    </div>-->
                    <div class="form-group">
                        <div class="">
                            <asp:Button ID="btnSubmit" runat="server" class="btn btn-primary" Text="登录" OnClick="btnLogin_Click" />
                        </div>
                        <br />
                       <p class="text-center">
                            <a href="/regsiter/Register.aspx">软件授权</a>&nbsp;/&nbsp;<a href="/regsiter/RPUser.aspx">密码找回</a>
                           &nbsp;/&nbsp;<a href="/Default.aspx">用户登录</a>
                        </p>
                    </div>
                </form>
            </div>
           <div class="copyRight p-top-lg text-center">
                <a href="http://www.25175.net" target="_blank"><span>顺通网络</span></a>&nbsp;提供技术支持
            </div>
        </div>
        <!-- 背景动画 -->
   <canvas id="bgCanvas"></canvas>

    <!-- Jquery -->


    </div>
    <!-- Jquery -->
    <script src="/lib/jquery/jquery-3.1.1.min.js"></script>
    
        <script src="/control/login/loginbg.js"></script>
</body>
</html>
