50 lines
2.5 KiB
PHTML
Executable File
50 lines
2.5 KiB
PHTML
Executable File
<div class="masthead">
|
|
<div class="row">
|
|
<div class="span7"><a href="/"><img src="/images/westdc-logo-1.png" alt="Westdc Logo" /></a><a href="http://www.icsu-wds.org/" target="_blank"><img src="/images/WDS_logo_RGB_s.jpg" /></a>
|
|
</div>
|
|
<div class="span5 pull-right">
|
|
<form method="get" action="/search" id="search" style="padding-top:17px;">
|
|
<div class="input-append">
|
|
<input type="text" value="" id="q" name="q" class="span4" placeholder="Full Text Search">
|
|
<button type="submit" class="btn"><i class="icon-search"></i>Search</button>
|
|
</div></form>
|
|
</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>
|
|
<a class="brand" href="/">CARD - WDS member</a>
|
|
<div class="nav-collapse collapse">
|
|
<ul class="nav" id="mainmenu">
|
|
<li id="main-nav-index"><a href="/"><span>Home</span></a></li>
|
|
<li id="main-nav-data"><a href="/data"><span>Dataset</span></a></li>
|
|
<!--<li id="main-nav-review"><a href="/review"><span>数据评审</span></a></li>
|
|
<li id="main-nav-author"><a href="/author"><span>For Author</span></a></li>-->
|
|
<li id="main-nav-knowledge"><a href="/knowledge"><span>Knowledge</span></a></li>
|
|
<li><a href="/archives"><span>News & Events</span></a></li>
|
|
<li><a href="/about"><span>About</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"><i class="icon-user"></i>'.$user->username.'</a> ';
|
|
if ($user->usertype=="administrator") echo '<a href="/admin"><i class="icon-cog"></i>ADMIN</a> ';
|
|
echo '<a href="/data/order"><i class="icon-shopping-cart"></i>CART</a> <a href="/account/logout">Logout</a>';
|
|
} else {
|
|
echo '<a href="/account/login"><i class="icon-user"></i>Login</a> <a href="/account/register">Register</a>';
|
|
} ?>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div><!-- /.navbar -->
|
|
</div>
|