<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table"> <tr> <td width="50" align="center" class="bg_tr" nowrap>序号</td> <td width="80" align="center" class="bg_tr" nowrap>预约日期</td> <td width="80" align="center" class="bg_tr" nowrap>预约时间</td> <td width="80" align="center" class="bg_tr" nowrap>预约类型</td> <td width="60%" align="center" class="bg_tr" nowrap>预约备注</td> <td width="50" align="center" class="bg_tr" nowrap>业务员</td> <td width="80" align="center" class="bg_tr" nowrap>业务分组</td> <td width="80" align="center" class="bg_tr" nowrap>操作时间</td> </tr> <?php foreach($items as $index => $item) { $start_index = ($page-1) * 20 + $index; $car_info = $item->car; ?> <tr> <td align="center" class="td_bg"nowrap ><?=$start_index+1?></td> <td align="center" class="td_bg" nowrap><?=$item->pdate?></td> <td align="center" class="td_bg" nowrap><?=$item->ptime?></td> <td align="center" class="td_bg ptyp" data="<?= $item->ptype; ?>" nowrap><?=$item->meet?$item->meet->getShowName():'(之前未选择)'?></td> <td class="td_bg" ><?=$item->remark?></td> <td class="td_bg" nowrap><?=$item->user?$item->user->getShowName():''?></td> <td class="td_bg" nowrap><?=$item->businessGroup ? $item->businessGroup->name : ''?></td> <td align="center" class="td_bg" nowrap><?=$item->updated_at?></td> </tr> <?php } ?> <tr> <td height="25" colspan="11" align="center" class="td_bg"><?=$page_info?></td> </tr> </table>