65 lines
3.0 KiB
PHTML
65 lines
3.0 KiB
PHTML
<?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="/heihe/">'.$this->config->title->heihe.'</a>');
|
|
$this->breadcrumb('新建元数据');
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
$this->theme->AppendPlus($this,'colorbox');
|
|
?>
|
|
<div class="row">
|
|
<div class="span2">
|
|
<?= $this->partial('heihe/navi.phtml'); ?>
|
|
</div>
|
|
<div class="span10">
|
|
<div><?= $this->breadcrumb() ?> </div>
|
|
<?php if(!empty($this->error)) {?>
|
|
<div id="intro"><?php echo $this->error;?></div>
|
|
<?php }else{?>
|
|
<div>
|
|
<ul class="nav nav-pills">
|
|
<li><a href="/heihe/submit/">汇交计划首页</a></li>
|
|
<li><a href="/heihe/submit/ac/newdata">根据模板创建元数据</a></li>
|
|
<li class="active"><a href="/heihe/submit/ac/newdata/do/add">根据已有数据创建元数据</a></li>
|
|
<li><a class="iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
|
|
<li><a href="/heihe/submit/ac/unsubmit">未提交元数据</a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="datalist">
|
|
<h2>根据已有元数据来创建数据</h2>
|
|
<div class="input-append">
|
|
<form id="datasearch" class="search_form" action="/heihe/submit/ac/newdata/do/add">
|
|
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
|
<button type="submit" class="btn" id="search_btn">搜索</button>
|
|
</form>
|
|
</div>
|
|
<?php
|
|
if (count($this->paginator)):
|
|
echo '<ul class="unstyled">';
|
|
$autoindex=0;
|
|
foreach ($this->paginator as $item):
|
|
$autoindex++;
|
|
?>
|
|
<li class="well well-small">
|
|
<p><span class="title"><?php echo $item['title'];?></span>
|
|
【<a href="/service/geonetwork?url=metadata.create?group=2<?php echo urlencode('&id='.$item['gid']); ?>" target="_blank">以此为模板新建</a>
|
|
| <a href="/data/<?php echo $item['uuid'];?>" target="_blank">查看数据</a>】</p>
|
|
<p><?php echo mb_strlen($item['description'])>400?$this->escape(mb_substr($item['description'],0,400,'UTF-8').'...'):$this->escape($item['description']); ?></p>
|
|
</li>
|
|
<?php
|
|
endforeach;
|
|
echo "</ul>";
|
|
endif; ?>
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
</div>
|
|
<?php } ?>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript" charset="utf-8">
|
|
$(document).ready(function(){
|
|
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
|
});
|
|
</script>
|