62 lines
2.8 KiB
PHTML
62 lines
2.8 KiB
PHTML
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle($this->config->title->author);
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->headLink()->appendStylesheet('/css/author.css');
|
|
$this->theme->AppendPlus($this,'colorbox');
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
$this->breadcrumb('<a href="/author">数据作者</a>');
|
|
$this->breadcrumb('新建数据');
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
?>
|
|
<div class="row">
|
|
<div class="span3">
|
|
<?= $this->partial('author/navi.phtml'); ?>
|
|
</div>
|
|
<div class="span9">
|
|
|
|
<div>
|
|
<ul class="nav nav-pills">
|
|
<li class=""><a href="/author/newdata">未提交数据列表</a></li>
|
|
<li class=""><a class="iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
|
|
<li class="active"><a href="/author/newdata/ac/add-by-template">根据模板新建元数据</a></li>
|
|
<li class=""><a href="/author/newdata/ac/add-by-data">根据已有数据新建元数据</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div>
|
|
<h3>根据预制元数据模板创建数据</h3>
|
|
<div class="input-append">
|
|
<form id="datasearch" class="search_form" action="/author/newdata/ac/add-by-template">
|
|
<input class="span2" type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>">
|
|
<button class="btn" type="submit">搜索</button>
|
|
</form>
|
|
</div>
|
|
<?php
|
|
if (count($this->paginator)):
|
|
echo '<ul class="unstyled">';
|
|
$autoindex=0;
|
|
foreach ($this->paginator as $item):
|
|
$autoindex++;
|
|
?>
|
|
<li class="well">
|
|
<h4><?php echo $item['title'];?></h4>
|
|
<p>【<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>
|
|
| <a href="/service/geonetwork?url=metadata.show?id=<?php echo $item['id'];?>" target="_blank">查看此模板</a>
|
|
<?php endif; ?>
|
|
】</p>
|
|
</li>
|
|
<?php
|
|
endforeach;
|
|
echo "</ul>";
|
|
endif; ?>
|
|
</div>
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
|
</script>
|