67 lines
3.0 KiB
PHTML
67 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');
|
|
$this->nav[] = array('link'=>"/heihe/submit",'title'=>'数据汇交');
|
|
?>
|
|
<?= $this->render('breadcrumbs.phtml') ?>
|
|
<div class="row">
|
|
<div class="span2">
|
|
<?= $this->partial('heihe/navi.phtml'); ?>
|
|
</div>
|
|
<div class="span10">
|
|
<?php if(!empty($this->error)) {?>
|
|
<div id="intro"><?php echo $this->error;?></div>
|
|
<?php }else{?>
|
|
<div>
|
|
<ul class="nav nav-tabs">
|
|
<li><a href="/heihe/submit/ac/unsubmit">未提交元数据</a></li>
|
|
<li class="active"><a href="/heihe/submit/ac/newdata">根据模板创建元数据</a></li>
|
|
<li><a href="/heihe/submit/ac/newdata/do/add">根据已有数据创建元数据</a></li>
|
|
<li><a class="iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
|
|
</ul>
|
|
</div>
|
|
<div>
|
|
<h2>根据预制元数据模板创建数据</h2>
|
|
<div class="input-append">
|
|
<form id="datasearch" class="search_form" action="/submit/newdata/">
|
|
<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['id']); ?>" target="_blank">以此为模板新建</a>
|
|
<?php if ($this->isadmin || $item['isowner']==0) : ?>
|
|
| <a href="/service/geonetwork?url=metadata.edit?id=<?php echo $item['id'];?>" target="_blank">修改此模板</a>
|
|
<?php endif; ?>
|
|
】</p>
|
|
</li>
|
|
<?php
|
|
endforeach;
|
|
echo "</ul>";
|
|
endif; ?>
|
|
</div>
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
<?php } ?>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript" charset="utf-8">
|
|
$(document).ready(function(){
|
|
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
|
});
|
|
</script>
|