45 lines
2.4 KiB
PHTML
Executable File
45 lines
2.4 KiB
PHTML
Executable File
<div class="container">
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<img class="logo" src="/static-sanji/images/index/logo.jpg">
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<nav class="navbar navbar-default">
|
|
<div class="container-fluid">
|
|
<!-- Brand and toggle get grouped for better mobile display -->
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
</div>
|
|
|
|
<!-- Collect the nav links, forms, and other content for toggling -->
|
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
|
<ul class="nav navbar-nav" id="main-menu">
|
|
<li><a href="/">首页</a></li>
|
|
<li><a href="/data">数据产品</a></li>
|
|
<li><a href="/archives/news/featured">新闻动态</a></li>
|
|
<li><a href="/about">关于本站</a></li>
|
|
<li><a href="/author">数据提交</a></li>
|
|
<?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 '<li class="user pull-right"><a href="/account/login"></a></li>';
|
|
} ?>
|
|
<li class="search pull-right"><a href="/search"></a></li>
|
|
</ul>
|
|
</div><!-- /.navbar-collapse -->
|
|
</div><!-- /.container-fluid -->
|
|
</nav>
|
|
</div>
|
|
</div>
|