56 lines
2.2 KiB
PHTML
56 lines
2.2 KiB
PHTML
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle($this->config->title->submit);
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
|
$this->headLink()->appendStylesheet('/css/author.css');
|
|
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
|
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
$this->breadcrumb('<a href="/submit">数据汇交</a>');
|
|
$this->breadcrumb('新建数据');
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
?>
|
|
<div id="page">
|
|
<div class="subnav">
|
|
<?= $this->partial('submit/navi.phtml'); ?>
|
|
</div>
|
|
|
|
<!-- 页面内容 -->
|
|
<div id="wapper">
|
|
<div id="tabs-controller">
|
|
<ul>
|
|
<li class="box-shadow"><a class="text-shadow" href="/submit/newdata">根据模板创建元数据</a></li>
|
|
<li class="box-shadow active"><a class="text-shadow" href="/submit/newdata/ac/add">根据已有数据创建元数据</a></li>
|
|
<li class="box-shadow"><a class="text-shadow iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div id="datalist">
|
|
<h2>根据已有元数据来创建数据</h2>
|
|
<form id="datasearch" class="search_form" action="/submit/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?url=metadata.create?group=2<?php echo urlencode('&id='.$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>
|
|
<!-- //页面内容 -->
|
|
</div>
|