92 lines
4.6 KiB
PHTML
Executable File
92 lines
4.6 KiB
PHTML
Executable File
<?php
|
||
$this->headTitle($this->config->title->site);
|
||
$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%;*/}
|
||
</style>
|
||
<div class="row">
|
||
<div class="span7" id="feature-news">
|
||
<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>';
|
||
}
|
||
?>
|
||
</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>';
|
||
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 '<p>'.$v['description'].'</p>';
|
||
echo '</div></div>';
|
||
}
|
||
?>
|
||
</div>
|
||
<a class="left carousel-control" href="#myCarousel" data-slide="prev">‹</a>
|
||
<a class="right carousel-control" href="#myCarousel" data-slide="next">›</a>
|
||
</div>
|
||
</div>
|
||
<div class="span5" id="main-news">
|
||
<h4><a href="/archives/help/platform" class="pull-right"><i class="icon-book"></i>Help</a><a href="/archives"><i class="icon-calendar"></i>News & Events</a></h4>
|
||
<ul class="news-list">
|
||
<?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'] ?>"><?= $v['title'] ?></a></li>
|
||
<?php } ?>
|
||
</ul>
|
||
</div>
|
||
<hr />
|
||
<div class="span12">
|
||
<h4><i class="icon-folder-open"></i>Data Collections</h4>
|
||
<div class="span5 well well-small">
|
||
<h4>Watershed Allied Telemetry Experimental Research (WATER)</h4>
|
||
<img src="/images/WATER-256.png" class="img-circle pull-right" width=128/>
|
||
<p>WATER is an airborne, satellite- and ground-based integrated remote sensing experiment aiming to improve the observing ability of remote sensing technique, and understanding and predictability of hydrological and related ecological processes on catchment scale.</p>
|
||
<p><a class="btn btn-info" href="/water"><i class="icon-folder-open"></i>WATER</a></p>
|
||
</div>
|
||
<div class="span5 well well-small">
|
||
<h4>Heihe Watershed Allied Telemetry Experimental Research (HiWATER)</h4>
|
||
<img src="/images/hiwater-256.png" class="img-circle pull-right" width=128/>
|
||
<p>HiWATER is an eco-hydrological experiment designed from an interdisciplinary perspective to addresses problems including heterogeneity, scaling, uncertainty, and closing water cycle at the watershed scale. HiWATER was formally initialized in May 2012 and will last four years until 2015.</p>
|
||
<p><a class="btn btn-info" href="/hiwater"><i class="icon-folder-open"></i>HiWATER</a></p>
|
||
</div>
|
||
</div>
|
||
<div class="span12">
|
||
<h4><a href="/data/doi"><i class="icon-bolt"></i>Latest Datasets Published with DOI</a></h4>
|
||
<ul class="unstyled">
|
||
<?php foreach($this->dois as $doi) :
|
||
echo '<li class="well well-small">['.date('Y-m-d',strtotime($doi->ts_published)).']<a href="/data/'.$doi->uuid.'">'.str_replace('"','',substr($doi->author_en,1,-1)).'. '.$doi->title_en.'. '.$doi->publisher_en.', '.(empty($doi->publish_year)?date('Y',strtotime($doi->ts_published)):date('Y',strtotime($doi->publish_year))).'. doi:'.$doi->doi.'</a></li>';
|
||
endforeach;
|
||
?>
|
||
</ul>
|
||
</div>
|
||
<div class="span12 row">
|
||
<h4><i class="icon-sort-by-order"></i>Top 5 Downloaded Online Datasets</h4>
|
||
<ul class="unstyled">
|
||
<?php foreach($this->mdtop as $i=>$md) : ?>
|
||
<li><img src="/images/no<?php echo $i+1; ?>.gif" align="absmiddle" style="border-width:0px;" />
|
||
<a class="item" href="/data/<?php echo $md->uuid; ?>"><?php echo $md->title; ?></a>
|
||
</li>
|
||
<?php endforeach; ?>
|
||
</ul>
|
||
<h4><i class="icon-sort-by-order"></i>Top 5 Applied Offline Datasets</h4>
|
||
<ul class="unstyled">
|
||
<?php foreach($this->offlinemdtop as $i=>$md) : ?>
|
||
<li><img src="/images/no<?php echo $i+1; ?>.gif" align="absmiddle" style="border-width:0px;" />
|
||
<a class="item" href="/data/<?php echo $md->uuid; ?>"><?php echo $md->title; ?></a>
|
||
</li>
|
||
<?php endforeach; ?>
|
||
</ul>
|
||
|
||
</div>
|
||
</div>
|