<?php include_once(mvc::$cfg['PATH_TPL'].'public/headBase.php');?>
<div class="marauto marlists">
	<table class="table table-bordered YpTable">
		<thead class="Filter Sortable">
			<tr>
				<th width="140px" class="Sort"><span>编码</span></th>
				<th width="180px" class="Sort"><span>品牌</span></th>
				<th width="180px" class="Sort"><span>WMI</span></th>
				<th width="60px" class="Sort" Sort="float"><span>年份</span></th>
				<th width="50px" class="Sort"><span>状态</span></th>
				<th width="60px" class="Sort" Sort="float"><span>剩余</span></th>
				<th width="155px" class="Sort"><span>样例</span></th>
				<th width="80px"  class="Sort"><span>检测时间</span></th>
				<th width="140px" class="Sort"><span>检测结果</span></th>
				<th width="80px" class="Sort"><span>计时间</span></th>
				<th class="Sort"><span>计V10</span></th>
			</tr>
			<tr>
				<td><input type="text" class="FilterTxt form-control" style="width:50px"></td>
				<td><input type="text" class="FilterTxt form-control" style="width:120px"></td>
				<td><input type="text" class="FilterTxt form-control" style="width:80px"></td>
				<td><input type="text" class="FilterTxt form-control" style="width:40px"></td>
				<td><input type="text" class="FilterTxt form-control" style="width:40px"></td>
				<td><input type="text" class="FilterTxt form-control" style="width:40px"></td>
				<td><input type="text" class="FilterTxt form-control" style="width:140px"></td>
				<td><input type="text" class="FilterTxt form-control" style="width:60px"></td>
				<td><input type="text" class="FilterTxt form-control" style="width:100px"></td>
				<td><input type="text" class="FilterTxt form-control" style="width:60px"></td>
				<td><input type="text" class="FilterTxt form-control" style="width:100px"></td>
			</tr>
		</thead>
		<tbody>
			<?php foreach($regArr as $v){?>
			<tr>
				<td><?php echo $v['reg_code'];?></td>
				<td>
					<?php if(!empty($v['reg_url'])){?>
					<a href="<?php echo $v['reg_url'];?>" target="_blank" class="a_blue"><?php echo $v['reg_remark'];?></a>
					<?php }else{?>
					<?php echo $v['reg_remark'];?>
					<?php }?>
				</td>
				<td><?php echo $v['reg_wmi'];?></td>
				<td><?php echo $v['reg_min_year'];?></td>
				<td class="<?php if($v['reg_status'] == 1) echo 'green'; else if($v['reg_status'] == 0) echo 'red'; else if($v['reg_status'] == -1) echo 'gray';?>"><?php echo $statusArr[$v['reg_status']];?></td>
				<td><?php echo $v['reg_waitcount'];?></td>
				<td><?php echo $v['reg_vin_demo'];?></td>
				<td><?php echo date('m-d H:i', strtotime($v['reg_check_res']['time']));?></td>
				<td><?php echo $v['reg_check_res']['sma']['sma_gxb_code_show'];?></td>
				<td><?php if(!empty($v['reg_jsvin_res']['time'])) echo date('m-d H:i', strtotime($v['reg_jsvin_res']['time']));?></td>
				<td>
					<?php if(empty($v['reg_jsvin_res']['all'][0])){?>
						<?php foreach($v['reg_jsvin_res']['all'] as $v10=>$time){?>
						<span style="margin-right:5px;"><?php echo $v10.':'.date('md', strtotime($time));?></span>
						<?php }?>
					<?php }else{ echo  implode(',', $v['reg_jsvin_res']['all']);}?>
				</td>
			</tr>
			<?php }?>
		</tbody>
	</table>
</div>
<?php include_once(mvc::$cfg['PATH_TPL'].'public/footBase.php');?>