减少首页新闻条数,更新水文局名称
This commit is contained in:
parent
2e905bcb69
commit
fa1c074a01
|
@ -71,7 +71,7 @@ class IndexController extends Zend_Controller_Action
|
|||
$this->view->news = $rows;
|
||||
|
||||
//$time = date("Y-m-d H:i:s",time());
|
||||
$sql = "SELECT * FROM archive WHERE is_pub=true AND ts_published<now() and id in (select ar_catalog.aid from ar_catalog left join ar_category on ar_catalog.cid=ar_category.id where ar_category.ptype='news') order by ts_published desc LIMIT 12 ";
|
||||
$sql = "SELECT * FROM archive WHERE is_pub=true AND ts_published<now() and id in (select ar_catalog.aid from ar_catalog left join ar_category on ar_catalog.cid=ar_category.id where ar_category.ptype='news') order by ts_published desc LIMIT 11 ";
|
||||
$sth = $this->db->query($sql);
|
||||
$rows = $sth->fetchAll(PDO::FETCH_BOTH);
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@
|
|||
</div>
|
||||
<div class="span4 data-unit">
|
||||
<div class="well well-small">
|
||||
<h4><a href="http://water.sanjiangyuan.org.cn">青海省水文水资源局</a></h4>
|
||||
<h4><a href="http://water.sanjiangyuan.org.cn">青海省水文水资源勘测局</a></h4>
|
||||
<div class="data-block" style="background-position:0px -300px;">
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue