<%@ page language="C#" autoeventwireup="true" inherits="_Default, App_Web_default.aspx.cdcab7d2" enableEventValidation="false" %>

<%@ Register Src="MyHeader.ascx" TagName="MyHeader" TagPrefix="uc1" %>
<%@ Register Src="MyFooter.ascx" TagName="MyFooter" TagPrefix="uc2" %>
<!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>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <script src="/control/js/jquery.js" type="text/javascript"></script>
    <link href="/control/plugin/bootstrap3/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href="/control/css/rl.css" rel="stylesheet" type="text/css" />
</head>
<body >
<script language="javascript">
    $(function () {
        if (!$.support.leadingWhitespace) { $("body").html("<h1>当前不支持IE 6 7 8 浏览器,请使用高版本的IE浏览器或火狐、google浏览器 访问</h1>") }
     
    });
</script>
    <div id="content" class="container" >
        <uc1:MyHeader ID="MyHeader1" runat="server" />
        <div class="row">
            <div class="col-md-9">
                <div class="well">
                    <ul class="nav nav-tabs">
                        <li role="presentation" class="active"><a>用户登录</a></li>
                              <li><a href="LeaderLogin.aspx">负责人登录</a></li>
                        <li role="presentation"><a href="Register.aspx">用户注册</a></li>
                  
                    </ul>
                    <div class="page-header">
                        <h3>用户登录</h3>
                    </div>
                    <form class="form-horizontal" id="from1" runat="server">
                        <div class="form-group">
                            <label class="col-sm-2 control-label" for="inputEmail3">
                                用户名：
                            <asp:RequiredFieldValidator ID="rfvtxtUser" runat="server" ForeColor="Red" ErrorMessage="*"
                                ControlToValidate="txtUser"></asp:RequiredFieldValidator></label>

                            <div class="col-sm-10">
                                <asp:TextBox ID="txtUser"  class="form-control" runat="server"></asp:TextBox>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label" for="inputPassword3">
                                密码：
                            <asp:RequiredFieldValidator ID="rfvtxtPass" runat="server" ForeColor="Red" ErrorMessage="*"
                                ControlToValidate="txtPass"></asp:RequiredFieldValidator>
                            </label>
                            <div class="col-sm-10">
                                <asp:TextBox ID="txtPass" class="form-control"  TextMode="Password" runat="server"></asp:TextBox>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label" for="inputPassword3">
                                验证码：
                            <asp:RequiredFieldValidator ID="rfvPass" runat="server" ForeColor="Red" ErrorMessage="*"
                                ControlToValidate="txtValid"></asp:RequiredFieldValidator>
                            </label>
                            <div class="col-sm-3">
                                <asp:TextBox ID="txtValid" class="form-control" runat="server"></asp:TextBox>
                            </div>
                            <div class="col-sm-7">
                                <img id="ImageCheck" src="ValidCode.aspx" alt='王莹' />
                                <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>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <div class="checkbox">
                                    <label>
                                        <asp:CheckBox ID="cbSaveLoginInfo" runat="server" />
                                        保存登录信息
                                    </label>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <asp:Button ID="btnSubmit" CssClass="btn btn-default btn-primary" runat="server"
                                    Text="用户登录" OnClick="btnSubmit_Click" />
                                <a class="btn btn-default " href="Register.aspx">用户注册</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <div class="col-md-3">
                <div class="well">
                    <h3>手机扫描二维码登录</h3>
                    <div>
                        <asp:Image ID="imgRcode" runat="server" CssClass="img-responsive"   />
                    
                    </div>
                </div>
            </div>
        </div>
        <uc2:MyFooter ID="MyFooter1" runat="server" />
    </div>
        <script src="/control/plugin/bootstrap3/js/bootstrap.js" type="text/javascript"></script>
</body>
</html>
