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

71 lines
3.3 KiB
PHTML
Raw Normal View History

<!--顶部导航-->
2018-06-22 08:59:07 +00:00
<div class="pageTitle">
<div class="container">
<div class="col-md-8" style="padding-left: 0;">
2018-06-23 13:11:31 +00:00
<img src="/static-sanjy-np/img/logo3_03.png" alt="" style="width: 75px;float: left;margin-right: 10px;"/>
2018-06-22 08:59:07 +00:00
<h5>三江源国家公园星空地一体化生态监测及数据平台</h5>
<span>Integrated monitoring and data platform for Sanjiang Star source National Park</span>
</div>
<div class="col-md-4 searchBox" style="padding-right: 0;">
<i>搜索</i>
2018-06-23 13:11:31 +00:00
<input type="text" placeholder="请输入搜索内容"/>
2018-06-22 08:59:07 +00:00
</div>
</div>
</div>
<header class="header">
<div class="container">
2018-06-22 08:59:07 +00:00
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid" style="padding-left: 0;">
<div class="navbar-header">
2018-06-23 13:11:31 +00:00
<button type="button" class="navbar-toggle" data-toggle="collapse"
data-target="#example-navbar-collapse">
2018-06-22 08:59:07 +00:00
<span class="sr-only">切换导航</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="example-navbar-collapse" style="padding-left: 0;">
<ul class="nav navbar-nav">
<li>
2018-06-23 09:51:33 +00:00
<a href="/" class="">首页</a>
2018-06-22 08:59:07 +00:00
</li>
<li>
<a href="/data">数据服务</a>
</li>
2018-06-23 13:11:31 +00:00
<li>
<a href="/map">地图</a>
</li>
2018-06-22 08:59:07 +00:00
<li>
2018-06-22 09:39:31 +00:00
<a href="/archives/news/localnews">新闻动态</a>
2018-06-22 08:59:07 +00:00
</li>
<li>
2018-06-22 11:36:26 +00:00
<a href="/about">关于我们</a>
2018-06-22 08:59:07 +00:00
</li>
</ul>
2018-06-23 10:05:32 +00:00
<?php
$auth = Zend_Auth::getInstance();
2018-06-23 14:00:25 +00:00
if($auth->hasIdentity())
{
$user = $auth->getIdentity();
echo '<a href="/account" id="register">'.$user->username.'</a>';
if ($user->usertype=="administrator") echo '<li><a href="/admin"><i class="icon-cog"></i>后台</a></li> ';
echo '<li><a href="/data/order"><i class="icon-shopping-cart"></i>数据篮</a></li> <li><a href="/account/logout">注销</a></li>';
2018-06-23 10:05:32 +00:00
} else {
2018-06-23 14:00:25 +00:00
echo '<li><a href="/account/login"><i class="icon-user"></i>登录</a></li> <li><a href="/account/register">注册</a></li>';
2018-06-23 10:05:32 +00:00
} ?>
2018-06-23 14:00:25 +00:00
<!-- --><?php
// $auth = Zend_Auth::getInstance();
// if ($auth->hasIdentity()) {
// echo '<a href="/data/order" id="register">数据篮</a></li>';
// } else {
// echo '<a href="/account/login" id="login">登录</a>';
// } ?>
<!---->
2018-06-23 10:05:32 +00:00
2018-06-22 08:59:07 +00:00
</div>
</div>
2018-02-04 07:05:06 +00:00
</nav>
</div>
</header>