104 lines
4.2 KiB
PHTML
104 lines
4.2 KiB
PHTML
|
||
|
||
<?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">
|
||
<?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>';
|
||
if ($user->usertype=="administrator")
|
||
echo '<li><a href="/admin"><i class="icon-cog"></i> 后台 </a></li> ';
|
||
} else {
|
||
echo '<li><a href="/account/login">登录</a></li> | <li><a href="/account/register">注册</a></li>';
|
||
} ?>
|
||
|
||
</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">
|
||
<ul class="nav nav-pills pull-right">
|
||
<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>
|
||
<li style="padding-right:20px" id="page-nav-index-about"><a href="/about/平台简介">关于我们</a></li>
|
||
<li class="input-append " id="search">
|
||
<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>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</header>
|
||
<!-- /.header -->
|
||
|
||
<div class="container">
|
||
<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>';
|
||
}
|
||
*/
|
||
?>
|
||
|
||
<div class="item"> <img src="/sjyportal/img/slide-05.jpg" alt="" class="img-rounded" />
|
||
<div class="container">
|
||
<div class="carousel-caption">
|
||
<h2>青海54.6%国土被纳入三江源国家生态保护试验区</h2>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="item"> <img src="/sjyportal/img/slide-07.jpg" alt="" class="img-rounded" />
|
||
<div class="container">
|
||
<div class="carousel-caption">
|
||
<h2>青海三江源生态价值将成官员政绩考核新标准</h2>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="item"> <img src="/sjyportal/img/slide-08.jpg" alt="" class="img-rounded" />
|
||
<div class="container">
|
||
<div class="carousel-caption">
|
||
<h2>中国再投160亿治理三江源生态退化</h2>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="item active"> <img src="/sjyportal/img/slide-06.jpg" alt="" class="img-rounded" />
|
||
<div class="container">
|
||
<div class="carousel-caption">
|
||
<h2>三江源生态保护和建设一期工程初步实现规划目标</h2>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</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 -->
|
||
|
||
<div class="container">
|