64 lines
2.6 KiB
PHTML
64 lines
2.6 KiB
PHTML
|
<?php
|
||
|
$this->headTitle($this->config->title->site);
|
||
|
$this->headTitle('后台管理');
|
||
|
$this->headTitle()->setSeparator(' - ');
|
||
|
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||
|
$this->headLink()->appendStylesheet('/css/author.css');
|
||
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
||
|
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
||
|
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
||
|
$this->breadcrumb('<a href="/">首页</a>');
|
||
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
||
|
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
|
||
|
$this->breadcrumb('新建元数据');
|
||
|
$this->breadcrumb()->setSeparator(' > ');
|
||
|
?>
|
||
|
<!-- 左侧导航 -->
|
||
|
<div id='leftPanel'>
|
||
|
<?= $this->partial('data/left.phtml'); ?>
|
||
|
</div>
|
||
|
<!-- //左侧导航 -->
|
||
|
|
||
|
<!-- 页面内容 -->
|
||
|
<div id="rightPanel">
|
||
|
<div id="tabs-controller">
|
||
|
<ul>
|
||
|
<li class="box-shadow"><a class="text-shadow" href="/admin/data/newdata">未提交数据列表</a></li>
|
||
|
<li class="box-shadow"><a class="text-shadow iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
|
||
|
<li class="box-shadow active"><a class="text-shadow" href="/admin/data/newdata/ac/add-by-template">根据模板新建元数据</a></li>
|
||
|
<li class="box-shadow"><a class="text-shadow" href="/admin/data/newdata/ac/add-by-data">根据已有数据新建元数据</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
<div id="datalist">
|
||
|
<h2>根据预制元数据模板创建数据</h2>
|
||
|
<form id="datasearch" class="search_form" action="/admin/data/newdata/ac/add-by-template">
|
||
|
<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>
|
||
|
<?php
|
||
|
if (count($this->paginator)):
|
||
|
echo "<ul>";
|
||
|
$autoindex=0;
|
||
|
foreach ($this->paginator as $item):
|
||
|
$autoindex++;
|
||
|
?>
|
||
|
<li>
|
||
|
<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>
|
||
|
| <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>
|
||
|
】</p>
|
||
|
</li>
|
||
|
<?php
|
||
|
endforeach;
|
||
|
echo "</ul>";
|
||
|
endif; ?>
|
||
|
</div>
|
||
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||
|
</div>
|
||
|
<!-- //页面内容 -->
|
||
|
<script>
|
||
|
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||
|
$('#wapper').width($('body').width()-300);
|
||
|
</script>
|