修改首页内容调用方法

This commit is contained in:
wlx 2012-12-13 06:07:06 +00:00
parent 0d2afbff39
commit ced89f428c
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class HiwaterController extends DataController
$sql="select m.uuid,m.title,m.id,m.description from normalmetadata m left join thumbnail t on m.id=t.id where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and length(t.data)>2 order by random() limit 3"; $sql="select m.uuid,m.title,m.id,m.description from normalmetadata m left join thumbnail t on m.id=t.id where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and length(t.data)>2 order by random() limit 3";
$this->view->meatdata=$this->db->fetchAll($sql); $this->view->meatdata=$this->db->fetchAll($sql);
$archive = new Archive($this->db); $archive = new Archive($this->db);
$this->view->info = $archive->getOneArchive('HiWATER','about-theme'); $this->view->info = $archive->getOneArchive('HiWATER:黑河流域生态-水文过程综合遥感观测联合试验','about');
} }
/* /*