123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- <link type="text/css" rel="stylesheet" href="/css/needDetail.css" />
- <style>
- html {overflow-y: scroll;}
- </style>
- <script>
- function getClassByGrade(gradeId,$classId){
- $.ajax({
- type:'post',
- url:'<?php echo $this->createUrl("cylet/getclassbygrade");?>',
- async: true,
- dataType: 'json',
- data:{'grade':gradeId},
- success: function (result) {
- if(result.status==1){
- $('#class').html('<option value="0">全部班级</option>');
- for(var i=0;i<result.data.length;i++){
- if($.trim($classId)==$.trim(result.data[i]['class_id'])){
- html='<option value="'+result.data[i]['class_id']+'" selected>'+result.data[i]['class_name']+'</option>';
- }else{
- html='<option value="'+result.data[i]['class_id']+'" >'+result.data[i]['class_name']+'</option>';
- }
- $('#class').append(html);
- }
- }
- },
- error: function () {
- return;
- }
- });
- }
- </script>
- <?php
- $gradeSelect=array(
- 0=>'',
- 1=>'',
- 2=>'',
- 3=>''
- );
- if(isset($grade) && $grade){
- $gradeSelect[$grade]='selected';
- if(isset($class_id) && $class_id){
- $class=(string)$class_id;
- echo "<script>getClassByGrade(".$grade.",'".$class."');</script>";
- }else{
- echo "<script>getClassByGrade(".$grade.",0);</script>";
- }
- }
- ?>
- <div class="main-content-inner">
- <!-- 导航栏开始-->
- <ul class="clearfix main-content-inner-ul">
- <?php if(Yii::app()->session['coachInfo']['leader']==1){?>
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("semester/index");?>"' class="button button_normal button_group button_arrow" data-button="red">学期管理</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li>
- <?php }?>
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("teacher/index");?>"' class="button button_normal button_group button_arrow" data-button="red">教师管理</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li>
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("classes/index");?>"' class="button button_normal button_group button_arrow" data-button="red">班级管理</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li>
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("studentinfo/index");?>"' class="button button_normal button_group button_arrow button_active" data-button="red">学生管理</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li>
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("classes/export");?>"' class="button button_normal button_group button_arrow " data-button="red">导出学生</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li>
- </ul>
- <!-- 导航栏结束-->
- <div class="layout-gap">
- <section class="hrn-top flex">
- <div class="flex-one hrn-top-title fw">学生信息正常</div>
- <div class="green-font pointer" onclick="window.location.href='<?php echo $this->createUrl('importstudent/check')?>';">返回</div>
- </section>
- <section class="flex hrn-main-con">
- <article class="flex-one handle-detail-con">
- <div class="handle-detail-top flex">
- <form action="" method="get" name="form1" id="form1">
- <select name="grade" id="grade">
- <option value="0">年级</option>
- <option value="1" <?php echo $gradeSelect[1] ?>>高一</option>
- <option value="2" <?php echo $gradeSelect[2]?>>高二</option>
- <option value="3" <?php echo $gradeSelect[3]?>>高三</option>
- </select>
- <select name="classId" id="class">
- <option value="0">全部班级</option>
- </select>
- <input name="realname" value="" type="text">
- <div class="check-btn pointer search" style="display:inline-block" data="">搜索</div>
- <div class="check-btn pointer save_result" style="display:inline-block" data="">导入系统</div>
- <span class="red-font">建议先处理完异常后一起导入</span>
- </form>
- </div>
- <div class="handle-detail-main-excel">
- <table class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable">
- <tr>
- <td>班级</td>
- <td>姓名</td>
- <td>性别</td>
- <td>身份证号</td>
- <td>系统准考证号</td>
- <?php echo $extTh;?>
- <tr>
- <?php
- if($list){
- $sex[1]='男';
- $sex[2]='女';
- foreach ($list as $key => $val){
- echo '<tr>';
- echo '<td>'.$val['class_name'].'</td>';
- echo '<td>'.$val['modify_name'].'</td>';
- echo '<td>'.$sex[$val['sex']].'</td>';
- if($val['id_number']){
- echo '<td>'.$val['id_number'].'</td>';
- }else{
- echo '<td></td>';
- }
- if($val['student_card']){
- echo '<td>'.$val['student_card'].'</td>';
- }else{
- echo '<td></td>';
- }
- echo $val['ext'];
- echo '</tr>';
- }
- }
- ?>
- </table>
- <?php if(!empty($page_total)):?>
- <div class="row">
- <div class="col-xs-6">
-
- </div>
- <div class="col-xs-6">
- <div class="dataTables_paginate paging_simple_numbers">
- <?php
- $this->widget('CLinkPager', array(
- 'header' => '',
- 'firstPageLabel'=> '首页',
- 'lastPageLabel' => '末页',
- 'prevPageLabel' => '上一页',
- 'nextPageLabel' => '下一页',
- 'pages' => $pages,
- 'maxButtonCount'=> 5,
- ));
- echo '共:'.$page_total.'条';
- ?>
- </div>
- </div>
- </div>
- <?php endif;?>
- </div>
- </article>
- </section>
- </div>
- </div>
- <script>
- $(function(){
- var isImport=false;
- $('select[name="grade"]').change(function(){
- var grade=$(this).val();
- getClassByGrade(grade,0);
- });
- $('.search').click(function(){
- $('#form1').submit();
- });
- $('.save_result').click(function(){
- if(!isImport){
- var layer_index=layer.msg('正在导入中,请稍候。。。',{time:0});
- isImport=true;
- $.ajax({
- url:'<?php echo $this->createUrl('importstudent/confirm_import')?>',
- type:'POST',
- dataType:'json',
- success:function(res){
- layer.close(layer_index);
- if(res.status==1){
- layer.msg('导入成功',function(){
- window.location.href="<?php echo $this->createUrl('importstudent/index')?>";
- })
- }else{
- if(res.msg!=undefined){
- layer.msg(res.msg);
- }else{
- layer.msg('导入失败');
- }
- }
- isImport=false;
- }
- });
- }
- });
- })
- </script>
|