target.php 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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>
  29. <div class="flex-one flex">
  30. <span><h1>学生目标院校管理</h1></span>
  31. <span id="upload_info" style="margin-left: 20px;line-height: 69px;cursor: pointer;">上传须知:<img src="<?php echo Yii::app()->request->hostInfo.'/images/icon-clock.png';?>"></span>
  32. <span id="upload" style="margin-left: 20px;line-height: 69px;">
  33. <div class="anc-finish-btn i_fl select_file">上传目标院校 </div>
  34. <form id="form1" action="<?php echo $this->createUrl('studenttarget/import')?>" method="post" enctype="multipart/form-data">
  35. <input type="file" name="student_file" id="uploadFile" style="display: none">
  36. </form>
  37. </span>
  38. </div>
  39. </section>
  40. <section>
  41. <div class="x_content">
  42. <div class="row" style="margin:0px;">
  43. <div class="col-xs-12">
  44. <!-- PAGE CONTENT BEGINS -->
  45. <div id="dynamic-table_wrapper" class="dataTables_wrapper form-inline no-footer">
  46. <div class="row">
  47. <div class="dataTables_length margin-zy">
  48. <div class="col-xs-9" style="margin-bottom: 10px;width: 70%">
  49. <input type="text" class="form-control input-sm" placeholder="请输入年级" name="grade_name" value="<?php if(!empty($gradeName)){echo $gradeName;}?>">
  50. <input type="text" class="form-control input-sm" placeholder="请输入班级" name="class_name" value="<?php if(!empty($className)){echo $className;}?>">
  51. <input type="text" class="form-control input-sm" placeholder="请输入姓名" name="student_name" value="<?php if(!empty($studentName)){echo $studentName;}?>">
  52. <button class="label-primary-s bth-s" id="search" style="padding:4px 12px;">搜索</button>
  53. </div>
  54. <table id="datatable" class="table table-striped table-bordered" style="width:60%;margin-left: 30px;">
  55. <thead>
  56. <tr>
  57. <th>年级</th>
  58. <th>班级</th>
  59. <th>姓名</th>
  60. <th>系统准考证号</th>
  61. <th>学生目标院校</th>
  62. </tr>
  63. </thead>
  64. <tbody>
  65. <?php foreach ($dataList as $loop): ?>
  66. <tr>
  67. <td><?php echo $loop['grade_name'] ?></td>
  68. <td><?php echo $loop['class_name'] ?></td>
  69. <td><?php echo $loop['student_name'] ?></td>
  70. <td><?php echo $loop['student_card'] ?></td>
  71. <td><?php echo $loop['target_university'] ?></td>
  72. </tr>
  73. <?php endforeach; ?>
  74. </tbody>
  75. </table>
  76. <div class="dataTables_paginate paging_simple_numbers" id="datatable-checkbox_paginate">
  77. <div class="row" style="padding-top:10px;">
  78. <div class="col-xs-7">
  79. &nbsp;
  80. </div>
  81. <div class="col-xs-5" style="font-size: 16px">
  82. <div class="dataTables_paginate paging_simple_numbers" style="vertical-align:sub;">
  83. <ul id="yw0" class="yiiPager">
  84. <?php
  85. if($page>1){
  86. echo '<li class="previous"><a href="'.$this->createUrl('studentinfo/target').'?page='.($page-1).'&grade_name='.$gradeName.'&class_name='.$className.'&student_name='.$studentName.'">上一页</a></li>';
  87. }
  88. for($i=1;$i<=$pages['totalPage'];$i++){
  89. $url=$this->createUrl('studentinfo/target')."?page=".$i.'&grade_name='.$gradeName.'&class_name='.$className.'&student_name='.$studentName;
  90. if($page==$i){
  91. echo '<li class="page selected"><a href="#">'.$i.'</a></li>';
  92. }else{
  93. echo '<li class="page"><a href="'.$url.'">'.$i.'</a></li>';
  94. }
  95. }
  96. if($page<$pages['totalPage']){
  97. echo '<li class="next"><a href="'.$this->createUrl('studentinfo/target').'?page='.($page+1).'&grade_name='.$gradeName.'&class_name='.$className.'&student_name='.$studentName.'">下一页</a></li>';
  98. }
  99. ?>
  100. </ul>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. </section>
  107. </div>
  108. </div>
  109. <script src="/js/jquery-2.2.2.min.js" ></script>
  110. <script src="/js/layer/layer.js"></script>
  111. <script>
  112. $(document).ready(function() {
  113. $("#upload_info").click(function(){
  114. layer.open({
  115. title: false,
  116. closeBtn: 1,
  117. type: 1,
  118. area: ['1000px', '700px'],
  119. offset: '100px',
  120. content: "<img src='<?php echo Yii::app()->request->hostInfo.'/images/target_tip.jpg';?>'>"
  121. });
  122. })
  123. });
  124. </script>
  125. <script>
  126. $(function(){
  127. $('#uploadFile').val('');
  128. $('.select_file').click(function(){
  129. $('#uploadFile').click();
  130. });
  131. $('#uploadFile').change(function(){
  132. if($('#uploadFile').val()!=''){
  133. $('#form1').submit();
  134. }
  135. });
  136. })
  137. $("#search").click(function(){
  138. var grade_name = $("input[name=grade_name]").val();
  139. var class_name = $("input[name=class_name]").val();
  140. var student_name = $("input[name=student_name]").val();
  141. location.href = "<?php echo $this->createUrl("studentinfo/target?grade_name=");?>"+grade_name+"&class_name="+class_name+"&student_name="+student_name;
  142. });
  143. </script>