32 lines
1.5 KiB
PHTML
Executable File
32 lines
1.5 KiB
PHTML
Executable File
<div class="masthead">
|
|
<h3 class="muted"><img src="/images/westdc-banner.jpg" alt="Westdc Logo" /></h3>
|
|
|
|
<div class="navbar">
|
|
<div class="navbar-inner">
|
|
<div class="container">
|
|
<ul class="nav">
|
|
<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 id="main-nav-knowledge"><a href="/knowledge"><span>知识积累</span></a></li>
|
|
<li><a href="/archives"><span>新闻动态</span></a></li>
|
|
<li><a href="/about"><span>关于本站</span></a></li>
|
|
</ul>
|
|
<p class="navbar-text pull-right">
|
|
<?php
|
|
$auth = Zend_Auth::getInstance();
|
|
if($auth->hasIdentity())
|
|
{
|
|
$user = $auth->getIdentity();
|
|
echo '<a href="/account">'.$user->username.'</a> ';
|
|
if ($user->usertype=="administrator") echo '<a href="/admin">后台管理</a> ';
|
|
echo '<a href="/data/order">数据篮</a> <a href="/account/logout">注销</a>';
|
|
} else {
|
|
echo '<a href="/account/login">登录</a> <a href="/account/register">注册</a>';
|
|
} ?>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div><!-- /.navbar -->
|
|
</div>
|