<?php include_once(mvc::$cfg['PATH_TPL'].'public/headBase.php');?>

<div class="layui-form"  id="tableDiv" style="position:relative;height:850px;overflow-x:auto;">
	<table class="layui-table YpTable" style="table-layout:fixed;width:max-content;">
		<thead class="Sortable">
			<tr>
				<th class="Sort" width="150px"><span>汽车品牌</span></th>
				<th class="Sort" sort="float" width="60px"><span>车型数</span></th>
				<?php foreach($spartIdArr as $spid){ if(!empty($supPartArr[$spid])){?>
				<th class="Sort" width="110px"><span><?php echo $supPartArr[$spid]['name'];?></span></th>
				<?php }}?>
			</tr>
		</thead>
		<tbody class="clicktr">
		<?php foreach($brandArr as $k=>$v){?>
			<tr>
				<th><?php echo $v['b_name'];?></th>
				<td><?php echo $v['m3_count'];?></td>
				<?php foreach($spartIdArr as $spid){ if(!empty($supPartArr[$spid])){?>
				<td><?php echo empty($v['bcount'][$spid])? '': sprintf("%.2f%%", $v['bcount'][$spid]/$v['m3_count']*100);?></td>
				<?php }}?>
			</tr>
		<?php }?>
		</tbody>
	</table>
	<?php echo $pageMsg;?>
</div>

<?php include_once(mvc::$cfg['PATH_TPL'].'public/footBase.php');?>
<script type="text/javascript">
$(document).ready(function(){
	fixedModelList(2,'');
});
</script>