<ul class="nav nav-tabs">
<li  <?php if (get ( 'a' ) == 'default' && $_GET['d'] == 0): ?>class="active" <?php endif; ?> ><a href="/index.php?m=activity">正在进行</a></li>
<li <?php if (get ( 'a' ) == 'default' && $_GET['d'] == 1): ?>class="active" <?php endif; ?> ><a href="/index.php?m=activity&d=1">未开始</a></li>
<li <?php if (get ( 'a' ) == 'default' && $_GET['d'] == 2): ?>class="active" <?php endif; ?> ><a href="/index.php?m=activity&d=2">已结束</a></li>
<li <?php if ($_GET['a'] == 'mycreate'): ?>class="active" <?php endif; ?>><a href="/index.php?m=activity&a=mycreate">我发起的</a></li>
<li <?php if ($_GET['a'] == 'myjoin'): ?>class="active" <?php endif; ?>><a href="/index.php?m=activity&a=myjoin">我参与的</a></li>
</ul>