86 lines
3.7 KiB
PHTML
Executable File
86 lines
3.7 KiB
PHTML
Executable File
<!--顶部导航-->
|
|
<div class="pageTitle">
|
|
<div class="container">
|
|
<div class="col-md-8" style="padding-left: 0;">
|
|
<img src="/static-sanjy-np/img/logo3_03.png" alt="" style="width: 75px;float: left;margin-right: 10px;"/>
|
|
<h5 >三江源国家公园星空地一体化生态监测数据平台</h5>
|
|
<span style="font-size: 16px">Ecological Data Center of Sanjiangyuan National Park</span>
|
|
</div>
|
|
<div class="col-md-4 searchBox" style="padding-right: 0;">
|
|
<form action="/search" id="search-form">
|
|
<i onclick="$('#search-form').submit()">搜索</i>
|
|
<input type="text" name="q" id="q" class="form-control" placeholder="请输入搜索内容">
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<header class="header">
|
|
<div class="container">
|
|
<nav class="navbar navbar-default" role="navigation">
|
|
<div class="container-fluid" style="padding-left: 0;">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse"
|
|
data-target="#example-navbar-collapse">
|
|
<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 id="main-menu" class="nav navbar-nav">
|
|
<li>
|
|
<a href="/index" class="">首页</a>
|
|
</li>
|
|
<li>
|
|
<a href="/data">数据服务</a>
|
|
</li>
|
|
<li>
|
|
<a href="/map">园区分布</a>
|
|
</li>
|
|
<li>
|
|
<a href="/observe">监测数据</a>
|
|
</li>
|
|
<li>
|
|
<a href="/archives/news/sjynpnews">新闻动态</a>
|
|
</li>
|
|
<li>
|
|
<a href="/about">关于我们</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<?php
|
|
$auth = Zend_Auth::getInstance();
|
|
if ($auth->hasIdentity()) {
|
|
$user = $auth->getIdentity();
|
|
echo '<li><a href="/account">' . $user->username . '</a></li>';
|
|
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>';
|
|
} else {
|
|
echo '<a href="/account/register" id="register">注册</a><a href="/account/login" id="login">登录</a>';
|
|
} ?>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</div>
|
|
</header>
|
|
|
|
<!--nav selected style-->
|
|
<script>
|
|
$(document).ready(function () {
|
|
|
|
var url = window.location.pathname;
|
|
var url_arry = url.split('/');
|
|
|
|
if(url_arry[1] == ''){
|
|
url_arry[1] = 'index'
|
|
}
|
|
var select = "#main-menu li a[href ^= '/"+url_arry[1] + "']";
|
|
$(select).addClass("nav-active");
|
|
|
|
});
|
|
|
|
</script>
|