123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- <link type="text/css" rel="stylesheet" href="/css/needDetail.css" />
- <style>
- html {overflow-y: scroll;}
- .tab-box{
- max-height: 300px;
- overflow: scroll;
- background: #fff;
- }
- .tab-box td{padding: 10px 0;width: 100px;padding: 12px 0;word-break: break-all;
- min-width: 0;}
- .tab-box table{table-layout: fixed;
- border-collapse: separate;width: 100.1%;}
- .tab-box::-webkit-scrollbar{
- width: 4px;
- height: 14px;
- background-color: #F5F5F5;
- }
- .tab-box::-webkit-scrollbar-thumb{
- border-radius: 10px;
- background-color: #FFF;
- background-image: -webkit-gradient(linear,
- 40% 0%,
- 75% 84%,
- from(#C1D9F3),
- to(#D0E7F3),
- color-stop(.6,#D0E7F3))
- }
- </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="javascript:history.go(-1);">返回</div>
- </section>
- <section class="flex hrn-main-con">
- <article class="flex-one handle-detail-con">
- <div class="handle-detail-top flex">
- <span>处理办法:请修改班级名称与系统中一致,修改完成后点击检查;或去班级管理中创建该班级后重新上传。</span>
- <div class="check-btn pointer save_student_id" data="">检查</div>
- </div>
- <div class="handle-detail-main-excel">
- <table class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable">
- <tr>
- <td width="50%">班级名称(excel文件中)</td>
- <td>学生</td>
- <tr>
- <?php
- if($className){
- foreach ($className as $key => $val){
- echo '<tr>';
- echo '<td><input type="text" class="class_name" data="'.$key.'" style="width:100%" maxlength="10" value="'.$key.'"></td>';
- echo '<td><a href="#" title="'.$key.'" class="viewClassStudent">'.count($val).'</a></td>';
- echo '</tr>';
- }
- }
- ?>
- </table>
- </div>
- </article>
- </section>
- </div>
- </div>
- <div class="history-pop">
- <div class="history-pop-con">
- <div class="need-pop-top clearfix">
- <div class="npt-title put-need fl">学生名单</div>
- <div class="npt-close fr">×</div>
- </div>
- <div class="tab-box">
- <table class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable studentList">
- </table>
- </div>
- </div>
- </div>
- <script>
- $(function() {
- //修改姓名
- $('.handle-detail-main-excel')
- .on('change','.class_name',function(){
- var new_name=$(this).val();
- var data=$(this).attr('data');
- var obj=$(this);
- changeValue(new_name,data,obj);
- })
- function changeValue(value,data,obj){
- if(value=='' || value==undefined){
- return false;
- }
- indexSend=layer.msg('正在修改,请稍候......',{time:0});
- $.ajax({
- url:'<?php echo $this->createUrl('importstudent/change_classified_value')?>',
- type:'POST',
- dataType:'json',
- data:{'data':data,'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/loadStudentByClassified')?>',
- 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>
|