三江源总站头部改造。

This commit is contained in:
Li Heng 2014-06-16 13:25:52 +00:00
parent 15358450de
commit 9320c2fd6b
1 changed files with 25 additions and 22 deletions

View File

@ -1,9 +1,27 @@
<div class="container">
<div class="masthead">
<div class="row banner">
<div class="span6"><h3 class="head-title">三江源生态监测综合数据服务平台</h3></div>
<div class="span6">
<div class="masthead1">
<div class="row-fluid banner" style="margin:5px 0px;">
<div class="span4"><a><img src="/images/logo.png" /></a></div>
<div class="span8">
<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">
@ -24,23 +42,8 @@
<li><a href="/about"><span>关于本站</span></a></li>
</ul>
<form method="get" action="/search" id="search" class="navbar-search pull-left">
<input type="text" value="" id="q" name="q" class="search-query" placeholder="搜索">
</form>
<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>后台</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>';
} ?>
</p>
</div>
</div>
</div>