首页样式修改。
This commit is contained in:
parent
44879890c8
commit
85f9f5e45a
|
@ -19,7 +19,7 @@
|
|||
echo '<a href="/account"><i class="icon-user"></i> '.$user->username.'</a> ';
|
||||
if ($user->usertype=="administrator") echo '<a href="/admin"><i class="icon-cog"></i> 后台 </a><a href="/data/order"><i class="icon-shopping-cart"></i> 数据篮 </a> <a href="/account/logout">退出</a> ';
|
||||
} else {
|
||||
echo '<a href="/account/login">登录</a> | <a href="/account/register">注册</a>';
|
||||
echo '<a href="/account/login">登 录</a> | <a href="/account/register">注 册</a>';
|
||||
} ?>
|
||||
|
||||
</p>
|
||||
|
@ -28,8 +28,9 @@
|
|||
<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" ><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>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -39,7 +40,7 @@
|
|||
|
||||
<!-- Carousel
|
||||
================================================== -->
|
||||
<div class="container-fluid1">
|
||||
<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="">
|
||||
|
|
|
@ -19,25 +19,24 @@
|
|||
<ul>
|
||||
<?php foreach($this->list_news as $k=>$v){ ?>
|
||||
<li>
|
||||
<a href="<?= $v['url'] ?>" title="<?= $v['title'] ?>"><?= mb_strlen($v['title']) > 23 ? mb_substr($v['title'],0,23,'utf-8')."...":$v['title'] ?></a>
|
||||
<a href="<?= $v['url'] ?>" title="<?= $v['title'] ?>"><i class="icon-ok-sign"> </i><?= mb_strlen($v['title']) > 23 ? mb_substr($v['title'],0,23,'utf-8')."...":$v['title'] ?></a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<span class="pull-right"><a href="list.htm" target="_blank" class="more">更多>></a></span>
|
||||
<span class="pull-right"><a href="/archives/news/localnews" target="_blank" class="more">更多>></a></span>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.span4 -->
|
||||
<div class="span8">
|
||||
<div class="box">
|
||||
<h4 class="box-title">草原监测数据</h4>
|
||||
<h4 class="box-title">新闻公告</h4>
|
||||
<ul>
|
||||
<?php foreach($this->list_news as $k=>$v){ ?>
|
||||
<li>
|
||||
<span class="pull-right">[<?= date("Y-m-d",strtotime($v['ts_published']))?>]</span>
|
||||
<a href="<?= $v['url'] ?>" title="<?= $v['title'] ?>"><?= mb_strlen($v['title']) > 26 ? mb_substr($v['title'],0,26,'utf-8')."...":$v['title'] ?></a>
|
||||
<a href="<?= $v['url'] ?>" title="<?= $v['title'] ?>"><i class=" icon-ok-sign"> </i><?= $v['title'] ?></a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<span class="pull-right"><a href="list.htm" target="_blank" class="more">更多>></a></span>
|
||||
<span class="pull-right"><a href="/archives/news/localnews" target="_blank" class="more">更多>></a></span>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -45,48 +44,48 @@
|
|||
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
<div style="margin-bottom:20px;"><img src="/sjyportal/img/protect.jpg" </img></div>
|
||||
<div style="margin-bottom:20px;"><img src="/sjyportal/img/protect.jpg" class="img-rounded" </img></div>
|
||||
|
||||
<!-- Three columns of text below the carousel -->
|
||||
<div class="row-fluid">
|
||||
<div class="span4">
|
||||
<div class="box">
|
||||
<h4 class="box-title">草原法规</h4>
|
||||
<h4 class="box-title">最新观测数据</h4>
|
||||
<ul>
|
||||
<?php foreach($this->list_news as $k=>$v){ ?>
|
||||
<li>
|
||||
<a href="<?= $v['url'] ?>" title="<?= $v['title'] ?>"><?= mb_strlen($v['title']) > 26 ? mb_substr($v['title'],0,26,'utf-8')."...":$v['title'] ?></a>
|
||||
<a href="<?= $v['url'] ?>" title="<?= $v['title'] ?>"><i class=" icon-map-marker"> </i><?= $v['title'] ?></a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<span class="pull-right"><a href="list.htm" target="_blank" class="more">更多>></a></span>
|
||||
<span class="pull-right"><a href="/archives/news/localnews" target="_blank" class="more">更多>></a></span>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.span4 -->
|
||||
<div class="span4">
|
||||
<div class="box">
|
||||
<h4 class="box-title">草原执法</h4>
|
||||
<h4 class="box-title">最新可视化数据</h4>
|
||||
<ul>
|
||||
<?php foreach($this->list_news as $k=>$v){ ?>
|
||||
<li>
|
||||
<a href="<?= $v['url'] ?>" title="<?= $v['title'] ?>"><?= mb_strlen($v['title']) > 26 ? mb_substr($v['title'],0,26,'utf-8')."...":$v['title'] ?></a>
|
||||
<a href="<?= $v['url'] ?>" title="<?= $v['title'] ?>"><i class=" icon-map-marker"> </i><?= $v['title'] ?></a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<span class="pull-right"><a href="list.htm" target="_blank" class="more">更多>></a></span>
|
||||
<span class="pull-right"><a href="/archives/news/localnews" target="_blank" class="more">更多>></a></span>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.span4 -->
|
||||
<div class="span4">
|
||||
<div class="box">
|
||||
<h4 class="box-title">草原防火</h4>
|
||||
<h4 class="box-title">热门数据集</h4>
|
||||
<ul>
|
||||
<?php foreach($this->list_news as $k=>$v){ ?>
|
||||
<li>
|
||||
<a href="<?= $v['url'] ?>" title="<?= $v['title'] ?>"><?= mb_strlen($v['title']) > 26 ? mb_substr($v['title'],0,26,'utf-8')."...":$v['title'] ?></a>
|
||||
<a href="<?= $v['url'] ?>" title="<?= $v['title'] ?>"><i class=" icon-map-marker"> </i><?= $v['title'] ?></a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<span class="pull-right"><a href="list.htm" target="_blank" class="more">更多>></a></span>
|
||||
<span class="pull-right"><a href="/archives/news/localnews" target="_blank" class="more">更多>></a></span>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue