<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="register.aspx.cs" Inherits="jiaowu.app.register" %>
<%@ Register src="head.ascx" tagname="head" tagprefix="uc1" %>
<%@ Register src="footer.ascx" tagname="footer" tagprefix="uc2" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>周口新翔驾校机动车驾驶员培训有限公司</title>
    <meta http-equiv="author" content="http://www.xxjxkh.com,新翔驾校在线企业管理系统"/>
    <META content="周口新翔驾校驾校版权所有" name=Copyright>
    <meta name="description" content="周口新翔驾校-新翔 学车、新翔 驾校、新翔驾校、周口市驾校、新翔学车-周口新翔驾校机动车驾驶员培训有限公司">
    <meta name="keywords" content="周口新翔驾校-新翔 学车、周口 新翔 驾校、新翔驾校、周口市驾校、周口市学车-周口新翔驾校机动车驾驶员培训有限公司">
    <link href="static/front/Css/main.css?v=1" rel="stylesheet">
    <link href="static/plugin/mMenu/css/component.css" rel="stylesheet" type="text/css" />
    <script src="static/front/Js/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" src="static/plugin/mMenu/js/modernizr.custom.js"></script>
    <script type="text/javascript" src="static/plugin/mMenu/js/jquery.dlmenu.js"></script>
    <link href="static/Js/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <script type="text/javascript">
        $(function () {
            $('#dl-menu').dlmenu();
        });
    </script>
</head>
<body>
<form id="form1" runat="server">

<uc1:head ID="head1" runat="server" />


    <div class="container">
        <div class="row">
            <!-- form: -->
            <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
            <section>
                <div class="col-lg-8 col-lg-offset-2">
                    <div class="page-header">
                        <h2>在线报名</h2>
                        
                    </div>
                        <div class="form-group">
                            <label class="col-lg-3 control-label">分 校</label>
                            <div class="col-lg-5">
                                <asp:DropDownList ID="ddlfenxiaoid" runat="server" AppendDataBoundItems="true" class="form-control">
                                </asp:DropDownList>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-3 control-label">姓 名</label>
                            <div class="col-lg-5">
                                <asp:TextBox ID="txtstuxm" runat="server" class="form-control"></asp:TextBox>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-3 control-label">性 别</label>
                            <div class="col-lg-5">
                            <asp:RadioButtonList ID="rblxb" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                <asp:ListItem Selected="True">男</asp:ListItem>
                                <asp:ListItem>女</asp:ListItem>
                                </asp:RadioButtonList>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-3 control-label">身份证号：</label>
                            <div class="col-lg-5">
                            <asp:TextBox ID="txtcard" runat="server" class="form-control" MaxLength="18"></asp:TextBox>
                            </div>
                        </div>
                         <div class="form-group">
                            <label class="col-lg-3 control-label">身份证地址：</label>
                            <div class="col-lg-5">
                                <asp:TextBox ID="txtdizhi" runat="server" class="form-control"></asp:TextBox>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-3 control-label">报考类型：</label>
                            <div class="col-lg-5">
                            
                            <asp:RadioButtonList ID="rblleixing" runat="server" RepeatDirection="Horizontal" 
                                    RepeatLayout="Flow">
                                <asp:ListItem Selected="True">初次</asp:ListItem>
                                <asp:ListItem>增驾</asp:ListItem>
                                </asp:RadioButtonList>
                            
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-3 control-label">报考车型：</label>
                            <div class="col-lg-5">
                              <asp:DropDownList ID="ddlchexing" runat="server" AppendDataBoundItems="true" class="form-control">
                <asp:ListItem Value="">请选择车型</asp:ListItem>
                
                </asp:DropDownList>  
                            </div>
                        </div>
                       
                        <div class="form-group">
                            <label class="col-lg-3 control-label">联系电话:</label>
                            <div class="col-lg-5">
                                <asp:TextBox ID="txttel" runat="server" class="form-control"></asp:TextBox>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label class="col-lg-3 control-label">详细地址:</label>
                            <div class="col-lg-5">
                               <asp:TextBox ID="txtzhuzhi" class="form-control" runat="server"></asp:TextBox>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-3 control-label">备注信息:</label>
                            <div class="col-lg-5">
                               <asp:TextBox ID="txtbeizhu" class="form-control" runat="server" TextMode="MultiLine"></asp:TextBox>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <div class="col-lg-9 col-lg-offset-3">
                                <asp:Button ID="Button1" runat="server" Text="提交报名" class="btn btn-primary" 
                                    onclick="Button1_Click"></asp:Button>
                                <button type="button" class="btn btn-info" id="resetBtn">重置表单</button>
                                <asp:Label ID="lblmsg" runat="server" Text="Label"></asp:Label>
                            </div>
                        </div>
                </div>
            </section>
            </ContentTemplate>
    </asp:UpdatePanel>
            <!-- :form -->
        </div>
    </div>
    
<!--底部-->
<!--footer 开始-->
<uc2:footer  ID="footer1" runat="server" />
<!--footer end-->
    </form>
</body>
</html>

    <script src="static/Js/bootstrap/js/bootstrapValidator.min.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        // Generate a simple captcha
        function randomNumber(min, max) {
            return Math.floor(Math.random() * (max - min + 1) + min);
        };
        $('#captchaOperation').html([randomNumber(1, 100), '+', randomNumber(1, 200), '='].join(' '));

        $('#defaultForm').bootstrapValidator({
            //        live: 'disabled',
            message: 'This value is not valid',
            feedbackIcons: {
                valid: 'glyphicon glyphicon-ok',
                invalid: 'glyphicon glyphicon-remove',
                validating: 'glyphicon glyphicon-refresh'
            },
            fields: {
                txtstuxm: {
                    message: '姓名不可用',
                    validators: {
                        notEmpty: {
                            message: '姓名不能为空！'
                        },
                        stringLength: {
                            min: 2,
                            max: 30,
                            message: '姓名不符合要求'
                        }
                    }
                },
                txttel: {
                    message: '联系电话不正确',
                    validators: {
                        notEmpty: {
                            message: '联系电话不能为空！'
                        },
                        phone: {
                            message: '联系号码格式不正确！',
                            country: 'ES'
                        }
                    }
                },
                captcha: {
                    validators: {
                        callback: {
                            message: '答案错误',
                            callback: function (value, validator) {
                                var items = $('#captchaOperation').html().split(' '), sum = parseInt(items[0]) + parseInt(items[2]);
                                return value == sum;
                            }
                        }
                    }
                }
            }
        });

        // Validate the form manually
        $('#validateBtn').click(function () {
            $('#defaultForm').bootstrapValidator('validate');
        });
        $('#resetBtn').click(function () {
            $('#defaultForm').data('bootstrapValidator').resetForm(true);
        });
    });
</script>