<?
viewPlugins("bootstrap", "qgGrid", "zTree", "layer");
$headerEnd = '
<link href="' . PATH_STATIC . '/css/qg/ui.css?' . VER_STATIC . '" rel="stylesheet">';
viewSet("headerEnd", $headerEnd);
viewLoad("public/header");
?>
<? if(!empty($data)){?>
<table class="table table-bordered">
	<thead>
		<tr>
			<th width="20px"><input type="checkbox" onclick="checkAllOrNot(this,'cnmodelids[]')"/></th>
			<th>品牌</th>
			<th>生产商</th>
			<th>车代</th>
			<th>车型</th>
			<th width="60px">开始年</th>
			<th width="60px">结束年</th>
			<th>发动机</th>
			<th width="40px">功率</th>
			<th width="40px">排量</th>
			<th>变速器</th>
			<th>驱动方式</th>
			<th>燃料</th>
			<th>车身形式</th>
			<th>前制动器</th>
			<th>后制动器</th>
			<th>驻车制动</th>
		</tr>
	</thead>
	<tbody>
		<? foreach($data as $row){?>
		<tr>
			<td><input type="checkbox" name="cnmodelids[]" value="<?=$row['mod3_id']?>" <?=($row['checked']? ' checked="checked"': '')?>/></td>
			<td><?=$row['brand_name']?></td>
			<td><?=$row['make_name']?></td>
			<td><?=$row['mod2_name']?></td>
			<td><?=$row['mod3_name']?></td>
			<td><?=$row['mod3_start_year']? $row['mod3_start_year']: ''?></td>
			<td><?=$row['mod3_end_year']? $row['mod3_end_year']: ''?></td>
			<td><?=$row['mod3_engine']?></td>
			<td><?=$row['mod3_kw']? $row['mod3_kw']: ''?></td>
			<td><?=$row['mod3_cc']? $row['mod3_cc']: ''?></td>
			<td><?=$row['mod3_transmission']?></td>
			<td><?=$row['mod3_drive']?></td>
			<td><?=$row['mod3_fuel']?></td>
			<td><?=$row['mod3_body']?></td>
			<td><?=$row['mod3_front_brake']?></td>
			<td><?=$row['mod3_rear_brake']?></td>
			<td><?=$row['mod3_parking_brake']?></td>
		<?}?>
	</tbody>
</table>
<?}else{?>
<h3 class="red center">无相关车型</h3>
<?}?>
<? viewLoad("public/footer") ?>