首页增加最新DOI数据信息
This commit is contained in:
parent
5dc02f8840
commit
44b178502d
|
@ -84,7 +84,11 @@ class IndexController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->view->list_news = $rows;
|
$this->view->list_news = $rows;
|
||||||
|
|
||||||
|
$sql="select * from datadoi where ts_published is not null order by ts_published desc limit 4";
|
||||||
|
$sth = $this->db->query($sql);
|
||||||
|
$this->view->dois = $sth->fetchAll();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
.carousel-inner .item .featured-image-link{text-align:center;}
|
.carousel-inner .item .featured-image-link{text-align:center;}
|
||||||
.featured-image{min-width:100%;text-align:center; margin:auto 0px;/*min-height:100%;*/}
|
.featured-image{min-width:100%;text-align:center; margin:auto 0px;/*min-height:100%;*/}
|
||||||
</style>
|
</style>
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span5" id="main-news">
|
<div class="span5" id="main-news">
|
||||||
<h4><a href="archives">新闻</a></h4>
|
<h4><a href="archives">新闻</a></h4>
|
||||||
|
@ -49,7 +52,7 @@
|
||||||
</div>
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span6">
|
<div class="span4">
|
||||||
<h4>在线下载热门数据</h4>
|
<h4>在线下载热门数据</h4>
|
||||||
<ul class="unstyled">
|
<ul class="unstyled">
|
||||||
<?php foreach($this->mdtop as $i=>$md) : ?>
|
<?php foreach($this->mdtop as $i=>$md) : ?>
|
||||||
|
@ -58,8 +61,6 @@
|
||||||
</li>
|
</li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
|
||||||
<div class="span6">
|
|
||||||
<h4>离线申请热门数据</h4>
|
<h4>离线申请热门数据</h4>
|
||||||
<ul class="unstyled">
|
<ul class="unstyled">
|
||||||
<?php foreach($this->offlinemdtop as $i=>$md) : ?>
|
<?php foreach($this->offlinemdtop as $i=>$md) : ?>
|
||||||
|
@ -69,6 +70,16 @@
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="span8">
|
||||||
|
<h4>最新DOI数据</h4>
|
||||||
|
<ul class="unstyled">
|
||||||
|
<?php foreach($this->dois as $doi) :
|
||||||
|
echo '<li class="well well-small"><a href="/data/'.$doi->uuid.'">'.substr($doi->authors,1,-1).'. '.$doi->title.'. '.$doi->publisher.', '.date('Y',strtotime($doi->ts_published)).'. 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>
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
Loading…
Reference in New Issue