修改首页布局、单位地址、网站介绍

This commit is contained in:
cuixin 2017-03-28 14:10:35 +08:00
parent 8c0dec55b1
commit a623ca6ec5
3 changed files with 203 additions and 181 deletions

View File

@ -16,14 +16,14 @@ $this->breadcrumb()->setSeparator(' > ');
<div id="content">
<h2>联系我们</h2>
<div id="offline">
<p>
<br />
青海省生态环境遥感监测中心<br />
青海省西宁市城东区南山东路116号<br />
邮编810099<br />
电话: +86-0971-8235025<br />
Email: support@sanjiangyuan.org.cn<br />
<br />
<p style="padding:0 0 0 33px;">
<br/>
青海省生态环境遥感监测中心<br/>
青海省西宁市城东区南山东路116号 <br/>
邮编810099<br/>
电话: +86-0971-8235025<br/>
Email: support@sanjiangyuan.org.cn<br/>
<br/>
</div>
<div id="online">
@ -34,7 +34,9 @@ $this->breadcrumb()->setSeparator(' > ');
<?php if (!empty($this->messages)) : ?>
<div id="message">
<?php
foreach ($this->messages as $info)echo $info;
foreach ($this->messages as $info) {
echo $info;
}
?>
</div>
<?php endif; ?>

View File

@ -14,8 +14,15 @@ $this->breadcrumb()->setSeparator(' > ');
<div class="span9">
<div id="content">
<div class="hero-unit">
<p>“青海三江源自然保护区生态保护和建设工程”的实施将对保护三江源自然保护区的生态环境产生重大影响“三江源生态监测综合数据平台”是青海三江源自然保护区生态保护和建设工程2012年度生态监测项目下设置的课题目的是依托数据库、互联网和地理信息系统技术组建基于互联网的、分布式的生态监测数据平台充分保护“青海三江源自然保护区生态保护和建设工程”的各种数据投资发掘数据的科学价值辅助研究生态环境变化过程中的科学问题。</p>
<div class="hero-unit" style="padding:30px 25px;">
<h3 class="text-center">青海省生态环境遥感监测中心</h3>
<hr>
<p>青海省生态环境遥感监测中心成立于2011年隶属于青海省环境保护厅由青海省政府批准组建。</p>
<p>主要职责:</p>
<p>承担我省国家重点生态功能区县域生态环境质量考核评价的技术监测等基础性工作;</p>
<p>承担重大生态保护与建设工程成效评估和区域、流域生态环境质量的遥感监测工作;</p>
<p>开展全省环境质量预测预警及变化趋势的综合评估;</p>
<p>开展生态监测科学研究和国际、国内生态环境监测交流合作。</p>
</div>
<h2>项目背景</h2>

View File

@ -1,13 +1,14 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle('首页');
$this->headTitle()->setSeparator(' - ');
$auth = Zend_Auth::getInstance();
$this->headLink()->appendStylesheet('/css/index.css');
$this->headTitle($this->config->title->site);
$this->headTitle('首页');
$this->headTitle()->setSeparator(' - ');
$auth = Zend_Auth::getInstance();
$this->headLink()->appendStylesheet('/css/index.css');
?>
<style>
.carousel-inner .item .featured-image-link{text-align:center;}
.featured-image{min-width:100%;text-align:center; margin:auto 0px;/*min-height:100%;*/}
.carousel-inner .item .featured-image-link { text-align:center; }
.featured-image { min-width:100%; text-align:center; margin:auto 0px; /*min-height:100%;*/ }
</style>
<div class="row">
@ -17,20 +18,18 @@
<div id="myCarousel" class="carousel slide">
<ol class="carousel-indicators">
<?php
foreach($this->news as $k=>$v)
{
echo '<li data-target="#myCarousel" data-slide-to="$k"'.($k==0?' class="active"':'').'></li>';
foreach ($this->news as $k => $v) {
echo '<li data-target="#myCarousel" data-slide-to="$k"' . ($k == 0 ? ' class="active"' : '') . '></li>';
}
?>
</ol>
<div class="carousel-inner">
<?php
foreach($this->news as $k=>$v)
{
echo '<div class="item'.($k==0?' active':'').'">';
echo '<a href="'.$v['url'].'" title="'.$v['description'].'" ><img src="'.$v['image'].'" class="img-rounded featured-image" /></a>';
foreach ($this->news as $k => $v) {
echo '<div class="item' . ($k == 0 ? ' active' : '') . '">';
echo '<a href="' . $v['url'] . '" title="' . $v['description'] . '" ><img src="' . $v['image'] . '" class="img-rounded featured-image" /></a>';
echo '<div class="carousel-caption">';
echo '<h4><span class="pull-right">['.date("Y-m-d",strtotime($v['ts_published'])).']</span><a href="'.$v['url'].'">'.$v['title'].'</a></h4>';
echo '<h4><span class="pull-right">[' . date("Y-m-d", strtotime($v['ts_published'])) . ']</span><a href="' . $v['url'] . '">' . $v['title'] . '</a></h4>';
//echo '<p>'.$v['description'].'</p>';
echo '</div></div>';
}
@ -43,10 +42,11 @@
<div class="span5" id="main-news">
<h4><a href="/archives"><i class="icon-calendar"></i>新闻</a></h4>
<ul class="news-list unstyled">
<?php foreach($this->list_news as $k=>$v){ ?>
<?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,23,'utf-8')."...":$v['title'] ?></a>
<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, 23, 'utf-8') . "..." : $v['title'] ?></a>
</li>
<?php } ?>
</ul>
@ -59,25 +59,38 @@
<div class="well well-small" style="padding:0px;">
<div class="row">
<div class="span8">
<div class="span8"><h4>热门数据集</h4></div>
<div class="span8">
<h4>最新数据集</h4></div>
<div class="data-list span4">
<ul class="unstyled">
<li><a href="/data/<?php echo $this->mdtop[0]->uuid; ?>"><?php echo $this->mdtop[0]->title; ?></a></li>
<li><a href="/data/<?php echo $this->mdtop[1]->uuid; ?>"><?php echo $this->mdtop[1]->title; ?></a></li>
<li><a href="/data/<?php echo $this->mdtop[2]->uuid; ?>"><?php echo $this->mdtop[2]->title; ?></a></li>
<li>
<a href="/data/<?php echo $this->mdtop[0]->uuid; ?>"><?php echo $this->mdtop[0]->title; ?></a>
</li>
<li>
<a href="/data/<?php echo $this->mdtop[1]->uuid; ?>"><?php echo $this->mdtop[1]->title; ?></a>
</li>
<li>
<a href="/data/<?php echo $this->mdtop[2]->uuid; ?>"><?php echo $this->mdtop[2]->title; ?></a>
</li>
</ul>
</div>
<div class="data-list">
<ul class="unstyled">
<li><a href="/data/<?php echo $this->mdtop[3]->uuid; ?>"><?php echo $this->mdtop[3]->title; ?></a></li>
<li><a href="/data/<?php echo $this->mdtop[4]->uuid; ?>"><?php echo $this->mdtop[4]->title; ?></a></li>
<li><a href="/data/<?php echo $this->mdtop[5]->uuid; ?>"><?php echo $this->mdtop[5]->title; ?></a></li>
<li>
<a href="/data/<?php echo $this->mdtop[3]->uuid; ?>"><?php echo $this->mdtop[3]->title; ?></a>
</li>
<li>
<a href="/data/<?php echo $this->mdtop[4]->uuid; ?>"><?php echo $this->mdtop[4]->title; ?></a>
</li>
<li>
<a href="/data/<?php echo $this->mdtop[5]->uuid; ?>"><?php echo $this->mdtop[5]->title; ?></a>
</li>
</ul>
</div>
</div>
<div class="span4">
<div class="span4"><h4><a href="http://qherc.sanjiangyuan.org.cn">青海省生态环境遥感监测中心</a></h4></div>
<div class="span4">
<div style="padding-left:10px;">
<h4><a href="http://qherc.sanjiangyuan.org.cn">青海省生态环境遥感监测中心</a></h4>
<div class="data-block" style="background-position:0px -600px;width:350px;"></div>
</div>
</div>
@ -132,7 +145,7 @@
</div>
<div class="span4 data-unit">
<div class="well well-small">
<h4><a href="http://water.sanjiangyuan.org.cn">青海省水文水资源勘测</a></h4>
<h4><a href="http://water.sanjiangyuan.org.cn">青海省水文水资源局</a></h4>
<div class="data-block" style="background-position:0px -300px;">
</div>