<?php
	$actives = array("", "", "", "");
	if (ACTION_NAME=="index") {
		$actives[0] = "_active";
	}else if (ACTION_NAME=="campus") {
		$actives[1] = "_active";
	}else if (ACTION_NAME=="center") {
		$actives[2] = "_active";
	}else if (ACTION_NAME=="my") {
		$actives[3] = "_active";	
	}
?>
<style type="text/css">
	#tabbar .bar span {
    display: block;
    margin-top: 0px;
    color: #aaa;
    font-size: 10pt;
}
</style>
<section id="tabbar" style="background: #FFFFFF;border-top: 1px solid #E4E4E4;">
	<div class="bar home">
		<a href="<?php echo url("/mob/Index/index", ["id"=>input('id')])?>">
			<img src="/qunstatic/img/icon_home<?=$actives[0]?>.png" />
			<span <?php echo $actives[0]?"class='active';":"";?> >首页</span>
		</a>
	</div>
	
	<div class="bar campus">
		<a href="<?php echo url("/mob/Index/index", ["id"=>input('id')])?>">
			<img src="/qunstatic/img/icon_campus<?=$actives[1]?>.png" />
			<span <?php echo $actives[1]?"class='active';":"";?> >群学院</span>
		</a>
	</div>
	
	<div class="bar center">
		<a href="<?php echo url("/mob/Index/index", ["id"=>input('id')])?>">
			<img src="/qunstatic/img/icon_center<?=$actives[2]?>.png" />
			<span <?php echo $actives[2]?"class='active';":"";?> >群中心</span>
		</a>
	</div>

	<div class="bar my">
		<a href="<?php echo url("/mob/Index/index", ["id"=>input('id')])?>">
			<img src="/qunstatic/img/icon_my<?=$actives[3]?>.png" />
			<span <?php echo $actives[3]?"class='active';":"";?> >我的</span>
		</a>
	</div>
</section>



