修改首页内容调用方法
This commit is contained in:
parent
0d2afbff39
commit
ced89f428c
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue