<%@ page language="C#" autoeventwireup="true" inherits="sys_Teacher_Teacher_Add, 25175_ALL" %>

<!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;
        }
    </style>
</head>
<body>
    <form id="from1" runat="server">
        <div class="form-group">
            <label class="control-label">
                教师名称<span class='rd'>*</span>：
                <asp:RequiredFieldValidator ID="rfvt_name" runat="server" ForeColor="Red" ErrorMessage="请填写"
                    ControlToValidate="txtt_name"></asp:RequiredFieldValidator>
            </label>
            <asp:TextBox ID="txtt_name" runat="server" MaxLength="50" CssClass="form-control"></asp:TextBox>
        </div>

        <div class="form-group">
            <label class="control-label">
                职工号<span class='rd'>*</span>：<asp:RequiredFieldValidator ID="rfvt_jobNumber" runat="server"
                    ForeColor="Red" ErrorMessage="请填写"
                    ControlToValidate="txtt_jobNumber"></asp:RequiredFieldValidator>
            </label>
            <asp:TextBox ID="txtt_jobNumber" runat="server" MaxLength="50" CssClass="form-control"></asp:TextBox>
        </div>
        <div class="form-group">
            <label class=" control-label">
                用户名<span class='rd'>*</span>： 
                <asp:RequiredFieldValidator ID="rfvt_user" runat="server" ForeColor="Red"
                    Display="Dynamic" ErrorMessage="必填" ControlToValidate="txtt_user"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revUser" runat="server" ErrorMessage="只允许数字字母@_." Display="Dynamic" ForeColor="Red" ControlToValidate="txtt_user" ValidationExpression="^[0-9a-zA-Z_@]{1,50}$"></asp:RegularExpressionValidator>

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

        <div class="form-group">
            <label class=" control-label">
                密码<span class='rd'>*</span>：
                    <asp:RequiredFieldValidator ID="rfvt_pass" runat="server" ForeColor="Red"
                        Display="Dynamic" ErrorMessage="必填" ControlToValidate="txtt_user"></asp:RequiredFieldValidator>
            </label>
            <div>
                <asp:TextBox ID="txtt_pass" runat="server" MaxLength="20" CssClass="form-control" TextMode="Password"></asp:TextBox>
            </div>
        </div>

        <div class="form-group">
            <label class=" control-label">
                密码验证<span class='rd'>*</span>：
           <asp:CompareValidator ID="cvtxtt_pass2" ControlToValidate="txtt_pass2" ControlToCompare="txtt_pass" runat="server" ErrorMessage="两次密码输入不一致" ForeColor="Red"></asp:CompareValidator>
            </label>
            <div>
                <asp:TextBox ID="txtt_pass2" runat="server" MaxLength="20" CssClass="form-control" TextMode="Password"></asp:TextBox>
            </div>
        </div>

        <div class="form-group">
          
            <asp:CheckBox ID="chkt_login" Text="禁止登录" runat="server" Checked="False" />
        </div>

        <div class="form-group">
            <label class="control-label">
                备注<span class='rd'>*</span>：<asp:RequiredFieldValidator ID="rfvt_note" runat="server" ForeColor="Red"
                    ErrorMessage="请填写" ControlToValidate="txtt_note"></asp:RequiredFieldValidator>
            </label>
            <asp:TextBox ID="txtt_note" runat="server" MaxLength="255" TextMode="MultiLine" CssClass="form-control"></asp:TextBox>
        </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>
