<?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="80px" class="Sort"><span>编码</span></th>
				<th width="170px" class="Sort"><span>品牌</span></th>
				<th width="50px" class="Sort" Sort="float"><span>开始</span></th>
				<th width="50px" class="Sort" Sort="float"><span>截止</span></th>
				<th width="50px" class="Sort"><span>状态</span></th>
				<th width="80px" class="Sort"><span>VIN8样例</span></th>
				<th width="70px"  class="Sort"><span>匹配长度</span></th>
				<th width="70px" class="Sort" sort="float" title="2小时缓存"><span>最近1天</span></th>
				<th class="Sort"><span>WMI</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: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:60px"></td>
				<td><input type="text" class="FilterTxt form-control" style="width:60px"></td>
				<td><input type="text" class="FilterTxt form-control" style="width:30px"></td>
			</tr>
		</thead>
		<tbody>
			<?php foreach($regArr as $v){?>
			<tr>
				<td><?php echo $v['reg_code'];?></td>
				<td><?php echo $v['reg_remark'];?></td>
				<td><?php echo $v['reg_min_year'];?></td>
				<td><?php echo $v['reg_max_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_demo'];?></td>
				<td><?php echo $v['reg_gxbmatchlen'];?></td>
				<td><?php echo $v['count'];?></td>
				<td>
					<?php foreach($v['wmis'] as $wmi){?>
					<a target="_blank" class="a_blue" href="<?php echo mvc::$cfg['ADMIN_URI'];?>ypcCar/standModelAny?sma_vin=<?php echo $wmi;?>%&sma_from=ocr"><?php echo $wmi; ?></a> 
					<?php }?>
				</td>
			</tr>
			<?php }?>
		</tbody>
	</table>
</div>
<?php include_once(mvc::$cfg['PATH_TPL'].'public/footBase.php');?>