首页青海湖数据,三江源数据调用。
This commit is contained in:
parent
a94251f401
commit
7164419963
|
@ -25,7 +25,7 @@
|
|||
<h4 class="box-title">最新数据</h4>
|
||||
<ul>
|
||||
<?php foreach($this->metadata as $k=>$v){ ?>
|
||||
<li><small style=" padding-right:10px;">[<?= $v['ts_published'] ?>]</small><a href="<?= $this->url('data/view',array('uuid'=>$v['uuid'])) ?>"><?= $v['title'] ?></a></li>
|
||||
<li><small style=" padding-right:10px;">[<?= $v['ts_created'] ?>]</small><a href="<?= $this->url('data/view',array('uuid'=>$v['uuid'])) ?>"><?= $v['title'] ?></a></li>
|
||||
<?php } ?>
|
||||
|
||||
<span class="pull-right" style="color:#000000; font-size:9px;">
|
||||
|
@ -44,7 +44,7 @@
|
|||
<div class="box">
|
||||
<h4 class="box-title">青海湖数据集</h4>
|
||||
<ul>
|
||||
<?php foreach($this->news as $k=>$v){ ?>
|
||||
<?php foreach($this->qinghaihu as $k=>$v){ ?>
|
||||
<li>
|
||||
<a href="<?= $this->url('news',array('category'=>$v['code'],'article'=>$v['id'])) ?>">
|
||||
<?= mb_strlen($v['title'],"UTF-8") > 27 ? mb_substr($v['title'],0,27,"UTF-8")."..." : $v['title'] ?>
|
||||
|
@ -61,7 +61,7 @@
|
|||
<div class="box">
|
||||
<h4 class="box-title">热门数据集</h4>
|
||||
<ul>
|
||||
<?php foreach($this->articles as $k=>$v){ ?>
|
||||
<?php foreach($this->metadata as $k=>$v){ ?>
|
||||
<li><a href="<?= $v['url'] ?>"><?= $v['title'] ?></a></li>
|
||||
<?php } ?>
|
||||
|
||||
|
@ -73,8 +73,8 @@
|
|||
<div class="span4">
|
||||
<div class="box">
|
||||
<h4 class="box-title">三江源数据集</h4>
|
||||
<ul>
|
||||
<?php foreach($this->articles as $k=>$v){ ?>
|
||||
<ul>
|
||||
<?php foreach($this->sanjiangyuan as $k=>$v){ ?>
|
||||
<li><a href="<?= $v['url'] ?>"><?= $v['title'] ?></a></li>
|
||||
<?php } ?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue