<%@ page language="C#" autoeventwireup="true" inherits="sys_Admin_AdminAdd, Web" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>学校网上订餐预约系统</title>
    <link href="/control/plugin/bootstrap3/css/bootstrap.min.css" rel="stylesheet" />
    <script src="/control/js/jquery.js"></script>
    <script src="/control/plugin/bootstrap3/js/bootstrap.min.js"></script>
    <script src="/control/plugin/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
    <script src="/control/plugin/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-CN.js"></script>
    <link href="/control/plugin/bootstrap-datepicker/css/datepicker3.css" rel="stylesheet" />
    <style>
        .l {
            font-weight: initial;
        }

        .rd {
            color: red;
        }
    </style>
</head>
<body>
    <form id="from1" runat="server">

        <!-- Add.aspx -->

        <div class="form-group">
            <label class="col-sm-2 control-label">
                用户名<span class='rd'>*</span>：</label>
            <div class="col-sm-7">

                <asp:TextBox ID="txtsa_user" runat="server" MaxLength="50" CssClass="form-control"></asp:TextBox>

            </div>
            <div class="col-sm-3">

                <asp:RequiredFieldValidator ID="rfvsa_user" runat="server" ForeColor="Red" ErrorMessage="请填写用户名" ControlToValidate="txtsa_user"></asp:RequiredFieldValidator>

            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">
                密码<span class='rd'>*</span>：</label>
            <div class="col-sm-7">

                <asp:TextBox ID="txtsa_pass" TextMode="Password" runat="server" MaxLength="50" CssClass="form-control"></asp:TextBox>

            </div>
            <div class="col-sm-3">
                <asp:RequiredFieldValidator ID="rfvsa_pass" runat="server" ForeColor="Red" ErrorMessage="请填写密码" ControlToValidate="txtsa_pass"></asp:RequiredFieldValidator>

            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">
                姓名<span class='rd'>*</span>：</label>
            <div class="col-sm-7">

                <asp:TextBox ID="txtsa_name" runat="server" MaxLength="50" CssClass="form-control"></asp:TextBox>

            </div>
            <div class="col-sm-3">


                <asp:RequiredFieldValidator ID="rfvsa_name" runat="server" ForeColor="Red" ErrorMessage="请填写姓名" ControlToValidate="txtsa_name"></asp:RequiredFieldValidator>

            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">
                手机号<span class='rd'>*</span>：</label>
            <div class="col-sm-7">

                <asp:TextBox ID="txt_phone" runat="server" MaxLength="50" CssClass="form-control"></asp:TextBox>

            </div>
            <div class="col-sm-3">

                <asp:RequiredFieldValidator ID="rfvphone" runat="server" ForeColor="Red" ErrorMessage="请填写" ControlToValidate="txt_phone"></asp:RequiredFieldValidator>

            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">
                 密码找回提问<span class='rd'>*</span>：</label>
            <div class="col-sm-7">

                <asp:TextBox ID="txtsa_question" runat="server" MaxLength="100" Text="123" CssClass="form-control"></asp:TextBox>

            </div>
            <div class="col-sm-3">


                <asp:RequiredFieldValidator ID="rfvsa_question" runat="server" ForeColor="Red" ErrorMessage="请填写" ControlToValidate="txtsa_question"></asp:RequiredFieldValidator>

            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">
                 找回答案<span class='rd'>*</span>：</label>
            <div class="col-sm-7">

                <asp:TextBox ID="txtsa_answer" runat="server" MaxLength="100" Text="123" CssClass="form-control"></asp:TextBox>

            </div>
            <div class="col-sm-3">
                <asp:RequiredFieldValidator ID="rfvsa_answer" runat="server" ForeColor="Red" ErrorMessage="请填写" ControlToValidate="txtsa_answer"></asp:RequiredFieldValidator>
            </div>
        </div>

        <div class="form-group">
            <asp:Button ID="btnSubmit" runat="server" Text="添加"
                CssClass="btn  btn-primary btn-block"
                OnClick="btnSubmit_Click" />
        </div>

    </form>

    <script type="text/javascript">
        $(function () {
            window.parent.ShowDialog();
        });
    </script>
</body>
</html>
