banner修改

This commit is contained in:
Li Heng 2014-06-13 06:50:22 +00:00
parent a9d91f9a57
commit 6f3beec4a5
1 changed files with 73 additions and 73 deletions

View File

@ -1,74 +1,74 @@
<!-- header --> <!-- header -->
<link href="/sjyportal/css/style.css" rel="stylesheet" type="text/css" /> <link href="/sjyportal/css/style.css" rel="stylesheet" type="text/css" />
<header> <header>
<div class="container"> <div class="container">
<div class="row-fluid"> <div class="row-fluid">
<div class="span12"> <div class="span12">
<div class="span4"> <div class="span4">
<img src="/sjyportal/img/logo.png" /> <img src="/sjyportal/img/logo.png" />
</div> </div>
<div class="span8 inline"> <div class="span8 inline">
<p class="pull-right" style="color:#000000; font-size:9px;"> <p class="pull-right" style="color:#000000; font-size:9px;">
<?php <?php
$auth = Zend_Auth::getInstance(); $auth = Zend_Auth::getInstance();
if($auth->hasIdentity()) if($auth->hasIdentity())
{ {
$user = $auth->getIdentity(); $user = $auth->getIdentity();
echo '<a href="/account"><i class="icon-user"></i> '.$user->username.'</a> '; echo '<a href="/account"><i class="icon-user"></i> '.$user->username.'</a> ';
if ($user->usertype == $this->config->auth->identifier) if ($user->usertype == $this->config->auth->identifier)
{ {
echo '<a href="/admin"><i class="icon-cog"></i> 后台 </a>'; echo '<a href="/admin"><i class="icon-cog"></i> 后台 </a>';
} }
echo '<a href="/data/order"><i class="icon-shopping-cart"></i> 数据篮 </a>'; echo '<a href="/data/order"><i class="icon-shopping-cart"></i> 数据篮 </a>';
echo '<a href="/account/logout">退出</a>'; echo '<a href="/account/logout">退出</a>';
} else { } else {
echo '<a href="/account/login">登 录</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/account/register">注 册</a>'; echo '<a href="/account/login">登 录</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/account/register">注 册</a>';
} ?> } ?>
</p> </p>
<?php $current_url =$_SERVER["REQUEST_URI"]?> <?php $current_url =$_SERVER["REQUEST_URI"]?>
<p > <p >
<ul class="nav nav-pills pull-right"> <ul class="nav nav-pills pull-right">
<li style="padding-right:20px"<?php if($current_url=='/') echo " class='active'";?> ><a href="/">首 页</a></li> <li style="padding-right:20px"<?php if($current_url=='/') echo " class='active'";?> ><a href="/">首 页</a></li>
<li style="padding-right:20px"><a href="/archives/">新 闻</a></li> <li style="padding-right:20px"><a href="/archives/">新 闻</a></li>
<li style="padding-right:20px"><a href="/data">数 据</a></li> <li style="padding-right:20px"><a href="/data">数 据</a></li>
<li style="padding-right:20px"><a href="/about">关于我们</a></li> <li style="padding-right:20px"><a href="/about">关于我们</a></li>
<li style="padding-right:20px" class="input-append "> <li style="padding-right:20px" class="input-append ">
<form action="/search" method="get"><input class="input-medium" placeholder="关键字" type="text" name="q"><button class="btn" type="submit">搜索</button></form> <form action="/search" method="get"><input class="input-medium" placeholder="关键字" type="text" name="q"><button class="btn" type="submit">搜索</button></form>
</li> </li>
</ul> </ul>
</p> </p>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</header> </header>
<!-- Carousel <!-- Carousel
================================================== --> ================================================== -->
<div class="container-fluid1 "> <div class="container-fluid1 ">
<div id="myCarousel" class="carousel slide"> <div id="myCarousel" class="carousel slide">
<div class="carousel-inner"> <div class="carousel-inner">
<div class="item active"> <img src="/sjyportal/img/slide-00.jpg" alt="" class=""> <div class="item active"> <img src="/sjyportal/img/slide-01.jpg" alt="" class="">
<div class="container"> <div class="container">
<div class="carousel-caption"> <div class="carousel-caption">
<h2>青海54.6%国土被纳入三江源国家生态保护试验区</h2> <h2>青海54.6%国土被纳入三江源国家生态保护试验区</h2>
</div> </div>
</div> </div>
</div> </div>
<div class="item"> <img src="/sjyportal/img/slide-01.jpg" alt="" class=""> <div class="item"> <img src="/sjyportal/img/slide-02.jpg" alt="" class="">
<div class="container"> <div class="container">
<div class="carousel-caption"> <div class="carousel-caption">
<h2>青海54.6%国土被纳入三江源国家生态保护试验区</h2> <h2>青海54.6%国土被纳入三江源国家生态保护试验区</h2>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<a class="left carousel-control" href="#myCarousel" data-slide="prev"></a> <a class="right carousel-control" href="#myCarousel" data-slide="next"></a> </div> <a class="left carousel-control" href="#myCarousel" data-slide="prev"></a> <a class="right carousel-control" href="#myCarousel" data-slide="next"></a> </div>
</div> </div>
<!-- /.carousel --> <!-- /.carousel -->
<div class="container"> <div class="container">