2012-03-28 10:23:32 +00:00
|
|
|
<?php
|
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
$this->headTitle($this->config->title->author);
|
|
|
|
$this->headTitle()->setSeparator(' - ');
|
|
|
|
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
2012-04-17 09:16:00 +00:00
|
|
|
$this->headLink()->appendStylesheet('/css/author.css');
|
|
|
|
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
|
|
|
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
2012-03-28 10:23:32 +00:00
|
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
|
|
$this->breadcrumb('<a href="/author">数据作者</a>');
|
|
|
|
$this->breadcrumb('新建数据');
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
|
|
?>
|
|
|
|
<!-- 左侧导航 -->
|
|
|
|
<div id='sidebar'>
|
|
|
|
<div id='leftnavi'>
|
|
|
|
<?= $this->partial('author/navi.phtml'); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- //左侧导航 -->
|
|
|
|
|
|
|
|
<!-- 页面内容 -->
|
|
|
|
<div id="wapper">
|
|
|
|
<div id="tabs-controller">
|
|
|
|
<ul>
|
|
|
|
<li class="box-shadow"><a class="text-shadow" href="/author/newdata">未提交数据列表</a></li>
|
2012-04-17 09:16:00 +00:00
|
|
|
<li class="box-shadow"><a class="text-shadow iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
|
2012-05-04 16:26:03 +00:00
|
|
|
<li class="box-shadow active"><a class="text-shadow" href="/author/newdata/ac/add-by-template">根据模板新建元数据</a></li>
|
|
|
|
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/add-by-data">根据已有数据新建元数据</a></li>
|
2012-03-28 10:23:32 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="datalist">
|
|
|
|
<h2>根据预制元数据模板创建数据</h2>
|
2012-05-04 16:26:03 +00:00
|
|
|
<form id="datasearch" class="search_form" action="/author/newdata/ac/add-by-template">
|
2012-03-28 10:23:32 +00:00
|
|
|
<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++;
|
2012-05-04 16:26:03 +00:00
|
|
|
?>
|
|
|
|
<li>
|
2012-03-28 10:23:32 +00:00
|
|
|
<p><span class="title"><?php echo $item['title'];?></span>
|
2012-05-04 16:26:03 +00:00
|
|
|
【<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>
|
2012-03-28 10:23:32 +00:00
|
|
|
</li>
|
|
|
|
<?php
|
|
|
|
endforeach;
|
|
|
|
echo "</ul>";
|
|
|
|
endif; ?>
|
|
|
|
</div>
|
|
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
|
|
</div>
|
|
|
|
<!-- //页面内容 -->
|
2012-04-17 09:16:00 +00:00
|
|
|
<script>
|
|
|
|
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
2012-03-28 10:23:32 +00:00
|
|
|
$('#wapper').width($('body').width()-300);
|
|
|
|
</script>
|