westdc-zf1/module/Application/view/application/index/index.phtml

84 lines
3.4 KiB
PHTML

<div class="row-fluid">
<div class="span4">
<div class="box">
<h4 class="box-title">新闻动态 </h4>
<ul>
<?php if(!empty($this->articles)) { ?>
<?php foreach($this->articles as $k=>$v){ ?>
<li>
<a href="<?= $this->url('news',array('category'=>$v['code'],'article'=>$v['id'])) ?>" title="<?= $v['title'] ?>">
<?= mb_strlen($v['title'],"UTF-8") > 27 ? mb_substr($v['title'],0,27,"UTF-8")."..." : $v['title'] ?>
</a>
</li>
<?php } ?>
<?php } ?>
<span class="pull-right" style="color:#000000; font-size:9px;">
<a href="/news/" class="more">更多>></a>
</span>
</ul>
</div>
</div>
<!-- /.span4 -->
<div class="span8">
<div class="box">
<h4 class="box-title">最新数据</h4>
<ul>
<?php foreach($this->metadata_latest as $k=>$v){ ?>
<li><small style=" padding-right:10px;">[<?= $v['ts_created'] ?>]</small><a href="<?= $this->url('data/view',array('uuid'=>$v['uuid'])) ?>" target="_self"><?= $v['title'] ?></a></li>
<?php } ?>
<span class="pull-right" style="color:#000000; font-size:9px;">
<a href="/data/browse?order=ts_created&sort=desc" class="more">更多>></a>
</span>
</ul>
</div>
</div><!-- /.span8 -->
</div><!-- /.row-fluid -->
<!-- Three columns of text below the carousel -->
<div class="row-fluid">
<div class="span4">
<div class="box">
<h4 class="box-title">青海湖数据集</h4>
<ul>
<?php foreach($this->qinghaihu as $k=>$v){ ?>
<li><a href="<?= $this->url('data/view',array('uuid'=>$v['uuid'])) ?>"target="_self"><i class="icon-hand-right"></i>&nbsp;<?= $v['title'] ?></a></li>
<?php } ?>
<span class="pull-right" style="color:#000000; font-size:9px;"><a href="/data/browse?source=青海湖" target="_self" class="more">更多>></a></span>
</ul>
</div>
</div>
<!-- /.span4 -->
<div class="span4">
<div class="box">
<h4 class="box-title">热门数据集</h4>
<ul>
<?php foreach($this->metadata as $k=>$v){ ?>
<li><a href="<?= $this->url('data/view',array('uuid'=>$v['uuid'])) ?>"target="_self"><i class="icon-hand-right"></i>&nbsp;<?= $v['title'] ?></a></li>
<?php } ?>
<span class="pull-right" style="color:#000000; font-size:9px;"><a href="/data/browse?order=viewedcount&order=desc" target="_self" class="more">更多>></a></span>
</ul>
</div>
</div>
<!-- /.span4 -->
<div class="span4">
<div class="box">
<h4 class="box-title">三江源数据集</h4>
<ul>
<?php foreach($this->sanjiangyuan as $k=>$v){ ?>
<li><a href="<?= $this->url('data/view',array('uuid'=>$v['uuid'])) ?>"target="_self"><i class="icon-hand-right"></i>&nbsp;<?= $v['title'] ?></a></li>
<?php } ?>
<span class="pull-right" style="color:#000000; font-size:9px;"><a href="/data/browse?source=三江源" target="_self" class="more">更多>></a></span>
</ul>
</div>
</div>
<!-- /.span4 -->
</div><!-- /.row-fluid -->