转换google maps到maps.google.cn地址,修复data/view数组错误

This commit is contained in:
wlx 2011-10-24 12:36:02 +00:00
parent 4fbbb80f1c
commit c01de2098e
3 changed files with 6 additions and 6 deletions

View File

@ -8,7 +8,7 @@
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
$this->breadcrumb('查看元数据');
$this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('http://maps.google.com/maps?file=api&v=2&key='.$this->config->google->maps->api);
$this->headScript()->appendFile('http://maps.google.cn/maps?file=api&v=2&key='.$this->config->google->maps->api);
$this->headScript()->appendFile('/js/prototype.js');
$this->headScript()->appendFile('/js/OpenLayers.js');
$this->headScript()->appendFile('/js/window.js');
@ -163,10 +163,10 @@ endforeach;
<h2>建议参考文献</h2>
<ol>
<?php foreach($this->ref as $ref) :
if (empty($ref['link']))
echo '<li>'.$ref['reference'].'</li>';
if (empty($ref->link))
echo '<li>'.$ref->reference.'</li>';
else
echo '<li>'.$ref['reference'].' <a href="'.$ref['link'].'">下载</a></li>';
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'">下载</a></li>';
endforeach;
?>
</ol>

View File

@ -10,7 +10,7 @@
$this->breadcrumb('<a href="/heihe/">数字黑河</a>');
$this->breadcrumb('查看元数据');
$this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('http://maps.google.com/maps?file=api&v=2&key='.$this->config->google->maps->api);
$this->headScript()->appendFile('http://maps.google.cn/maps?file=api&v=2&key='.$this->config->google->maps->api);
$this->headScript()->appendFile('/js/prototype.js');
$this->headScript()->appendFile('/js/OpenLayers.js');
$this->headScript()->appendFile('/js/window.js');

View File

@ -9,7 +9,7 @@
$this->breadcrumb('<a href="/water/">黑河综合遥感联合试验</a>');
$this->breadcrumb('查看试验元数据');
$this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('http://maps.google.com/maps?file=api&v=2&key='.$this->config->google->maps->api);
$this->headScript()->appendFile('http://maps.google.cn/maps?file=api&v=2&key='.$this->config->google->maps->api);
$this->headScript()->appendFile('/js/prototype.js');
$this->headScript()->appendFile('/js/OpenLayers.js');