49 lines
2.5 KiB
PHTML
Executable File
49 lines
2.5 KiB
PHTML
Executable File
<div class="container">
|
|
<div class="masthead1">
|
|
<div class="row-fluid banner" style="margin:5px 0px;">
|
|
<div class="span5"><a href="/"><img src="/images/logo.png" /></a></div>
|
|
<div class="span7">
|
|
<span class="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 '<a href="/account/login"><i class="icon-user"></i> 登录 </a> | <a href="/account/register"> 注册 </a>';
|
|
} ?>
|
|
</span>
|
|
|
|
<span class="pull-right" style="margin-top:20px;">
|
|
<form method="get" action="/search" id="search" class="navbar-search pull-left">
|
|
<input type="text" value="" id="q" name="q" class="input-xlarge search-query " placeholder="搜索">
|
|
</form>
|
|
</span>
|
|
</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>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div><!-- /.navbar -->
|
|
</div>
|
|
</div>
|