143 lines
6.4 KiB
PHTML
Executable File
143 lines
6.4 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');
|
||
?>
|
||
<div class="row">
|
||
<div class="span5" id="main-news">
|
||
<h4>新闻</h4>
|
||
<hr />
|
||
<ul class="news-list">
|
||
<?php foreach($this->list_news as $k=>$v){ ?>
|
||
<li><a href="<?= $v['url'] ?>"><?= $v['title'] ?></a><span class="pull-right" style="font-size:12px;">[<?= date("Y-m-d",strtotime($v['ts_published']))?>]</span></li>
|
||
<?php } ?>
|
||
</ul>
|
||
</div>
|
||
<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><a href="'.$v['url'].'">'.$v['title'].'</a><span class="pull-right">['.date("Y-m-d",strtotime($v['ts_published'])).']</span></h4>';
|
||
echo '<p>'.$v['description'].'</p></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>
|
||
<hr />
|
||
<div class="row">
|
||
<div class="span6">
|
||
<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>
|
||
</div>
|
||
<div class="span6">
|
||
<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>
|
||
</div>
|
||
</div>
|
||
<hr />
|
||
<div class="row">
|
||
<div class="span4">
|
||
<h4>专题数据集</h4>
|
||
<ul class="unstyled">
|
||
<li><a href="/heihe"><i class="icon-folder-open"></i>黑河计划数据管理中心</a></li>
|
||
<li><a href="/water"><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 class="item">
|
||
<a href="/data/category"><i class="icon-th-large"></i>分类浏览</a>
|
||
</li>
|
||
<li class="item">
|
||
<a href="/data/tag"><i class="icon-tags"></i>关键词导航</a>
|
||
</li>
|
||
<li class="item">
|
||
<a href="/data/series"><i class="icon-th-list"></i>数据集序列</a>
|
||
</li>
|
||
<li class="item">
|
||
<a href="/data/timeline"><i class="icon-calendar"></i>时间轴导航</a>
|
||
</li>
|
||
<li class="item">
|
||
<a href="/data/timemap"><i class="icon-globe"></i>时空导航</a>
|
||
</li>
|
||
<li class="item"><a href="/data/onlinelist"><i class="icon-th"></i>在线数据清单</a></li>
|
||
<li class="item"><a href="/data/offlinelist"><i class="icon-th"></i>离线数据清单</a></li>
|
||
<li class="item">
|
||
<a href="/data/advancesearch"><i class="icon-search"></i>高级搜索</a>
|
||
</li>
|
||
<li class="item"><form id="search" enctype="application/x-www-form-urlencoded" action="/search" method="get">
|
||
<input type="text" name="q" id="q" value="回车搜索标题和摘要" onfocus="myfocus(this);" onblur="myblur(this);">
|
||
<input type="hidden" name="submit" value="submit">
|
||
</form></li>
|
||
<script>
|
||
function myfocus(element) {
|
||
if (element.value == '回车搜索标题和摘要') {
|
||
element.value = '';
|
||
}
|
||
}
|
||
function myblur(element) {
|
||
if (element.value == '') {
|
||
element.value = '回车搜索标题和摘要';
|
||
}
|
||
}
|
||
</script>
|
||
</ul>
|
||
</div>
|
||
<div class="span4">
|
||
<h4>数据服务</h4>
|
||
-<span><a href="/data/offlineapp"><i class="icon-user"></i>最近20条离线数据服务记录</a></span><span>(共<?= $this->offlinenum; ?>)</span><br />
|
||
-<span><a href="/about/contact"><i class="icon-envelope"></i>联系我们</a></span>
|
||
<span><a href="/data/request"><i class="icon-tint"></i>如何申请数据</a></span>
|
||
<span><a href="/data/submit"><i class="icon-tint"></i>如何发布数据</a></span>
|
||
<h4>统计</h4>
|
||
<ul class="unstyled">
|
||
<li class="item"><span class="symbol">• </span>元数据 <strong>
|
||
<span><?php echo $this->metanum; ?></span></strong> 条</li>
|
||
<li class="item"><span class="symbol">• </span>在线数据 <strong><?php echo number_format($this->onlinesize/1000,2,'.',''); ?> GB</strong></li>
|
||
<li class="item"><span class="symbol">• </span>总数据 <strong><?php echo number_format(($this->onlinesize+$this->offlinesize)/1000,2,'.',''); ?> GB</strong></li>
|
||
<li class="item"><span class="symbol">• </span>总注册用户 <strong><span><?php echo $this->usernum; ?></span> </strong> 人</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<script>
|
||
$('.item').css('max-height',$('#main-news').height());
|
||
</script>
|