<?php include_once(mvc::$cfg['PATH_TPL'].'public/headBase.php');?>
<div class="marauto open-shop-apply" style="margin-left:5px;padding-top: 10px;">
	<div class="searchParam">
		<form method="get">
			<b>VIN：</b><textarea name="sgs_vin" class="form-control textrow input-any-row" rows="1" cols="25" placeholder="多个用;分割或者换行"><?php echo $Params['sgs_vin'];?></textarea>&nbsp;&nbsp;&nbsp;
			<b>工信部：</b><textarea name="sgs_gxb_soupei" class="form-control textrow input-any-row" rows="1" cols="25" placeholder="多个用;分割或者换行"><?php echo $Params['sgs_gxb_soupei'];?></textarea>&nbsp;&nbsp;&nbsp;
			<b>外调：</b><select name="wr" class="form-control">
				<option value="">不限</option>
				<option value="Y"<?php if($Params['wr'] == 'Y') echo ' selected';?>>Y</option>
				<option value="N"<?php if($Params['wr'] == 'N') echo ' selected';?>>N</option>
			</select>&nbsp;&nbsp;&nbsp;
			<b>自算：</b><select name="jr" class="form-control">
				<option value="">不限</option>
				<option value="Y"<?php if($Params['jr'] == 'Y') echo ' selected';?>>Y</option>
				<option value="N"<?php if($Params['jr'] == 'N') echo ' selected';?>>N</option>
			</select>&nbsp;&nbsp;&nbsp;
			<button type="submit" class="btn btn-primary"> 查 询 </button>
		</form>
	</div>
	<?php if(!empty($vinArr)){?>
	<table class="table table-bordered YpTable" style="width:auto">
		<thead class="Filter Sortable">
			<tr>
				<th width="150px" class="Sort"><span>VIN</span></th></th>
				<th width="80px" class="Sort"><span>V1-8</span></th>
				<th width="40px" class="Sort"><span>10</span></th>
				<th width="40px" class="Sort"><span>11</span></th>
				<th width="60px" class="Sort"><span>12-17</span></th>
				<th width="150px" class="Sort"><span>人工型号</th>
				<th width="150px" class="Sort"><span>外调型号</span></th>
				<th width="50px" class="Sort"><span>外调</span></th>
				<th width="150px" class="Sort"><span>自算型号</span></th>
				<th width="50px" class="Sort"><span>自算</span></th>
			</tr>
			<tr>
				<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:30px"></td>
				<td><input type="text" class="FilterTxt form-control" style="width:30px"></td>
				<td><input type="text" class="FilterTxt form-control" style="width:40px"></td>
				<td><input type="text" class="FilterTxt form-control" style="width:100px"></td>
				<td><input type="text" class="FilterTxt form-control" style="width:100px"></td>
				<td><input type="text" class="FilterTxt form-control" style="width:30px"></td>
				<td><input type="text" class="FilterTxt form-control" style="width:100px"></td>
				<td><input type="text" class="FilterTxt form-control" style="width:30px"></td>
				
			</tr>
		</thead>
		<tbody>
			<?php foreach($vinArr as $v){?>
			<tr>
				<td>
					<?php if(!empty($v['sma_id'])){?>
					<a href="<?php echo mvc::$cfg['ADMIN_URI'];?>ypcCar/standModelAnyAdd?smaId=<?php echo $v['sma_id']?>" class="a_blue" target="_blank" ><?php echo $v['sgs_vin'];?></a>
					<?php }else{?>
					<?php echo $v['sgs_vin'];?>
					<?php }?>
				</td>
				<td><?php echo substr($v['sgs_vin'], 0, 8);?></td>
				<td><?php echo substr($v['sgs_vin'], 9, 1);?></td>
				<td><?php echo substr($v['sgs_vin'], 10, 1);?></td>
				<td><?php echo substr($v['sgs_vin'], 11);?></td>
				<td><?php echo $v['sma_gxb_code_show'];?></td>
				<td><?php echo $v['sgs_gxb_soupei'];?></td>
				<td><?php if(!empty($v['sgs_gxb_soupei_format']) && !empty($v['sma_gxb_code'])) echo $v['sgs_gxb_soupei_format'] == $v['sma_gxb_code']? '<span class="green">Y</span>': '<span class="red">N</span>';?></td>
				<td><?php echo $v['sgs_gxb_yp'];?></td>
				<td><?php if(!empty($v['sgs_gxb_yp_format']) && !empty($v['sma_gxb_code'])) echo $v['sgs_gxb_yp_format'] == $v['sma_gxb_code']? '<span class="green">Y</span>': '<span class="red">N</span>';?></td>
				
			</tr>
			<?php }?>
		</tbody>
	</table>
	<?php }?>
	<?php echo $Page;?>
</div>
<?php include_once(mvc::$cfg['PATH_TPL'].'public/footBase.php');?>
<script type="text/javascript">
$(document).ready(function(){

});
</script>