fix active problem
This commit is contained in:
parent
b7f440a98f
commit
a6035e7f60
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue