修正时间轴浏览功能
This commit is contained in:
parent
f0d46d01ca
commit
6d887035db
|
@ -87,15 +87,26 @@ function show(s){
|
||||||
else
|
else
|
||||||
showid.style.display="none";
|
showid.style.display="none";
|
||||||
}
|
}
|
||||||
|
function myfocus(element) {
|
||||||
|
if (element.value == element.defaultValue) {
|
||||||
|
element.value = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function myblur(element) {
|
||||||
|
if (element.value == '') {
|
||||||
|
element.value = element.defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<form id="search" enctype="application/x-www-form-urlencoded" action="/water/search" method="post"><ul>
|
<form id="search" enctype="application/x-www-form-urlencoded" action="/water/search" method="post"><ul>
|
||||||
<li class="element-group">
|
<li class="element-group">
|
||||||
<input type="text" name="q" id="q" value=""></li>
|
<input type="text" name="q" id="q" value="输入关键词搜索标题和摘要" onfocus="myfocus(this);" onblur="myblur(this);"></li>
|
||||||
<li class="submit-group">
|
<li class="submit-group">
|
||||||
<input type="submit" name="submit" id="submit" value="搜索"></li>
|
<input type="submit" name="submit" id="submit" value="搜索"></li>
|
||||||
<li><button onclick="show('keyword');return false;">试验数据的关键词列表</button></li>
|
|
||||||
<li><button onclick="location.href='/water/timeline'">试验数据的时间轴导航</button></li>
|
|
||||||
</ul></form>
|
</ul></form>
|
||||||
|
<button onclick="show('keyword');return false;">试验数据的关键词列表</button>
|
||||||
|
<button onclick="location.href='/water/timeline'">试验数据的时间轴导航</button>
|
||||||
<div id='keyword'>
|
<div id='keyword'>
|
||||||
<?php
|
<?php
|
||||||
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');
|
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');
|
||||||
|
|
|
@ -11,9 +11,6 @@ $this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||||
$this->breadcrumb('快速搜索');
|
$this->breadcrumb('快速搜索');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<div id='tools'>
|
|
||||||
<?= $this->partial('data/tools.phtml'); ?>
|
|
||||||
</div>
|
|
||||||
<?php echo $this->form; ?>
|
<?php echo $this->form; ?>
|
||||||
<?php if (!empty($this->metadata)) : ?>
|
<?php if (!empty($this->metadata)) : ?>
|
||||||
<?php echo $this->page->getNavigation();
|
<?php echo $this->page->getNavigation();
|
||||||
|
|
Loading…
Reference in New Issue