添加时空导航功能
This commit is contained in:
parent
5af52c8fdc
commit
85d46cfad3
|
@ -188,6 +188,12 @@ class WaterController extends DataController
|
|||
}
|
||||
}
|
||||
|
||||
function timemapAction()
|
||||
{
|
||||
$sql='select id,uuid,west,south,north,east,title,timebegin,timeend from metadata where source='0595169a-279e-4b95-819f-129d0ba4280d' and timebegin is not null';
|
||||
$this->view->rows=$this->db->fetchAll($sql);
|
||||
}
|
||||
|
||||
function timelineAction()
|
||||
{
|
||||
$fn="watertime.xml";
|
||||
|
|
|
@ -20,6 +20,7 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
<li><input type="submit" name="submit" id="submit" value="搜索"></li>
|
||||
<li><button type="button" onclick="show('keyword');return false;">试验数据的关键词列表</button></li>
|
||||
<li><button class="float" type="button" onclick="location.href='/water/timeline'">试验数据的时间轴导航</button></li>
|
||||
<li><button class="float" type="button" onclick="location.href='/water/timemap'">试验数据的时空联合导航</button></li>
|
||||
</form>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -6,7 +6,8 @@ $this->headTitle()->setSeparator(' - ');
|
|||
$this->headLink()->appendStylesheet('/css/metadata.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/data/timeline">时空导航</a>');
|
||||
$this->breadcrumb('<a href="/water/">黑河综合遥感联合试验</a>');
|
||||
$this->breadcrumb('时空联合导航');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->headScript()->appendFile('http://maps.google.com/maps?file=api&v=2&key=ABQIAAAACD-MqkkoOm60o_dvwdcKVhRBSKpgcP88GYi6r2Of16IkMX_4YhSBQsywCi4J2_fh4nBuWmK7gyRjLg');
|
||||
$this->headScript()->appendFile('/js/timeline_var.js');
|
||||
|
|
Loading…
Reference in New Issue