123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <script src="/js/xsgl.js"></script>
- <div class="main-content-inner">
- <ul class="clearfix main-content-inner-ul">
- <?php if(Yii::app()->session['coachInfo']['leader']==1){?>
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("order/index");?>?type=ordinary"' class="button button_normal button_group button_arrow" data-button="red">普通订单</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li>
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("order/index");?>?type=test"' class="button button_normal button_group button_arrow" data-button="red">试用订单</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li>
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("order/index");?>?type=all"' class="button button_normal button_group button_arrow" data-button="red">统订订单</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li>
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("order/student");?>"' class="button button_normal button_group button_arrow button_active" data-button="red">使用学生名单</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li>
- <?php }?>
- </ul>
- <div class="page-content">
- <form method="post" action="<?php echo $this->createUrl("order/student");?>">
- <div class="col-xs-9">
- <div class="dataTables_length margin-zy">
- <input type="text" class="form-control input-sm" placeholder="请输入学生姓名" name="realname" value="<?php echo $realname ?>" style="width:105px;display: inline-block;">
- <button class="label-primary-s bth-s" id="search" style="padding:4px 12px;">搜索</button>
- </div>
- </div>
- </form>
- <div class="row" style="margin:0px;">
- <div class="col-xs-12">
-
- <table id="dynamic-table" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable">
- <thead>
- <tr>
- <!--<th>ID</th>-->
- <th style="width: 130px;">姓名</th>
- <th style="width: 130px;">准考证号</th>
- <?php
- $typeid=array();
- foreach($goodtype as $v){
- $typeid[]=$v->id;
- ?>
- <th style="width: 130px;"><?php echo $v->goods_type_name ?></th>
- <th style="width: 130px;">起止时间</th>
- <?php } ?>
- </tr>
- </thead>
- <tbody>
- <?php foreach($stu_order as $v){
- $goods_type_info=array();
- $type_id= explode(",",$v['type_id']);
- $trial_begin_time= explode(",",$v['trial_begin_time']);
- $trial_end_time= explode(",",$v['trial_end_time']);
- $semcode= explode(",",$v['code']);
- foreach($type_id as $k=>$tv){
- if(isset($trial_end_time[$k])&&!empty($trial_end_time[$k])){
- $begintime= explode (" ", $trial_begin_time[$k]);
- $endtime= explode (" ", $trial_end_time[$k]);
- $goods_type_info[$tv]=$begintime[0]."至".$endtime[0];
- }else {
- if(isset($semtime[$semcode[$k]])){
- $begintime= explode (" ", $semtime[$semcode[$k]]['start_time']);
- $endtime= explode (" ", $semtime[$semcode[$k]]['end_time']);
- $goods_type_info[$tv]=$begintime[0]."至".$endtime[0];
- }
- }
- }
- ?>
- <tr>
- <td><?php echo $v['student_name']?></td>
- <td><?php echo isset($v['student_card'])?$v['student_card']:"";?></td>
- <?php foreach($typeid as $tv){
- if(isset($goods_type_info[$tv])){
- echo '<td><span class="label label-sm label-success">已开通</span></td>';
- echo '<td>'.$goods_type_info[$tv].'</td>';
- }else{
- echo '<td><span class="label label-sm label-warning">未开通</span></td>';
- echo '<td>-</td>';
- }
- } ?>
- </tr>
- <?php } ?>
- </tbody>
- </table>
-
- <div class="col-xs-5" style="width: 90%">
- <div class="dataTables_paginate paging_simple_numbers">
- <ul id="yw0" class="yiiPager">
- <li class="previous <?php if($page==1||$totalpage==0){ echo "hidden";} ?>"><a href="<?php echo $this->createUrl("order/student",array("page"=>$page-1,"realname"=>$realname));?>">上一页</a></li>
- <?php
- $i=1;
- if($page>=5){
- $i=$page-4;
- }
- $end=$totalpage;
- if($totalpage-$page>=5){
- $end=$page+5;
- }
-
- for($i;$i<=$end;$i++){ ?>
- <li class="page <?php if($page==$i){ echo "selected";} ?>"><a href="<?php echo $this->createUrl("order/student",array("page"=>$i,"realname"=>$realname));?>"><?php echo $i ?></a></li>
- <?php } ?>
- <li class="next <?php if($page==$totalpage||$totalpage==0){ echo "hidden";} ?>"><a href="<?php echo $this->createUrl("order/student",array("page"=>$page+1,"realname"=>$realname));?>">下一页</a></li>
- </ul>共:<?php echo $count ?>条
- </div>
- </div>
- </div>
- <!-- PAGE CONTENT ENDS -->
- </div>
- </div>
- </div>
|