<?php include_once(mvc::$cfg['PATH_TPL'].'public/headBase.php');?>
<div class="marauto pad10">
	<div class="mod-vinimg-box">
		<div class="vin-imgs">
			<div id="pics" style="display:none">
			<?php if(!empty($regArr['vinimgs'])){?>
				<?php foreach($regArr['vinimgs'] as $v){?>
				<img src="<?php echo $v['vii_img'];?>">
				<?php }?>
			<?php }else{?>
				<img src="<?php echo mvc::$cfg['ADMIN_URL'];?>static/images/noimg.png">
			<?php }?>
			</div>
		</div>
	</div>
	<div class="floatl" id="vin-data-box" style="overflow: auto;">
		<form method="post" id="add_form">
			<input type="hidden" name="smr_id" value="<?php echo $regArr['smr_id'];?>">
			<table class="table table-bordered" id="vin-c" style="width:auto">
				<tbody>
					<tr>
						<th width="65" class="right i">VIN规则</th>
						<td width="300" class="i">
							<a href="<?php echo mvc::$cfg['ADMIN_URI'];?>ypcCar/standModelAny?sma_vin=<?php echo $regArr['smr_vin1_8'].'_'.$regArr['smr_vin10_12'].'%';?>&sma_gxb_code=<?php echo $regArr['smr_gxb_code'];?>" target="_blank" class="a_blue"><?php echo $regArr['smr_vin1_8'];?>_<?php echo $regArr['smr_vin10_12'];?></a>
							&nbsp;&nbsp;&nbsp;
							<a href="<?php echo mvc::$cfg['ADMIN_URI'];?>pjlShop/collVinImgs?vin=<?php echo $regArr['smr_vin1_8'].'_'.$regArr['smr_vin10_12'].'%';?>&ignore=-1&status=1" target="_blank" class="a_blue">识别图</a>
						</td>
					</tr>
					<tr>
						<th class="right i">工信部型号</th>
						<td class="i"><?php echo $regArr['smr_gxb_code'];?></td>
					</tr>
					<tr>
						<th class="right i">符合VIN数</th>
						<td class="i"><?php echo $regArr['vin_count'];?></td>
					</tr>
					<tr>
						<th class="right i">样本VIN</th>
						<td class="i">
						<?php foreach($regArr['vin'] as $vin=>$v){?>
							<div><?php echo substr($vin, 0, 8).' '.substr($vin, 8, 1).' '.substr($vin, 9, 3).' '.substr($vin, 12, 5);?> <span class="orange">【<?php echo $v['sma_year'];?>】</span></div>
						<?php }?>
						</td>
					</tr>
					<tr>
						<th class="right i">品牌</th>
						<td class="i <?php if(count($regArr['merge']['sma_brand']) > 1) echo ' red';?>"><?php echo implode('<br>', $regArr['merge']['sma_brand']);?></td>
					</tr>
					<tr>
						<th class="right i">发动机</th>
						<td class="i <?php if(count($regArr['merge']['sma_engine']) > 1) echo ' red';?>"><?php echo implode('<br>', $regArr['merge']['sma_engine']);?></td>
					</tr>
					<tr>
						<th class="right i">功率</th>
						<td class="i <?php if(count($regArr['merge']['sma_kw']) > 1) echo ' red';?>"><?php echo implode('<br>', $regArr['merge']['sma_kw']);?></td>
					</tr>
					<tr>
						<th class="right i">排量</th>
						<td class="i <?php if(count($regArr['merge']['sma_cc']) > 1) echo ' red';?>"><?php echo implode('<br>', $regArr['merge']['sma_cc']);?></td>
					</tr>
					<tr>
						<th class="right i">长度</th>
						<td class="i <?php if(count($regArr['merge']['sma_length']) > 1) echo ' red';?>"><?php echo implode('<br>', $regArr['merge']['sma_length']);?></td>
					</tr>
					<tr>
						<th class="right i">宽度</th>
						<td class="i <?php if(count($regArr['merge']['sma_width']) > 1) echo ' red';?>"><?php echo implode('<br>', $regArr['merge']['sma_width']);?></td>
					</tr>
					<tr>
						<th class="right i">高度</th>
						<td class="i <?php if(count($regArr['merge']['sma_height']) > 1) echo ' red';?>"><?php echo implode('<br>', $regArr['merge']['sma_height']);?></td>
					</tr>
					<tr>
						<th class="right i">轴数</th>
						<td class="i <?php if(count($regArr['merge']['sma_axle']) > 1) echo ' red';?>"><?php echo implode('<br>', $regArr['merge']['sma_axle']);?></td>
					</tr>
					<tr>
						<th class="right i">整备质量</th>
						<td class="i <?php if(count($regArr['merge']['sma_weight']) > 1) echo ' red';?>"><?php echo implode('<br>', $regArr['merge']['sma_weight']);?></td>
					</tr>
					<tr>
						<th class="right i">车辆类型</th>
						<td class="i <?php if(count($regArr['merge']['sma_vtype']) > 1) echo ' red';?>"><?php echo implode('<br>', $regArr['merge']['sma_vtype']);?></td>
					</tr>
					<tr>
						<th class="right i">载客</th>
						<td class="i <?php if(count($regArr['merge']['sma_passenger']) > 1) echo ' red';?>"><?php echo implode('<br>', $regArr['merge']['sma_passenger']);?></td>
					</tr>
					<tr>
						<th class="right i">生产日期</th>
						<td class="i <?php if(count($regArr['merge']['sma_year']) > 1) echo ' red';?>"><?php echo implode('<br>', $regArr['merge']['sma_year']);?></td>
					</tr>
				</tbody>
				<tfoot>
					<tr>
						<td class="i" colspan="2">
							<div class="mar5">添加人：<b><?php echo $regArr['smr_add_user'];?></b>  <?php echo date('Y-m-d', $regArr['smr_add_time']);?> </div>
							<div class="mar5"><b class="red"><?php echo $statusArr[$regArr['smr_status']];?></b></div>
							<?php if(!empty($regArr['smr_check_user'])){?>
							<div class="mar5">审核人：<b><?php echo $regArr['smr_check_user'];?></b>  <?php echo date('Y-m-d', $regArr['smr_check_time']);?> </div>
							<?php }?>
						</td>
					</tr>
				</tfoot>
			</table>
			<div class="add_app_foot">
				<button type="submit" class="btn su_btn btn-success" name="smr_status" value="1">【有效】跳下一个</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<button type="submit" class="btn btn-danger su_btn" name="smr_status" value="-2">【删除】跳下一个</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<button type="submit" class="btn btn-info su_btn" name="smr_status" value="-1">【无效】跳下一个</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<?php if(!empty($lasetParams['smr_id'])){?>
				<a class="btn btn-default" href="<?php echo mvc::$cfg['ADMIN_URI'].'ypcCar/checkVinReg?'.http_build_query($lasetParams);?>">前一个</a>
				<?php }?>
			</div>
		</form>
		<br>
	</div>
</div>
<?php include_once(mvc::$cfg['PATH_TPL'].'public/footBase.php');?>
<script type="text/javascript">
var uriParam = <?php echo json_encode($Params);?>;
$(document).ready(function(){
	var viewer = new Viewer(document.getElementById('pics'), {
		title:0,
		toolbar: {
			zoomIn:1,
			zoomOut: 1,
			oneToOne: 1,
			prev: $('#pics img').length > 1 ? 1: 0,
			next: $('#pics img').length > 1 ? 1: 0,
			reset: 4,
			rotateLeft: 4,
			rotateRight: 4
		},
		inline:true,
		backdrop:false,
		button:false,
		navbar:  true
	});
	viewer.show();
});

</script>