not_upload.php 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <link rel="stylesheet" href="/css/cylet.css" />
  2. <style>
  3. .helper{display:none}
  4. </style>
  5. <div class="list">
  6. <table cellspacing="0" cellpadding="0" >
  7. <thead>
  8. <tr>
  9. <th >序号</th>
  10. <th >考号</th>
  11. <th >学生姓名</th>
  12. </tr>
  13. </thead>
  14. <tbody>
  15. <?php
  16. if(isset($list) && !empty($list)):
  17. $i=($page-1)*$pageSize;
  18. foreach ($list as $val):
  19. $i++;
  20. ?>
  21. <tr id="<?php echo $val['student_id']; ?>">
  22. <td><?php echo $i;?></td>
  23. <td class="tl"><?php echo $val['student_card']?></td>
  24. <td><?php echo $val['realname']?></td>
  25. </tr>
  26. <?php endforeach;endif;?>
  27. <tr>
  28. <td colspan="9" class="page">
  29. <?php
  30. if(isset($pageTotal) && $pageTotal>1){
  31. $StartPage=$page-5;
  32. $EndPage=$page+5;
  33. if($StartPage<1){
  34. $StartPage=1;
  35. }
  36. if($EndPage>$pageTotal){
  37. $EndPage=$pageTotal;
  38. }
  39. ?>
  40. <div class="row" style="padding-top:10px;">
  41. <div style="font-size: 16px;display: block;width:100%;margin:0 auto;">
  42. <div class="dataTables_paginate paging_simple_numbers" style="vertical-align:sub;">
  43. <ul id="yw0" class="yiiPager">
  44. <?php
  45. if($page>1){
  46. echo '<li class="previous"><a href="'.$this->createUrl('third/notUploadedStudent').'?page='.($page-1).'&examgroupid='.$examgroupid.'">上一页</a></li>';
  47. }
  48. // for($i=$StartPage;$i<=$EndPage;$i++){
  49. // $url=$this->createUrl('third/notUploadedStudent')."?page=".$i."&examgroupid=".$examgroupid;
  50. // if($page==$i){
  51. // echo '<li class="page selected"><a href="#">'.$i.'</a></li>';
  52. // }else{
  53. // echo '<li class="page"><a href="'.$url.'">'.$i.'</a></li>';
  54. // }
  55. // }
  56. if($page<$pageTotal){
  57. echo '<li class="next"><a href="'.$this->createUrl('third/notUploadedStudent').'?page='.($page+1).'&examgroupid='.$examgroupid.'">下一页</a></li>';
  58. }
  59. echo '<li class="next" style="float: right;margin-right:20px;width:100px"><a href="'.$this->createUrl('third/downloadStudent').'?page='.($page+1).'&examgroupid='.$examgroupid.'">下载</a></li>';
  60. }
  61. ?>
  62. </ul>
  63. </div>
  64. </div>
  65. </div>
  66. </td>
  67. </tr>
  68. </tbody>
  69. </table>
  70. </div>