68 lines
2.9 KiB
PHTML
Executable File
68 lines
2.9 KiB
PHTML
Executable File
<!-- header -->
|
|
|
|
<header>
|
|
<!-- Navbar
|
|
================================================== -->
|
|
<div class="navbar navbar-fixed-top">
|
|
<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="#">青海省水土保持局</a>
|
|
<div class="nav-collapse collapse">
|
|
<ul class="nav" id="mainmenu">
|
|
<li class="">
|
|
<a href="/" >首页</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="/archives/">新闻</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="/data">数据</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="/about">关于我们</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<form class="navbar-search pull-left" action="/search" method="get">
|
|
<input type="text" class="search-query span3" placeholder="搜索" name="q">
|
|
</form>
|
|
<ul class="nav pull-right">
|
|
<li class="divider-vertical"></li>
|
|
<li class="dropdown">
|
|
<?php
|
|
$auth = Zend_Auth::getInstance();
|
|
if($auth->hasIdentity())
|
|
{
|
|
$user = $auth->getIdentity();
|
|
echo '<a href="/account" class="icon-user dropdown-toggle" data-toggle="dropdown"> '.$user->username.' <b class="caret"></b></a>';
|
|
echo '<ul class="dropdown-menu">';
|
|
if ($user->usertype == $this->config->auth->identifier)
|
|
{
|
|
echo '<li><a href="/admin">后台</a></li>';
|
|
}
|
|
echo '<li><a href="/admin">数据篮</a></li>';
|
|
echo '<li class="divider"></li>';
|
|
echo '<li><a href="/account/logout">退出</a></li>';
|
|
echo '</ul>';
|
|
echo '</li>';
|
|
} else {
|
|
echo '<li><a href="/account/register">注册</a></li>
|
|
<li><a href="/account/login">登录</a></li>';
|
|
} ?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="container">
|
|
<?= $this->render('breadcrumbs.phtml'); ?>
|