westdc-zf1/application/default/views/scripts/sanji-header-bak.phtml

41 lines
2.0 KiB
PHTML
Executable File

<!--顶部导航-->
<header class="header">
<div class="container">
<nav class="navbar navbar-inverse" role="navigation">
<div class="navbar-header">
<button type="button" id="nav-toggle" class="navbar-toggle" data-toggle="collapse" data-target="#main-nav">
<span class="sr-only"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="#" class="navbar-brand scroll-top logo"><img src="/static-sanji-v2/img/logo_white.png" alt="" /><b>时空三极环境大数据平台</b></a>
</div>
<div id="main-nav" class="collapse navbar-collapse">
<ul class="nav navbar-nav" id="mainNav">
<li ><a href="/">首页</a></li>
<li><a href="/data" class="scroll-link">数据产品</a></li>
<li><a href="/archives/news/localnews" class="scroll-link">新闻动态</a></li>
<li><a href="/about" class="scroll-link">关于本站</a></li>
<li><a href="/author" class="scroll-link">数据提交</a></li>
<li class="search">
<form action="/search" id="search-form">
<input type="text" name="q" id="q" class="form-control" placeholder="搜索">
<i onclick="$('#search-form').submit()"></i>
</form>
</li>
<?php
$auth = Zend_Auth::getInstance();
if($auth->hasIdentity())
{
echo '<li><a href="/data/order">数据篮</a></li>';
} else {
echo '<li id="login" onclick="self.location = \'/account/login\'">登录</li>';
} ?>
</ul>
</div>
</nav>
</div>
</header>