index.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <link type="text/css" rel="stylesheet" href="/css/needDetail.css" />
  2. <div class="main-content-inner">
  3. <ul class="clearfix main-content-inner-ul">
  4. <?php if(Yii::app()->session['coachInfo']['leader']==1){?>
  5. <li class="pull-left">
  6. <button onclick='location.href="<?php echo $this->createUrl("semester/index");?>"' class="button button_normal button_group button_arrow" data-button="red">学期管理</button>
  7. <img src="/images/line.jpg" style="height:45px;" />
  8. </li>
  9. <?php }?>
  10. <li class="pull-left">
  11. <button onclick='location.href="<?php echo $this->createUrl("teacher/index");?>"' class="button button_normal button_group button_arrow" data-button="red">教师管理</button>
  12. <img src="/images/line.jpg" style="height:45px;" />
  13. </li>
  14. <li class="pull-left">
  15. <button onclick='location.href="<?php echo $this->createUrl("classes/index");?>"' class="button button_normal button_group button_arrow" data-button="red">班级管理</button>
  16. <img src="/images/line.jpg" style="height:45px;" />
  17. </li>
  18. <li class="pull-left">
  19. <button onclick='location.href="<?php echo $this->createUrl("studentinfo/index");?>"' class="button button_normal button_group button_arrow button_active" data-button="red">学生管理</button>
  20. <img src="/images/line.jpg" style="height:45px;" />
  21. </li>
  22. <li class="pull-left">
  23. <button onclick='location.href="<?php echo $this->createUrl("classes/export");?>"' class="button button_normal button_group button_arrow " data-button="red">导出学生</button>
  24. <img src="/images/line.jpg" style="height:45px;" />
  25. </li>
  26. </ul>
  27. <div class="layout-gap">
  28. <section class="anc-top flex status_1 <?php if(isset($is_last) && $is_last==1) echo 'hide'?>">
  29. <div class="flex-one flex">
  30. <p class="anc-title">导入学生</p>
  31. </div>
  32. <div class="anc-opt-btn green-font pointer reback" ><a href="<?php echo $this->createUrl('studentinfo/index');?>">返回</a></div>
  33. </section>
  34. <section class="anc-finish-opt gray-border-top" >
  35. <div class="anc-finish-btn i_fl select_file" >上传excel</div>
  36. <div class="i_fl"><a href="<?php echo $this->createUrl('importstudent/template')?>">自定义设置模板</a></div>
  37. <form id="form1" action="<?php echo $this->createUrl('importstudent/import')?>" method="post" enctype="multipart/form-data">
  38. <input type="file" name="student_file" id="uploadFile" style="display: none">
  39. </form>
  40. </section>
  41. </div>
  42. </div>
  43. <script>
  44. $(function(){
  45. $('#uploadFile').val('');
  46. $('.select_file').click(function(){
  47. $('#uploadFile').click();
  48. });
  49. $('#uploadFile').change(function(){
  50. if($('#uploadFile').val()!=''){
  51. $('#form1').submit();
  52. }
  53. });
  54. })
  55. </script>