fix active problem

This commit is contained in:
wlx 2014-06-11 13:01:51 +00:00
parent b7f440a98f
commit a6035e7f60
1 changed files with 5 additions and 5 deletions

View File

@ -30,11 +30,11 @@
</p>
<?php $current_url =$_SERVER["REQUEST_URI"]?>
<p>
<ul class="nav nav-pills pull-right">
<li style="padding-right:20px"<?php if($current_url=='/') echo " class='active'";?> ><a href="/">首 页</a></li>
<li style="padding-right:20px"<?php if($current_url=='/archives/news/localnews') echo " class='active'";?> ><a href="/archives/news/localnews">新 闻</a></li>
<li style="padding-right:20px"<?php if($current_url=='/data') echo " class='active'";?> ><a href="/data">数 据</a></li>
<li style="padding-right:20px"<?php if($current_url=='/about') echo " class='active'";?> ><a href="/about">关于我们</a></li>
<ul class="nav nav-pills pull-right" id="mainmenu">
<li style="padding-right:20px"><a href="/">首 页</a></li>
<li style="padding-right:20px"><a href="/archives/news/localnews">新 闻</a></li>
<li style="padding-right:20px"><a href="/data">数 据</a></li>
<li style="padding-right:20px"><a href="/about">关于我们</a></li>
<li style="padding-right:20px" class="input-append ">
<form action="/search" method="get"><input class="input-medium" placeholder="关键字" type="text" name="q"><button class="btn" type="submit">搜索</button></form>
</li>