diff --git a/application/default/controllers/IndexController.php b/application/default/controllers/IndexController.php index 5114f108..1b288097 100755 --- a/application/default/controllers/IndexController.php +++ b/application/default/controllers/IndexController.php @@ -41,8 +41,8 @@ class IndexController extends Zend_Controller_Action //特色数据集 $sql="select * from datasetcd order by random()"; $this->view->datasetcd=$this->db->fetchRow($sql); - //下载最多数据(top 5) - $sql="select uuid,title,id from normalmetadata where id in (select m.id from normalmetadata m left join dataorder d on m.uuid=d.uuid where m.datatype=0 group by m.id order by count(d.uuid) desc limit 5)"; + //下载最多数据(top 6) + $sql="select uuid,title,id from normalmetadata where id in (select m.id from normalmetadata m left join dataorder d on m.uuid=d.uuid where m.datatype=0 group by m.id order by count(d.uuid) desc limit 6)"; $this->db->setFetchMode(Zend_Db::FETCH_OBJ); $this->view->mdtop=$this->db->fetchAll($sql); $sql="select uuid,title,id from normalmetadata where id in (select m.id from normalmetadata m left join dataorder d on m.uuid=d.uuid where m.datatype=1 group by m.id order by count(d.uuid) desc limit 5)"; diff --git a/application/default/views/scripts/index/index.phtml b/application/default/views/scripts/index/index.phtml index 6a7ff311..14ec1723 100755 --- a/application/default/views/scripts/index/index.phtml +++ b/application/default/views/scripts/index/index.phtml @@ -66,16 +66,16 @@