westdc-zf1/application/default/views/scripts/author/newdata-add.phtml

66 lines
2.6 KiB
PHTML

<?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');
$this->headLink()->appendStylesheet('/css/author.css');
$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>
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/import">导入元数据</a></li>
<li class="box-shadow active"><a class="text-shadow" href="/author/newdata/ac/add">新建元数据</a></li>
</ul>
</div>
<div id="datalist">
<h2>根据预制元数据模板创建数据</h2>
<ul>
<li><a href="/service/geonetwork?metadata.create?group=2&id=x" target="_blank">黑河流域矢量数据</a></li>
<li><a href="/service/geonetwork?metadata.create?group=2&id=x" target="_blank">黑河流域影像数据</a></li>
<li><a href="/service/geonetwork?metadata.create?group=2&id=x" target="_blank">黑河流域气象数据</a></li>
<li><a href="/service/geonetwork?metadata.create?group=2&id=x" target="_blank">黑河流域观测数据</a></li>
</ul>
<h2>根据已有元数据来创建数据</h2>
<form id="datasearch" class="search_form" action="/author/newdata/ac/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>
<?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?metadata.create?group=2&id=<?php echo $item['gid']; ?>">以此为模板新建</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>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
<!-- //页面内容 -->
<script>
$('#wapper').width($('body').width()-300);
</script>