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

50 lines
2.5 KiB
PHTML
Raw Normal View History

<div class="container">
<div class="masthead">
<div class="row banner">
2014-03-07 03:07:35 +00:00
<div class="span6"><h3 class="head-title">三江源生态监测综合数据服务平台</h3></div>
<div class="span6">
2013-10-15 10:06:42 +00:00
</div>
</div>
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
2013-10-15 10:06:42 +00:00
<div class="nav-collapse collapse">
<ul class="nav" id="mainmenu">
<li id="main-nav-index"><a href="/"><span>首页</span></a></li>
<li id="main-nav-data"><a href="/data"><span>数据产品</span></a></li>
<li id="main-nav-review"><a href="/review"><span>数据评审</span></a></li>
2013-10-15 10:06:42 +00:00
<li id="main-nav-author"><a href="/author"><span>数据管理</span></a></li>
<li><a href="/archives"><span>新闻动态</span></a></li>
<li><a href="/about"><span>关于本站</span></a></li>
</ul>
2013-10-15 10:06:42 +00:00
<form method="get" action="/search" id="search" class="navbar-search pull-left">
<input type="text" value="" id="q" name="q" class="search-query" placeholder="搜索">
</form>
<p class="navbar-text pull-right">
<?php
$auth = Zend_Auth::getInstance();
if($auth->hasIdentity())
{
$user = $auth->getIdentity();
echo '<a href="/account"><i class="icon-user"></i>'.$user->username.'</a> ';
if ($user->usertype=="administrator") echo '<a href="/admin"><i class="icon-cog"></i>后台</a> ';
echo '<a href="/data/order"><i class="icon-shopping-cart"></i>数据篮</a> <a href="/account/logout">注销</a>';
} else {
# echo $_SERVER['SERVER_NAME'] ;
echo '<a href="/account/login"><i class="icon-user"></i>登录</a> <a href="http://www.sanjiangyuan.org.cn/account/register/">注册</a>';
} ?>
</p>
</div>
</div>
</div>
</div><!-- /.navbar -->
</div>
</div>