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

50 lines
2.5 KiB
PHTML
Executable File

<div class="container">
<div class="masthead">
<div class="row banner">
<div class="span6"><h3 class="head-title">三江源生态监测综合数据服务平台</h3></div>
<div class="span6">
</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>
<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>
<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>
<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>