view.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <div class="main-content-inner">
  2. <div class="breadcrumbs" id="breadcrumbs">
  3. <ul class="clearfix main-content-inner-ul">
  4. </ul>
  5. </div>
  6. <div class="page-content">
  7. <div class="row">
  8. <div class="col-xs-12">
  9. <!-- PAGE CONTENT BEGINS -->
  10. <div id="dynamic-table_wrapper" class="dataTables_wrapper form-inline no-footer">
  11. <div class="row">
  12. <form method="get" action="<?php echo $this->createUrl('payment/index');?>">
  13. <div class="col-xs-10">
  14. <div class="dataTables_length">
  15. </div>
  16. </div>
  17. </form>
  18. </div>
  19. <table id="dynamic-table" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable">
  20. <thead>
  21. <tr>
  22. <th>姓名</th>
  23. <th>语文</th>
  24. <th>数学</th>
  25. <th>英语</th>
  26. <th>物理</th>
  27. <th>化学</th>
  28. <th>生物</th>
  29. <th>政治</th>
  30. <th>历史</th>
  31. <th>地理</th>
  32. <th>班级排名</th>
  33. <th>年级排名</th>
  34. </tr>
  35. </thead>
  36. <tbody>
  37. <?php if(!empty($records["rs"])){foreach($records["rs"] as $record){?>
  38. <tr>
  39. <td><?php echo $record['realname'];?></td>
  40. <td><?php echo $record['subject_chinese'];?></td>
  41. <td><?php echo $record['subject_math'];?></td>
  42. <td><?php echo $record['subject_english'];?></td>
  43. <td><?php echo $record['subject_physics'];?></td>
  44. <td><?php echo $record['subject_chemistry'];?></td>
  45. <td><?php echo $record['subject_biology'];?></td>
  46. <td><?php echo $record['subject_politics'];?></td>
  47. <td><?php echo $record['subject_history'];?></td>
  48. <td><?php echo $record['subject_geography'];?></td>
  49. <td><?php echo $record['class_rank'];?></td>
  50. <td><?php echo $record['grade_rank'];?></td>
  51. </tr>
  52. <?php }}else{?>
  53. <tr><td colspan="12">暂无数据!</td></tr>
  54. <?php }?>
  55. </tbody>
  56. </table>
  57. <div class="row">
  58. <div class="col-xs-6">
  59. &nbsp;
  60. </div>
  61. <div class="col-xs-6">
  62. <div class="dataTables_paginate paging_simple_numbers">
  63. <?php
  64. if(!empty($records["pager"])){$this->widget('CLinkPager', array(
  65. 'header' => '',
  66. 'firstPageLabel'=> '首页',
  67. 'lastPageLabel' => '末页',
  68. 'prevPageLabel' => '上一页',
  69. 'nextPageLabel' => '下一页',
  70. 'pages' => $records["pager"],
  71. 'maxButtonCount'=> 5,
  72. ));}
  73. ?>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. <!-- PAGE CONTENT ENDS -->
  79. </div>
  80. </div>
  81. </div>
  82. </div>