2018-05-11 09:02:26 +00:00
|
|
|
<!--顶部导航-->
|
|
|
|
<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>
|
2018-05-11 14:49:03 +00:00
|
|
|
<a href="#" class="navbar-brand scroll-top logo"><img src="/static-sanji-v2/img/logo_white.png" alt="" /><b>时空三极环境大数据平台</b></a>
|
2018-05-11 09:02:26 +00:00
|
|
|
</div>
|
|
|
|
<div id="main-nav" class="collapse navbar-collapse">
|
|
|
|
<ul class="nav navbar-nav" id="mainNav">
|
|
|
|
<li class="active"><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">
|
|
|
|
<input type="text" class="form-control" placeholder="搜索">
|
|
|
|
<i></i>
|
|
|
|
</li>
|
|
|
|
<?php
|
|
|
|
$auth = Zend_Auth::getInstance();
|
|
|
|
if($auth->hasIdentity())
|
|
|
|
{
|
|
|
|
$user = $auth->getIdentity();
|
|
|
|
echo '<li class="pull-right"><a href="/account">'.$user->username.'</a></li>';
|
|
|
|
if ($user->usertype=="administrator") echo '<li class="pull-right"><a href="/admin"><i class="icon-cog"></i>后台</a></li>';
|
|
|
|
echo '<li class="pull-right"><a href="/data/order"><i class="icon-shopping-cart"></i> 数据篮</a></li><li class="pull-right"><a href="/account/logout">注销</a></li>';
|
|
|
|
} else {
|
|
|
|
echo '<li id="login">登录</li>';
|
|
|
|
} ?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2018-02-04 07:05:06 +00:00
|
|
|
</nav>
|
|
|
|
</div>
|
2018-05-11 09:02:26 +00:00
|
|
|
</header>
|