添加响应HTML,修改数据查看界面

This commit is contained in:
wlx 2010-06-27 23:41:00 +00:00
parent 4c987f61b8
commit 2e36a390f0
10 changed files with 235 additions and 67 deletions

View File

@ -86,7 +86,7 @@ else
echo $this->doc;
}?>">数据说明文档</a></li>
<?php endif; ?>
<li id="datatype">数据类型<?php if ($md->datatype) print "离线(可免费申请)"; else print "在线(可直接下载)";?></li>
<li id="datatype">数据共享方式<?php if ($md->datatype) print "离线(可免费申请)"; else print "在线(可直接下载)";?></li>
</ul>
<div id="linkurl">
<?php if (!$md->datatype) : ?>
@ -176,7 +176,7 @@ endforeach;
<?php endif; ?>
<?php if ($md->suppinfo) : ?>
<h2>项目支持信息</h2>
<p><?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?></p>
<?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?>
<?php endif; ?>
<?php if ($this->resources) : ?>
<h2>其他在线资源</h2>

View File

@ -0,0 +1,33 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/water.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
$this->breadcrumb('<a href="/water/">黑河综合遥感联合试验</a>');
$this->breadcrumb('成像光谱仪');
$this->breadcrumb()->setSeparator(' > ');
?>
<div id='sidebar'>
<div id='leftnavi'>
<?= $this->partial('water/navi.phtml'); ?>
</div>
</div>
<div id='right'>
<div id="intro">
</div>
<hr />
<?php if ($this->metadata) : ?>
<?php echo $this->page->getNavigation(); ?>
<div id="mdlist">
<ol>
<?php foreach($this->metadata as $md) : ?>
<li><a href="/water/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
<?php endforeach; ?>
</ol>
</div>
<?php endif; ?>
</div>

View File

@ -28,7 +28,7 @@ $this->breadcrumb()->setSeparator(' > ');
<?php if ($this->metadata) : ?>
<?php echo $this->page->getNavigation(); ?>
<div id="mdlist">
<ol>
<ol start="<?php echo $this->offset; ?>">
<?php foreach($this->metadata as $md) : ?>
<li><a href="/water/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
<?php endforeach; ?>

View File

@ -0,0 +1,49 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/water.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
$this->breadcrumb('<a href="/water/">黑河综合遥感联合试验</a>');
$this->breadcrumb('试验文档');
$this->breadcrumb()->setSeparator(' > ');
?>
<div id='sidebar'>
<div id='leftnavi'>
<?= $this->partial('water/navi.phtml'); ?>
</div>
</div>
<div id='right'>
<div id="intro">
<h3>参考文献:</h3>
<p>李新,马明国,王建,刘强,车涛,胡泽勇,肖青,柳钦火,苏培玺,楚荣忠,晋锐,
王维真,冉有华。黑河流域遥感-地面观测同步试验:科学目标与试验方案。地球科学
进展2008, 23(9): 897-914. <a href="/images/water/water_04.pdf">下载</a></p>
<p>Li X, Li XW, Li ZY, Ma MG, Wang J, Xiao Q, Liu Q, Che T, Chen EX, Yan GJ, Hu
ZY, Zhang LX, Chu RZ, Su PX, Liu QH, Liu SM, Wang JD, Niu Z, Chen Y, Jin R,
Wang WZ, Ran YH, Xin XZ, Ren HZ. Watershed Allied Telemetry Experimental
Research. Journal of Geophysical Research, 2009, 114(D22103),
doi:10.1029/2008JD011590. <a href="/images/water/water_02.pdf">下载</a>
</p>
<p>马明国,刘强,阎广建,陈尔学,肖青,苏培玺,胡泽勇,李新,牛铮,王维真,钱金波,宋怡,丁松爽,辛晓洲,任华忠,黄春林,晋锐,车涛,楚荣忠。
黑河流域遥感-地面观测同步试验:森林水文和中游干旱区水文试验。地球科学进展,2009,24(7):681-695. <a href="/images/water/water_01.pdf">下载</a>
</p>
<p>王建,车涛,张立新,晋锐,王维真,李新,梁继,郝小华,李弘毅,吴月茹。
黑河流域上游寒区水文遥感地面同步观测试验介绍。冰川冻土2009, 31(2): 189-197. <a href="/images/water/water_03.pdf">下载</a>
</p>
<h3>设计文档</h3>
</div>
<hr />
<?php if ($this->metadata) : ?>
<?php echo $this->page->getNavigation(); ?>
<div id="mdlist">
<ol>
<?php foreach($this->metadata as $md) : ?>
<li><a href="/water/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
<?php endforeach; ?>
</ol>
</div>
<?php endif; ?>
</div>

View File

@ -14,7 +14,17 @@ $this->breadcrumb()->setSeparator(' > ');
</div>
</div>
<div id='right'>
<div class="tools">
<ul><form id="search" enctype="application/x-www-form-urlencoded" action="/water/search" method="post">
<li><input type="text" name="q" id="q" value="输入关键词搜索标题和摘要" onfocus="myfocus(this);" onblur="myblur(this);"></li>
<li><input type="submit" name="submit" id="submit" value="搜索"></li>
<li><button onclick="show('keyword');return false;">试验数据的关键词列表</button></li>
<li><button class="float" onclick="location.href='/water/timeline'">试验数据的时间轴导航</button></li>
</form>
</ul>
</div>
<div id="intro">
<img width="400" src="/images/water/water.jpg" />
<p>
“黑河综合遥感联合试验”是由中国科学院西部行动计划(二期)项目“黑河流域遥感
-地面观测同步试验与综合模拟平台建设”与国家重点基础研究发展计划973计划
@ -57,23 +67,7 @@ $this->breadcrumb()->setSeparator(' > ');
<p>
“黑河综合遥感联合试验”主要由中国科学院寒区旱区环境与工程研究所、中国科学院遥感应用研究所、北京师范大学地理学与遥感科学学院和中国林业科学研究院资源信息研究所组织实施另有中国科学院上海技术物理研究所等28家同行单位参加试验同时试验的完成离不开张掖气象局甘肃省祁连山水源涵养林研究院、张掖水务局、甘肃省张掖市政府、青海省祁连县政府及当地群众的热情支持。
</p>
<h3>参考文献:</h3>
<p>李新,马明国,王建,刘强,车涛,胡泽勇,肖青,柳钦火,苏培玺,楚荣忠,晋锐,
王维真,冉有华。黑河流域遥感-地面观测同步试验:科学目标与试验方案。地球科学
进展2008, 23(9): 897-914. <a href="/images/water/water_04.pdf">下载</a></p>
<p>Li X, Li XW, Li ZY, Ma MG, Wang J, Xiao Q, Liu Q, Che T, Chen EX, Yan GJ, Hu
ZY, Zhang LX, Chu RZ, Su PX, Liu QH, Liu SM, Wang JD, Niu Z, Chen Y, Jin R,
Wang WZ, Ran YH, Xin XZ, Ren HZ. Watershed Allied Telemetry Experimental
Research. Journal of Geophysical Research, 2009, 114(D22103),
doi:10.1029/2008JD011590. <a href="/images/water/water_02.pdf">下载</a>
</p>
<p>马明国,刘强,阎广建,陈尔学,肖青,苏培玺,胡泽勇,李新,牛铮,王维真,钱金波,宋怡,丁松爽,辛晓洲,任华忠,黄春林,晋锐,车涛,楚荣忠。
黑河流域遥感-地面观测同步试验:森林水文和中游干旱区水文试验。地球科学进展,2009,24(7):681-695. <a href="/images/water/water_01.pdf">下载</a>
</p>
<p>王建,车涛,张立新,晋锐,王维真,李新,梁继,郝小华,李弘毅,吴月茹。
黑河流域上游寒区水文遥感地面同步观测试验介绍。冰川冻土2009, 31(2): 189-197. <a href="/images/water/water_03.pdf">下载</a>
</p>
<div class="more"><a href="http://water.westgis.ac.cn/">详细信息>></a></div>
</div>
<hr />
<div id='links'>
@ -100,14 +94,7 @@ function show(s){
</script>
<button onclick="show('keyword');return false;">试验数据的关键词列表</button>
<button onclick="location.href='/water/timeline'">试验数据的时间轴导航</button>
<form id="search" enctype="application/x-www-form-urlencoded" action="/water/search" method="post"><ul>
<li class="element-group">
<input type="text" name="q" id="q" value="输入关键词搜索标题和摘要" onfocus="myfocus(this);" onblur="myblur(this);"></li>
<li class="submit-group">
<input type="submit" name="submit" id="submit" value="搜索"></li>
</ul></form>
<div id='keyword'>
<?php
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');

View File

@ -0,0 +1,33 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/water.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
$this->breadcrumb('<a href="/water/">黑河综合遥感联合试验</a>');
$this->breadcrumb('WiDAS');
$this->breadcrumb()->setSeparator(' > ');
?>
<div id='sidebar'>
<div id='leftnavi'>
<?= $this->partial('water/navi.phtml'); ?>
</div>
</div>
<div id='right'>
<div id="intro">
</div>
<hr />
<?php if ($this->metadata) : ?>
<?php echo $this->page->getNavigation(); ?>
<div id="mdlist">
<ol>
<?php foreach($this->metadata as $md) : ?>
<li><a href="/water/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
<?php endforeach; ?>
</ol>
</div>
<?php endif; ?>
</div>

View File

@ -31,6 +31,14 @@
<li><a href="/water/airsounding">探空观测</a></li>
</ul>
</li>
<li><a href="/water/airebone">航空遥感</a></li>
<li><a href="/water/airebone">航空遥感</a>
<ul>
<li><a href="/water/radiometer">机载微波辐射计</a></li>
<li><a href="/water/lidar">激光雷达</a></li>
<li><a href="/water/widas">WiDAS</a></li>
<li><a href="/water/asd">成像光谱仪</a></li>
</ul>
</li>
<li><a href="/water/satellite">卫星遥感</a></li>
</ul>
<ul><li><a href="/water/document">试验文档</a></li></ul>

View File

@ -0,0 +1,33 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/water.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
$this->breadcrumb('<a href="/water/">黑河综合遥感联合试验</a>');
$this->breadcrumb('机载微波辐射计');
$this->breadcrumb()->setSeparator(' > ');
?>
<div id='sidebar'>
<div id='leftnavi'>
<?= $this->partial('water/navi.phtml'); ?>
</div>
</div>
<div id='right'>
<div id="intro">
</div>
<hr />
<?php if ($this->metadata) : ?>
<?php echo $this->page->getNavigation(); ?>
<div id="mdlist">
<ol>
<?php foreach($this->metadata as $md) : ?>
<li><a href="/water/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
<?php endforeach; ?>
</ol>
</div>
<?php endif; ?>
</div>

View File

@ -3,9 +3,10 @@
$this->headTitle($this->config->title->data);
$this->headTitle('数据查看');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdview.css');
$this->headLink()->appendStylesheet('/css/watermdview.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/water">'.$this->config->title->data.'</a>');
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
$this->breadcrumb('<a href="/water/">黑河综合遥感联合试验</a>');
$this->breadcrumb('查看试验元数据');
$this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/prototype.js');
@ -17,9 +18,7 @@
<h1><?php echo $this->escape($md->title);
if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
</h1>
<table width=100%><tr><td>
<div id="ImageViewer"><img src="/data/thumb/id/<?php echo $md->id;?>" /> </div>
</td><td valign="top" align="middle">
<div id="right">
<div id="ItemSummary">
<div id="category">
<ul><?php foreach($this->category as $cat): ?>
@ -56,11 +55,14 @@ echo '</ul></div>';
<ul id=OtherInfo>
<li id="filesize">数据大小:<?php echo $md->filesize; ?>MB</li>
<?php if ($md->fileformat) : ?>
<li id="fileformat">数据格式:<?php echo $md->fileformat; ?></li>
<?php endif; ?>
<?php if ($this->downloaded>9) :?>
<li id="downtimes">下载:<?php echo $this->downloaded; ?></li>
<?php endif; ?>
<li id="viewtimes">浏览量:<?php echo $this->viewed; ?></li>
<!--
<?php if ($md->projection) : ?>
<li id="projection" title="<?= $this->projection; ?>">数据投影:
<?php
@ -75,6 +77,7 @@ else
}
?></li>
<?php endif; ?>
-->
<?php if (!empty($md->timebegin)) : ?>
<li id="datatimes">数据时间范围:<?php echo date('Y-m-d',strtotime($md->timebegin));if (!empty($md->timeend)) echo " 至 ".date('Y-m-d',strtotime($md->timeend)); ?></li>
<?php endif; ?>
@ -87,7 +90,7 @@ else
echo $this->doc;
}?>">数据说明文档</a></li>
<?php endif; ?>
<li id="datatype">数据类型<?php if ($md->datatype) print "离线(可免费申请)"; else print "在线(可直接下载)";?></li>
<li id="datatype">数据共享方式<?php if ($md->datatype) print "离线(可免费申请)"; else print "在线(可直接下载)";?><a href="#" id="show-list" rel="<?php echo $md->uuid;?>">文件列表</a></li>
</ul>
<div id="linkurl">
<?php if (!$md->datatype) : ?>
@ -97,12 +100,15 @@ else
</div>
</div>
</td><td valign="top">
<hr />
<h2>位置图</h2>
<div id='map'></div>
<div id="authors">
<h2>联系人</h2>
<ul>
<?php
$party_zh=array('resourceProvider'=>'资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'调查者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者');
$party_zh=array('resourceProvider'=>'资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者');
$r='';
$i=0;
foreach($this->authors as $k=>$author) :
@ -125,29 +131,24 @@ if ($k+1==count($this->authors)) echo '</li>';
endforeach;
?>
</ul>
<h2>其他信息</h2><ul>
<ul>
<li>元数据更新时间:<?php print date('Y-m-d',strtotime($md->ts_created)); ?></li>
<li><a href="/data/detail/id/<?php echo $md->id;?>">详细元数据</a></li>
<!--<li><a href="/data/detail/id/<?php echo $md->id;?>">详细元数据</a></li>-->
<li><a href="/data/xml/id/<?php echo $md->id;?>"><img src="/images/xml.gif" alt="查看XML源文件"></a></li>
<li><a href="#" id="show-list" rel="<?php echo $md->uuid;?>">文件列表</a></li>
<li></li>
</ul>
</div>
</td></tr></table>
<script type="text/javascript">
(function(a, b) {
var ah=document.getElementById(a).offsetHeight, bh=document.getElementById(b).offsetHeight;
if (ah > bh) document.getElementById(b).style.height = ah + 'px';
})('ItemSummary', 'ImageViewer');
</script>
<div style="clear:both;border-top:0px solid transparent !important;"></div>
<hr />
<div id='map'></div>
</div>
<div id="left">
<div id="ImageViewer"><img src="/data/thumb/id/<?php echo $md->id;?>" /> </div>
<div id="abstract">
<p>
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md->description);?>
</p>
</div>
<hr />
<div id="cite">
<?php if ($md->citation) : ?>
<h2>本数据引用方式</h2>
@ -177,7 +178,7 @@ endforeach;
<?php endif; ?>
<?php if ($md->suppinfo) : ?>
<h2>项目支持信息</h2>
<p><?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?></p>
<?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?>
<?php endif; ?>
<?php if ($this->resources) : ?>
<h2>其他在线资源</h2>
@ -196,20 +197,7 @@ endforeach;
<?php endif; ?>
</div>
<?php if ($this->documents) : ?>
<div id="documents">
<h2>相关文档</h2>
<ul>
<?php foreach ($this->documents as $r) : ?>
<li><a href="/data/<?= $r['uuid']; ?>"><?= $r['title']; ?></a></li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<hr />
<div id="comment">
<h2>数据评论</h2>
<div id="allcomments">
@ -240,6 +228,10 @@ function reportError(request)
</script>
<?php echo $this->commentForm; ?>
</div>
</div>
<!--westdc.westgis.ac.cn-->
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAACD-MqkkoOm60o_dvwdcKVhRBSKpgcP88GYi6r2Of16IkMX_4YhSBQsywCi4J2_fh4nBuWmK7gyRjLg"></script>
<!--test.westgis.ac.cn
@ -252,7 +244,7 @@ function reportError(request)
zoomlevel--;
if (zoomlevel>16) zoomlevel=16;
map.setCenter(new GLatLng(<?= ($md->south+$md->north)/2; ?>,<?= ($md->east+$md->west)/2; ?>), zoomlevel);
map.setMapType(G_PHYSICAL_MAP);
map.setMapType(G_SATELLITE_MAP);
map.setUIToDefault();
var polygon=new GPolygon([

View File

@ -0,0 +1,33 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/water.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
$this->breadcrumb('<a href="/water/">黑河综合遥感联合试验</a>');
$this->breadcrumb('激光雷达');
$this->breadcrumb()->setSeparator(' > ');
?>
<div id='sidebar'>
<div id='leftnavi'>
<?= $this->partial('water/navi.phtml'); ?>
</div>
</div>
<div id='right'>
<div id="intro">
</div>
<hr />
<?php if ($this->metadata) : ?>
<?php echo $this->page->getNavigation(); ?>
<div id="mdlist">
<ol>
<?php foreach($this->metadata as $md) : ?>
<li><a href="/water/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
<?php endforeach; ?>
</ol>
</div>
<?php endif; ?>
</div>