34 lines
1.4 KiB
PHTML
34 lines
1.4 KiB
PHTML
<div id="divHeader">
|
|
<div id="heiheLogo">
|
|
<a href="/glacier"><img src="/images/glacier-logo.png" alt="Glacier Logo" /></a>
|
|
</div>
|
|
<div class="nav">
|
|
<div id="divNavi">
|
|
<ul>
|
|
<!-- CSS Tabs -->
|
|
<li><a href="/"><span>首页</span></a></li>
|
|
<li><a href="/data"><span>数据产品与服务</span></a></li>
|
|
<li><a href="/review"><span>数据作者</span></a></li>
|
|
<li><a href="/review"><span>数据评审</span></a></li>
|
|
<li><a href="/knowledge"><span>知识积累</span></a></li>
|
|
<li><a href="/news"><span>新闻动态</span></a></li>
|
|
<li><a href="/about"><span>关于本站</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="userNavi">
|
|
<?php
|
|
$auth = Zend_Auth::getInstance();
|
|
if($auth->hasIdentity())
|
|
{
|
|
$user = $auth->getIdentity();
|
|
echo '<a href="/account/edit">'.$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>';
|
|
}
|
|
?>
|
|
</div>
|
|
</div>
|
|
</div>
|