westdc-zf1/application/default/views/scripts/header-index.phtml

74 lines
3.1 KiB
PHTML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- header -->
<link href="/sjyportal/css/style.css" rel="stylesheet" type="text/css" />
<header>
<div class="container">
<div class="row-fluid">
<div class="span12">
<div class="span4">
<img src="/sjyportal/img/logo.png" />
</div>
<div class="span8 inline">
<p class="pull-right" style="color:#000000; font-size:9px;">
<?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 == $this->config->auth->identifier)
{
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="/account/logout">退出</a>';
} else {
echo '<a href="/account/login">登 录</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/account/register">注 册</a>';
} ?>
</p>
<?php $current_url =$_SERVER["REQUEST_URI"]?>
<p >
<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=='/archives/news/localnews') echo " class='active'";?> ><a href="/archives/news/localnews">新 闻</a></li>
<li style="padding-right:20px"<?php if($current_url=='/data') echo " class='active'";?> ><a href="/data">数 据</a></li>
<li style="padding-right:20px"<?php if($current_url=='/about') echo " class='active'";?> ><a href="/about">关于我们</a></li>
<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>
</li>
</ul>
</p>
</div>
</div>
</div>
</div>
</header>
<!-- Carousel
================================================== -->
<div class="container-fluid1 ">
<div id="myCarousel" class="carousel slide">
<div class="carousel-inner">
<div class="item active"> <img src="/sjyportal/img/slide-00.jpg" alt="" class="">
<div class="container">
<div class="carousel-caption">
<h2>青海54.6%国土被纳入三江源国家生态保护试验区</h2>
</div>
</div>
</div>
<div class="item"> <img src="/sjyportal/img/slide-01.jpg" alt="" class="">
<div class="container">
<div class="carousel-caption">
<h2>青海54.6%国土被纳入三江源国家生态保护试验区</h2>
</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>
</div>
<!-- /.carousel -->
<div class="container">