78 lines
3.3 KiB
PHTML
78 lines
3.3 KiB
PHTML
|
||
|
||
<?php $config = \Sookon\Helpers\Config::get(); ?>
|
||
<header>
|
||
<div class="container">
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
<div class="span3"><img src="/sjyportal/img/logo.png"</img></div>
|
||
<div class="span9 inline">
|
||
<ul class="pull-right inline" style="color:#000000; font-size:9px;">
|
||
<?php
|
||
$user = \Sookon\Helpers\View::User();
|
||
if($user)
|
||
{
|
||
echo '<li><a href="/account"><i class="icon-user"></i> '.$user->username.'</a></li> ';
|
||
if ($user->usertype=="administrator")
|
||
echo '<li><a href="/admin"><i class="icon-cog"></i> 后台 </a></li><li><a href="/data/order"><i class="icon-shopping-cart"></i> 数据篮 </a></li><li> <a href="/account/logout">退出</a></li> ';
|
||
} else {
|
||
echo '<li><a href="/account/login">登录</a></li> | <li><a href="/account/register">注册</a></li>';
|
||
} ?>
|
||
|
||
</ul>
|
||
<ul class="nav nav-pills pull-right">
|
||
<li id="page-nav-index"><a href="<?= $this->url('home') ?>">首 页</a></li>
|
||
<li id="page-nav-news"><a href="<?= $this->url('news',array('category'=>'index')) ?>">新 闻</a></li>
|
||
<li id="page-nav-data"><a href="<?= $this->url('data') ?>">数 据</a></li>
|
||
<li id="page-nav-about"><a href="/about">关于我们</a></li>
|
||
<li class="input-append " id="search">
|
||
<input class="input-medium" placeholder="关键字" id="appendedInputButton" type="text">
|
||
<button class="btn" type="button">搜索</button>
|
||
</li>
|
||
</ul>
|
||
</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 active"> <img src="/sjyportal/img/slide-06.jpg" alt="" class="img-rounded">
|
||
<div class="container">
|
||
<div class="carousel-caption">
|
||
<h2>青海54.6%国土被纳入三江源国家生态保护试验区</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">
|