<div class=""> <table cellpadding="0" cellspacing="0" class="table_set"> <tr> <th>报名情况</th> <th>报名截止</th> <th>类别</th> <th>培训时间</th> <th>培训地点</th> <th>报名状态</th> </tr> <tr> <td>招<b class="blue"><?php echo $data['trainModel']['recruit_count']; ?> </b>人 | 录取<b class="blue"><?php echo \app\models\TrainUsers::getRecruitCount($data['trainModel']['id']); ?> </b>人 | 结业<b class="blue"><?php echo \app\models\TrainUsers::getPassCount($data['trainModel']['id']); ?> </b>人</td> <td><?php echo date('Y-d-m', strtotime($data['trainModel']['sign_up_begin_time'])); ?> </td> <td><?php echo \app\models\Train::getCategoryName($data['trainModel']['category']); ?> </td> <td><?php echo date('Y-d-m', strtotime($data['trainModel']['begin_time']));
?> </td> <td><?php echo date('Y年m月d日', strtotime($val['begin_time'])); ?> </td> <td><?php echo \app\models\TrainLand::getNameById($val['train_land_id']); ?> </td> <td>招<?php echo $val['recruit_count']; ?> 人 ( <b class="red">已录取 <?php echo \app\models\TrainUsers::getRecruitCount($val['train_id']); ?> 人</b> ) </td> <td> <b class="<?php if ($val['status'] == \app\models\TrainUsers::NO_APPROVED || $val['status'] == \app\models\TrainUsers::SIGN) { ?> red<?php } elseif ($val['status'] == '5') { ?> gray<?php } else { ?> green<?php }