12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <link rel="stylesheet" href="/css/cylet.css" />
- <style>
- .helper{display:none}
- </style>
- <div class="list">
- <table cellspacing="0" cellpadding="0" >
- <thead>
- <tr>
- <th >序号</th>
- <th >考号</th>
- <th >学生姓名</th>
- </tr>
- </thead>
- <tbody>
- <?php
- if(isset($list) && !empty($list)):
- $i=($page-1)*$pageSize;
- foreach ($list as $val):
- $i++;
- ?>
- <tr id="<?php echo $val['student_id']; ?>">
- <td><?php echo $i;?></td>
- <td class="tl"><?php echo $val['student_card']?></td>
- <td><?php echo $val['realname']?></td>
-
-
- </tr>
- <?php endforeach;endif;?>
- <tr>
- <td colspan="9" class="page">
- <?php
- if(isset($pageTotal) && $pageTotal>1){
- $StartPage=$page-5;
- $EndPage=$page+5;
- if($StartPage<1){
- $StartPage=1;
- }
- if($EndPage>$pageTotal){
- $EndPage=$pageTotal;
- }
- ?>
- <div class="row" style="padding-top:10px;">
- <div style="font-size: 16px;display: block;width:100%;margin:0 auto;">
- <div class="dataTables_paginate paging_simple_numbers" style="vertical-align:sub;">
- <ul id="yw0" class="yiiPager">
- <?php
- if($page>1){
- echo '<li class="previous"><a href="'.$this->createUrl('third/notUploadedStudent').'?page='.($page-1).'&examgroupid='.$examgroupid.'">上一页</a></li>';
- }
- // for($i=$StartPage;$i<=$EndPage;$i++){
- // $url=$this->createUrl('third/notUploadedStudent')."?page=".$i."&examgroupid=".$examgroupid;
- // if($page==$i){
- // echo '<li class="page selected"><a href="#">'.$i.'</a></li>';
- // }else{
- // echo '<li class="page"><a href="'.$url.'">'.$i.'</a></li>';
- // }
- // }
- if($page<$pageTotal){
- echo '<li class="next"><a href="'.$this->createUrl('third/notUploadedStudent').'?page='.($page+1).'&examgroupid='.$examgroupid.'">下一页</a></li>';
- }
- 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>';
- }
- ?>
- </ul>
- </div>
- </div>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
|