<commit_before><!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>苏州市平江实验学校“家长志愿者”填写平台</title>
        <!-- Tell the browser to be responsive to screen width -->
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        <!-- Bootstrap 3.3.6 -->
        <link rel="stylesheet" href="<?php echo base_url();?>AdminLTE2/bootstrap/css/bootstrap.min.css">
        <!-- Font Awesome -->
        <link rel="stylesheet" href="<?php echo base_url();?>AdminLTE2/bootstrap/offline/font-awesome-4.4.0/css/font-awesome.min.css">
        <!-- Ionicons -->
        <link rel="stylesheet" href="<?php echo base_url();?>AdminLTE2/bootstrap/offline/ionicons-2.0.1/css/ionicons.min.css">
        <!-- daterange picker -->
        <link rel="stylesheet" href="<?php echo base_url();?>AdminLTE2/plugins/daterangepicker/daterangepicker-bs3.css">
        <!-- bootstrap datepicker -->
        <link rel="stylesheet" href="<?php echo base_url();?>AdminLTE2/plugins/datepicker/datepicker3.css">
        <!-- iCheck for checkboxes and radio inputs -->
        <link rel="stylesheet" href="<?php echo base_url();?>AdminLTE2/plugins/iCheck/all.css">
        <!-- Select2 -->
        <link rel="stylesheet" href="<?php echo base_url();?>AdminLTE2/plugins/select2/select2.min.css">
        <!-- Theme style -->
        <link rel="stylesheet" href="<?php echo base_url();?>AdminLTE2/dist/css/AdminLTE.min.css">
        <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
                page. However, you can choose any other skin. Make sure you
                apply the skin class to the body tag so the changes take effect.
        -->
        <link rel="stylesheet" href="<?php echo base_url();?>AdminLTE2/dist/css/skins/skin-blue.min.css">
        <!-- REQUIRED JS SCRIPTS -->
        <!-- jQuery 2.2.0 -->
        <script src="<?php echo base_url();?>AdminLTE2/plugins/jQuery/jQuery-2.2.0.min.js"></script>
        <!-- Bootstrap 3.3.6 -->
        <script src="<?php echo base_url();?>AdminLTE2/bootstrap/js/bootstrap.min.js"></script>
        <!-- AdminLTE App -->
        <script src="<?php echo base_url();?>AdminLTE2/dist/js/app.min.js"></script>
        <!-- Optionally, you can add Slimscroll and FastClick plugins.
            Both of these plugins are recommended to enhance the
            user experience. Slimscroll is required when using the
            fixed layout. -->
        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>
<body class="hold-transition skin-blue" style="background-color:#ECF0F5">
  <div class="content">
    <!-- Content Header (Page header) -->
    <section class="content-header">
    </section>
    <!-- Main content -->
    <section class="content">
        <div class="box box-info" style="width:80%; margin-left:10%; margin-top:4%">
            <div class="box-header with-border" align="center" style="margin-bottom:4%">
            <h3 class="box-title" style="font-size: 30px">苏州市平江实验小学“家长志愿者”填写平台</h3>
            </div>
            <?php if ($page_id == 1):?>
            <?php echo form_open('fill/check', 'class="form-horizontal" id="fill1"');?>
                <div class="box-body">
                    <?php if(isset($message)):?>
                    <div class="callout callout-danger">
                        <p><?=$message?></p>
                    </div>
                    <?php endif?>
                    <div class="form-group">
                        <label class="col-sm-2 control-label" for="entrance">入学年份</label>
                        <div class="col-sm-3">
                            <select class="form-control select2" id="entrance" name="entrance">
                                <?php foreach ($school as $key => $value):?>
                                    <?php if(isset($origin) && $origin['entrance'] == $key):?>
                                    <option selected="selected" value="<?=$origin['entrance']?>"><?=$origin['entrance']?></option>
                                    <?php continue;?>
                                    <?php endif;?>
                                <option value="<?php echo $key;?>"><?php echo $key;?></option>
                                <?php endforeach;?>
                            </select>
                        </div>
                        <label class="col-sm-2 control-label" for="class">所在班级</label>
                        <div class="col-sm-3">
                            <select class="form-control select2" id="class" name="class">
                            <script>
                                var entrance = $("#entrance option:selected").val();
                                var all = <?php print $school_json; ?>;
                                var num = parseInt(all[entrance]);
                                for (var i = 1; i <= num; i++){

                                    if("<?php echo isset($origin)?>" && "<?php echo $origin['class']?>" == i){
                                    $("<option selected='selected' value='" + i + "'>" + i + "班</option>").appendTo("#class");
                                    continue;
                                    }
                                $("<option value='" + i + "'>" + i + "班</option>").appendTo("#class");
                                }
                            </script>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label" for="child_name">学生姓名</label>
                        <div class="col-sm-3">
                            <input id="child_name" name="child_name" class="form-control" type="text" placeholder="子女姓名" value="<?=$origin['child_name']?>"/>
                        </div>
                        <label class="col-sm-2 control-label" for="child_sex">学生性别</label>
                        <div class="col-sm-3">
                            <div class="raw">
                                <input id="child_sex_0" type="radio" value="0" name="child_sex" class="flat-blue" <?php if ($origin['child_sex'] != 1) echo 'checked';?>/>&nbsp;男&nbsp;&nbsp;
                                <input id="child_sex_1" type="radio" value="1" name="child_sex" class="flat-blue" <?php if ($origin['child_sex'] == 1) echo 'checked';?>/>&nbsp;女
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label" for="relationship">与学生关系</label>
                        <div class="col-sm-8 raw">
                            <div class="col-lg-3">
                                <div class="input-group">
                                    <span class="input-group-addon">
                                        <input type="radio" id="relationship_2" value="2" name="relationship" class="flat-blue" <?php if ($origin['relationship'] == 2 || $origin['relationship'] == null) echo 'checked';?>/>
                                    </span>
                                    <input class="form-control" type="text" name="relationship_name" value="父亲" disabled/>
                                </div>
                            </div>
                            <div class="col-lg-3">
                                <div class="input-group">
                                    <span class="input-group-addon">
                                        <input type="radio" id="relationship_3" value="3" name="relationship" class="flat-blue" <?php if ($origin['relationship'] == 3) echo 'checked'; ?>/>
                                    </span>
                                    <input class="form-control" type="text" name="relationship_name" value="母亲" disabled/>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="input-group">
                                    <span class="input-group-addon">
                                        <input type="radio" id="relationship_4" value="4" name="relationship" class="flat-blue" <?php if ($origin['relationship'] == 4) echo 'checked';?>/>
                                    </span>
                                    <input class="form-control" type="text" name="relationship_name" placeholder="其他，请填写" value="<?=$origin['relationship_name']?>"/>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label" for="birthday">学生生日</label>
                        <div class="col-sm-3">
                            <div class="input-group date">
                                <input id="datepicker" name="birthday" class="form-control" type="text" value="<?=$origin['birthday']?>"/>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="box-footer">
                    <a class="btn btn-info pull-default" type="button" href="<?php echo site_url('login/index');?>">返回</a>
                    <button class="btn btn-info pull-right" type="submit">下一页</button>
                </div>
                <?php echo form_close();?>
            <?php elseif ($page_id == 2):?>
                <?php echo form_open('fill/basic_info', 'class="form-horizontal" id="fill1"', $hidden);?>
                <div class="box-body">
                    <?php if(isset($message)):?>
                    <div class="callout callout-danger"><commit_msg>modify the style of 'fill.php', still has bugs in 'select'label<commit_after><!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>苏州市平江实验学校“家长志愿者”填写平台</title>
        <!-- Tell the browser to be responsive to screen width -->
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        <!-- Bootstrap 3.3.6 -->
        <link rel="stylesheet" href="<?php echo base_url();?>AdminLTE2/bootstrap/css/bootstrap.min.css">
        <!-- Font Awesome -->
        <link rel="stylesheet" href="<?php echo base_url();?>AdminLTE2/bootstrap/offline/font-awesome-4.4.0/css/font-awesome.min.css">
        <!-- Ionicons -->
        <link rel="stylesheet" href="<?php echo base_url();?>AdminLTE2/bootstrap/offline/ionicons-2.0.1/css/ionicons.min.css">
        <!-- daterange picker -->
        <link rel="stylesheet" href="<?php echo base_url();?>AdminLTE2/plugins/daterangepicker/daterangepicker-bs3.css">
        <!-- bootstrap datepicker -->
        <link rel="stylesheet" href="<?php echo base_url();?>AdminLTE2/plugins/datepicker/datepicker3.css">
        <!-- iCheck for checkboxes and radio inputs -->
        <link rel="stylesheet" href="<?php echo base_url();?>AdminLTE2/plugins/iCheck/all.css">
        <!-- Select2 -->
        <link rel="stylesheet" href="<?php echo base_url();?>AdminLTE2/plugins/select2/select2.min.css">
        <!-- Theme style -->
        <link rel="stylesheet" href="<?php echo base_url();?>AdminLTE2/dist/css/AdminLTE.min.css">
        <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
                page. However, you can choose any other skin. Make sure you
                apply the skin class to the body tag so the changes take effect.
        -->
        <link rel="stylesheet" href="<?php echo base_url();?>AdminLTE2/dist/css/skins/skin-blue.min.css">
        <!-- REQUIRED JS SCRIPTS -->
        <!-- jQuery 2.2.0 -->
        <script src="<?php echo base_url();?>AdminLTE2/plugins/jQuery/jQuery-2.2.0.min.js"></script>
        <!-- Bootstrap 3.3.6 -->
        <script src="<?php echo base_url();?>AdminLTE2/bootstrap/js/bootstrap.min.js"></script>
        <!-- AdminLTE App -->
        <script src="<?php echo base_url();?>AdminLTE2/dist/js/app.min.js"></script>
        <!-- Optionally, you can add Slimscroll and FastClick plugins.
            Both of these plugins are recommended to enhance the
            user experience. Slimscroll is required when using the
            fixed layout. -->
        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>
<body class="hold-transition skin-blue" style="background-color:#ECF0F5">
  <div class="content">
    <!-- Content Header (Page header) -->
    <section class="content-header">
    </section>
    <!-- Main content -->
    <section class="content">
        <div class="box box-info" style="width:80%; margin-left:10%; margin-top:4%">
            <div class="box-header with-border" align="center" style="margin-bottom:4%">
            <h3 class="box-title" style="font-size: 30px">苏州市平江实验小学“家长志愿者”填写平台</h3>
            </div>
            <?php if ($page_id == 1):?>
            <?php echo form_open('fill/check', 'class="form-horizontal" id="fill1"');?>
                <div class="box-body">
                    <?php if(isset($message)):?>
                    <div class="callout callout-danger">
                        <p><?=$message?></p>
                    </div>
                    <?php endif?>
                    <div class="form-group">
                        <label class="col-sm-2 control-label" for="child_name">学生姓名</label>
                        <div class="col-sm-2">
                            <input style="width:100%;min-width:85px;max-width:125px" id="child_name" name="child_name" class="form-control" type="text" placeholder="子女姓名" value="<?=$origin['child_name']?>"/>
                        </div>
                        <label class="col-sm-2 control-label" style="width:86px;text-align:right;" for="entrance">入学年份</label>
                        <div class="col-sm-2">
                            <select class="form-control select2 col-sm-2" id="entrance" name="entrance" style="width:100%;">
                                <?php foreach ($school as $key => $value):?>
                                    <?php if(isset($origin) && $origin['entrance'] == $key):?>
                                    <option class="col-sm-2"> selected="selected" value="<?=$origin['entrance']?>"><?=$origin['entrance']?></option>
                                    <?php continue;?>
                                    <?php endif;?>
                                <option class="col-sm-2" value="<?php echo $key;?>"><?php echo $key;?></option>
                                <?php endforeach;?>
                            </select>
                        </div>
                        <label class="col-sm-2 control-label" style="width:86px;text-align:right;" for="class">所在班级</label>
                        <div class="col-sm-2">
                            <select class="form-control select2" style="width:100%" id="class" name="class" >
                            <script>
                                var entrance = $("#entrance option:selected").val();
                                var all = <?php print $school_json; ?>;
                                var num = parseInt(all[entrance]);
                                for (var i = 1; i <= num; i++){
                                    if("<?php echo isset($origin)?>" && "<?php echo $origin['class']?>" == i){
                                        $("<option selected='selected' value='" + i + "'>" + i + "班</option>").appendTo("#class");
                                        continue;
                                    }
                                    $("<option value='" + i + "'>" + i + "班</option>").appendTo("#class");
                                }
                            </script>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label" for="child_sex">学生性别</label>
                        <div class="col-sm-2">
                            <div class="raw">
                                <input id="child_sex_0" type="radio" value="0" name="child_sex" class="flat-blue" <?php if ($origin['child_sex'] != 1) echo 'checked';?>/>&nbsp;<label for="child_sex_0">男</label>&nbsp;&nbsp;
                                <input id="child_sex_1" type="radio" value="1" name="child_sex" class="flat-blue" <?php if ($origin['child_sex'] == 1) echo 'checked';?>/>&nbsp;<label for="child_sex_1">女</label>
                            </div>
                        </div>
                        <label class="col-sm-2 control-label" for="birthday">学生生日</label>
                        <div class="col-sm-3">
                            <div class="input-group date">
                                <input id="datepicker" name="birthday" class="form-control" type="text" value="<?=$origin['birthday']?>"/>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label" for="relationship">与学生关系</label>
                        <div class="col-sm-10 raw">
                            <div class="col-lg-3">
                                <div class="input-group">
                                    <span class="input-group-addon">
                                        <input type="radio" id="relationship_2" value="2" name="relationship" class="flat-blue" <?php if ($origin['relationship'] == 2 || $origin['relationship'] == null) echo 'checked';?>/>
                                    </span>
                                    <input class="form-control" type="text" name="relationship_name" value="父亲" disabled/>
                                </div>
                            </div>
                            <div class="col-lg-3">
                                <div class="input-group">
                                    <span class="input-group-addon">
                                        <input type="radio" id="relationship_3" value="3" name="relationship" class="flat-blue" <?php if ($origin['relationship'] == 3) echo 'checked'; ?>/>
                                    </span>
                                    <input class="form-control" type="text" name="relationship_name" value="母亲" disabled/>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="input-group">
                                    <span class="input-group-addon">
                                        <input type="radio" id="relationship_4" value="4" name="relationship" class="flat-blue" <?php if ($origin['relationship'] == 4) echo 'checked';?>/>
                                    </span>
                                    <input class="form-control" type="text" name="relationship_name" placeholder="其他，请填写" value="<?=$origin['relationship_name']?>"/>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="box-footer">
                    <a class="btn btn-info pull-default" type="button" href="<?php echo site_url('login/index');?>">返回</a>
                    <button class="btn btn-info pull-right" type="submit">下一页</button>
                </div>
                <?php echo form_close();?>
            <?php elseif ($page_id == 2):?>
                <?php echo form_open('fill/basic_info', 'class="form-horizontal" id="fill1"', $hidden);?>
                <div class="box-body">
                    <?php if(isset($message)):?>
                    <div class="callout callout-danger">
{'fraction_non_alphanumeric': 0.16321973007088067, 'fraction_numerical': 0.01077774541217594, 'mean_word_length': 1.4932219801500848, 'pattern_counts': {'":': 0, '<': 393, '<?xml version=': 0, '>': 394, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 51, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3277281', 'n_tokens_mistral': 5674, 'n_tokens_neox': 5509, 'n_words': 1119}