136 lines
6.3 KiB
PHTML
Executable File
136 lines
6.3 KiB
PHTML
Executable File
<?php
|
||
$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%;*/}
|
||
</style>
|
||
<div class="row">
|
||
|
||
</div>
|
||
<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>帮助</a><a href="/archives"><i class="icon-calendar"></i>新闻</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>
|
||
</div>
|
||
<hr />
|
||
<div class="row">
|
||
<div class="span4">
|
||
<h4>在线下载热门数据</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>离线申请热门数据</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>
|
||
<h4>数据服务</h4>
|
||
<span><a href="/data/offlineapp"><i class="icon-user"></i>最近20条离线数据服务记录</a></span><span>(共<?= $this->offlinenum; ?>)</span><br />
|
||
<span><a href="/data/request"><i class="icon-tint"></i>如何申请数据</a></span>
|
||
<span><a href="/data/submit"><i class="icon-tint"></i>如何发布数据</a></span>
|
||
|
||
</div>
|
||
<div class="span8">
|
||
<h4><a href="/data/doi">最新注册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->authors,1,-1)).'. '.$doi->title.'. '.$doi->publisher.', '.(empty($doi->publish_year)?date('Y',strtotime($doi->ts_published)):date('Y',strtotime($doi->publish_year))).'. doi:'.$doi->doi.'</a></li>';
|
||
//echo ' ['.str_replace('"','',substr($md->author_en,1,-1)).'. '.$md->title_en.'. '.$md->publisher_en.', '.$md->publish_year.'. doi:'.$md->doi.']';
|
||
endforeach;
|
||
?>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<hr />
|
||
<div class="row">
|
||
<div class="span4">
|
||
<h4>专题数据集</h4>
|
||
<ul class="unstyled">
|
||
<li><a href="/hiwater" class="btn btn-danger"><i class="icon-folder-open"></i>黑河生态水文遥感试验(HiWATER)</a></li>
|
||
<li><a href="/heihe" class="btn"><i class="icon-folder-open"></i>黑河计划数据管理中心</a></li>
|
||
<li><a href="/water" class="btn"><i class="icon-folder-open"></i>黑河综合遥感联合试验(WATER)</a></li>
|
||
<li><a href="/haihe" class="btn"><i class="icon-folder-open"></i>海河流域多尺度地表通量与气象要素观测</a></li>
|
||
</ul>
|
||
<!-- <hr />
|
||
<h4>友情链接</h4>
|
||
<ul class="unstyled">
|
||
<li><a href="http://heihe.westgis.ac.cn" target="_blank"><i class="icon-share"></i>数字黑河</a></li>
|
||
<li><a href="http://web.nuist.edu.cn/DQKX/nadsc/" target="_blank"><i class="icon-share"></i>南京大气资料服务中心</a></li>
|
||
<li><a href="http://www.sciencedata.cn" target="_blank"><i class="icon-share"></i>科学数据共享工程</a></li>
|
||
</ul> -->
|
||
</div>
|
||
<div class="span4">
|
||
<h4>数据导航</h4>
|
||
<ul class="unstyled">
|
||
<li>
|
||
<a href="/data/category"><i class="icon-th-large"></i>分类浏览</a>
|
||
</li>
|
||
<li>
|
||
<a href="/data/tag"><i class="icon-tags"></i>关键词导航</a>
|
||
</li>
|
||
<li>
|
||
<a href="/data/series"><i class="icon-th-list"></i>数据集序列</a>
|
||
</li>
|
||
<li>
|
||
<a href="/data/timeline"><i class="icon-calendar"></i>时间轴导航</a>
|
||
</li>
|
||
<li>
|
||
<a href="/data/timemap"><i class="icon-globe"></i>时空导航</a>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
<div class="span4">
|
||
<h4>统计</h4>
|
||
<ul class="unstyled">
|
||
<li><span class="symbol">• </span>元数据 <strong>
|
||
<span><?php echo $this->metanum; ?></span></strong> 条</li>
|
||
<li><span class="symbol">• </span>在线数据 <strong><?php echo number_format($this->onlinesize/1000,2,'.',''); ?> GB</strong></li>
|
||
<li><span class="symbol">• </span>总数据 <strong><?php echo number_format(($this->onlinesize+$this->offlinesize)/1000,2,'.',''); ?> GB</strong></li>
|
||
<li><span class="symbol">• </span>总注册用户 <strong><span><?php echo $this->usernum; ?></span> </strong> 人</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|