westdc-zf1/module/Application/view/layout/header.phtml

104 lines
4.2 KiB
PHTML
Raw Normal View History

2014-02-27 04:33:22 +00:00
2014-03-05 01:59:51 +00:00
<?php $config = \Sookon\Helpers\Config::get(); ?>
<header>
<div class="container">
<div class="row-fluid">
<div class="span12 inline">
<ul class="pull-right inline" style="color:#000000; font-size:12px; a">
2014-02-27 03:44:38 +00:00
<?php
$user = \Sookon\Helpers\View::User();
if($user)
{
echo '<li><a href="/account"><i class="icon-user"></i> '.$user->username.'</a></li>
</li><a href="/account/logout"><i class="icon-off"></i> 退出 </a></li>';
2014-02-27 03:44:38 +00:00
if ($user->usertype=="administrator")
2014-03-14 03:40:35 +00:00
echo '<li><a href="/admin"><i class="icon-cog"></i> 后台&nbsp;&nbsp; </a></li> ';
2014-02-27 03:44:38 +00:00
} else {
echo '<li><a href="/account/login">登录</a></li> | <li><a href="/account/register">注册</a></li>';
2014-02-27 03:44:38 +00:00
} ?>
</ul>
</div>
</div>
<div class="container">
<div class="row-fluid">
<div class="span12">
<div class="span4"><a href="/"><img src="/sjyportal/img/logo.png" /></a></div>
<div class="span8 inline">
2014-02-27 03:44:38 +00:00
<ul class="nav nav-pills pull-right">
2014-03-12 08:37:36 +00:00
<li style="padding-right:20px" id="page-nav-index-index"><a href="<?= $this->url('home') ?>">首 页</a></li>
<li style="padding-right:20px" id="page-nav-news"><a href="<?= $this->url('news',array('category'=>'index')) ?>">新 闻</a></li>
<li style="padding-right:20px" id="page-nav-data"><a href="<?= $this->url('data') ?>">数 据</a></li>
2014-03-13 07:29:31 +00:00
<li style="padding-right:20px" id="page-nav-index-about"><a href="/about/平台简介">关于我们</a></li>
2014-02-27 04:33:22 +00:00
<li class="input-append " id="search">
2014-03-12 08:48:16 +00:00
<form action="<?= $this->url('home/default',array('controller'=>'search')) ?>" method="get">
<input class="input-medium" placeholder="关键字" type="text" name="q">
<button class="btn" type="submit">搜索</button>
</form>
2014-02-27 04:33:22 +00:00
</li>
2014-02-27 03:44:38 +00:00
</ul>
</div>
</div>
</div>
</div>
</div>
</header>
<!-- /.header -->
<div class="container">
2014-02-27 03:44:38 +00:00
<div id="myCarousel" class="carousel slide">
<div class="carousel-inner">
<?php
/* banner 内容生成
foreach($this->news as $k=>$v)
{
echo '<div class="item'.($k==0?' active':'').'">';
echo '<a href="'.$v['url'].'" ><img src="'.$v['image'].'" class="img-rounded featured-image" /></a>';
echo '<div class="container">';
echo '<div class="carousel-caption">';
echo '<h2><a href="'.$v['url'].'">'.$v['title'].'</a></h2>';
//echo '<p>'.$v['description'].'</p>';
echo '</div></div></div>';
}
*/
?>
2014-03-05 03:06:47 +00:00
<div class="item"> <img src="/sjyportal/img/slide-05.jpg" alt="" class="img-rounded" />
2014-02-27 03:44:38 +00:00
<div class="container">
<div class="carousel-caption">
<h2>青海54.6%国土被纳入三江源国家生态保护试验区</h2>
</div>
</div>
2014-02-27 03:44:38 +00:00
</div>
2014-03-05 04:02:00 +00:00
<div class="item"> <img src="/sjyportal/img/slide-07.jpg" alt="" class="img-rounded" />
<div class="container">
<div class="carousel-caption">
2014-03-05 05:25:35 +00:00
<h2>青海三江源生态价值将成官员政绩考核新标准</h2>
2014-03-05 04:02:00 +00:00
</div>
</div>
</div>
<div class="item"> <img src="/sjyportal/img/slide-08.jpg" alt="" class="img-rounded" />
<div class="container">
<div class="carousel-caption">
2014-03-05 05:25:35 +00:00
<h2>中国再投160亿治理三江源生态退化</h2>
2014-03-05 04:02:00 +00:00
</div>
</div>
</div>
2014-03-05 03:06:47 +00:00
<div class="item active"> <img src="/sjyportal/img/slide-06.jpg" alt="" class="img-rounded" />
2014-02-27 03:44:38 +00:00
<div class="container">
<div class="carousel-caption">
2014-03-05 05:25:35 +00:00
<h2>三江源生态保护和建设一期工程初步实现规划目标</h2>
</div>
</div>
</div>
2014-02-27 03:44:38 +00:00
</div><!-- /.carousel-inner -->
<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><!-- /.container -->
2014-03-01 05:25:23 +00:00
<div class="container">