123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- <link type="text/css" rel="stylesheet" href="/css/needDetail.css" />
- <style>
- html {overflow-y: scroll;}
- </style>
- <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/checkClassified')?>';">返回</div>
- </section>
- <section class="flex hrn-main-con">
- <article class="flex-one handle-detail-con">
- <div class="handle-detail-top flex">
- <span class="red-font">处理办法:输入学生的系统准考证号后重新匹配</span>
- </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>
- <tr>
- <?php
- if($student){
- foreach ($student as $key => $val){
- echo '<tr>';
- echo '<td>'.$val['class_name'].'</td>';
- echo '<td>'.$val['modify_name'].'</td>';
- echo '<td><input type="text" id="'.$val['id'].'" class="student_card" data="'.$val['student_card'].'" style="width:100%" maxlength="10" value="'.$val['student_card'].'"></td>';
- 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() {
- //修改姓名
- $('.handle-detail-main-excel')
- .on('change','.student_card',function(){
- var new_name=$(this).val();
- var data=$(this).attr('data');
- var obj=$(this);
- var id=$(this).attr('id');
- changeValue(new_name,data,obj,id);
- })
- function changeValue(value,data,obj,id){
- if(value=='' || value==undefined){
- return false;
- }
- indexSend=layer.msg('正在修改,请稍候......',{time:0});
- $.ajax({
- url:'<?php echo $this->createUrl('importstudent/changeClassifiedStudentCard')?>',
- type:'POST',
- dataType:'json',
- data:{'id':id,'value':value},
- success:function(res){
- layer.close(indexSend);
- if(res.status==1){
- layer.msg('修改成功');
- obj.attr('data',value);
- //obj.closest('tr').remove();
- }else{
- obj.val(data);
- if(res.msg!=undefined){
- layer.msg(res.msg);
- }else{
- layer.msg('修改失败');
- }
- }
- }
- });
- }
- //弹窗
- $('.handle-detail-main-excel').on('click','.viewClassStudent',function () {
- var class_name=$(this).attr('title');
- $.ajax({
- url:'<?php echo $this->createUrl('importstudent/loadstudentbyclassname')?>',
- type:'POST',
- dataType:'json',
- data:{'classname':class_name},
- success:function(res){
- if(res.status==1){
- $('.studentList').html(res.html);
- $('.history-pop').show();
- }else{
- }
- }
- });
- })
- $('.npt-close').click(function(){
- $('.history-pop,.countermark-pop,.relate-sure-pop').hide();
- })
- $('.save_student_id').click(function(){
- window.location.href="<?php echo $this->createUrl('importstudent/checkClassified')?>";
- });
- })
- </script>
|