88 lines
3.9 KiB
PHTML
88 lines
3.9 KiB
PHTML
<?php
|
||
$this->headTitle($this->config->title->site);
|
||
$this->headTitle('后台管理');
|
||
$this->headTitle()->setSeparator(' - ');
|
||
$this->headLink()->appendStylesheet('/css/admin.css');
|
||
$this->breadcrumb('<a href="/">首页</a>');
|
||
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
||
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
|
||
$this->breadcrumb('元数据管理</a>');
|
||
$this->breadcrumb()->setSeparator(' > ');
|
||
$this->theme->AppendPlus($this,'colorbox');
|
||
?>
|
||
<div id="leftPanel">
|
||
<?= $this->partial('data/left.phtml'); ?>
|
||
</div>
|
||
<div id="rightPanel">
|
||
<?php if ($this->msg or $this->messages) :?>
|
||
<div id="message">
|
||
<?php if ($this->msg) : ?>
|
||
<p><?php echo $this->msg; ?></p>
|
||
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
||
<p><?php echo $msg; ?></p>
|
||
<?php endforeach;endif; ?>
|
||
</div>
|
||
<?php endif; ?>
|
||
|
||
<div class="right_title">元数据管理</div>
|
||
|
||
<div class="search">
|
||
<form action="" method="get">
|
||
<div class="input-prepend">
|
||
<input type="hidden" name="search" value='1' />
|
||
<input class="span2 search-query" type="text" name="keyword" value="<?php echo $this->keyword; ?>" placeholder="搜索关键字"/>
|
||
<input type="submit" class="btn" value="搜索" />
|
||
</div>
|
||
</form>
|
||
</div><!-- search DIV -->
|
||
|
||
<a href="/admin/data/md/down/1">下载全部xml元数据</a>
|
||
<?php if (count($this->paginator)): ?>
|
||
<div class="datalist">
|
||
<ul>
|
||
<?php foreach ($this->paginator as $item): ?>
|
||
<li class="well well-small">
|
||
<h4><a href="/data/<?= $item['uuid']; ?>" class="title"><?= $item['title']; ?></a></h4>
|
||
<p>大小:<?= $item['filesize']; ?>M,创建时间:<?= date('Y-m-d',strtotime($item['ts_created'])); ?>,查看:<?= $item['viewed']; ?>次。</p>
|
||
<p>
|
||
操作:
|
||
<a href="/service/geonetwork?url=metadata.edit?id=<?= $item['gid']; ?>" target="_blank">编辑</a> |
|
||
<a href="/admin/data/md/delete/<?= $item['uuid']; ?>">删除</a> |
|
||
<a href="/admin/data/sync/uuid/<?= $item['uuid']; ?>">同步</a> |
|
||
<a href="/admin/data/reference/show/<?php echo $item['uuid'];?>">文献管理</a> |
|
||
<a href="/admin/data/md/att/1/uuid/<?php echo $item['uuid'];?>">附件管理</a> |
|
||
<a href="/admin/data/comment/uuid/<?php echo $item['uuid'];?>">反馈管理</a> |
|
||
<a href="/admin/data/author/uuid/<?php echo $item['uuid'];?>">作者管理</a> |
|
||
<a href="/admin/data/version/uuid/<?php echo $item['uuid'];?>">版本管理</a> |
|
||
<?php if (@!is_numeric($item['mdstatus'])) : ?>
|
||
<a href="/admin/review/addon/uuid/<?php echo $item['uuid'];?>">放入元数据评审</a> |
|
||
<?php endif; ?>
|
||
<a href="/admin/data/source/do/datasource/uuid/<?php echo $item['uuid'];?>">编辑数据来源</a> |
|
||
<?php if(!empty($item['datasetid'])):?>
|
||
<a href="/admin/data/dataset/ac/getdataset/uuid/<?php echo $item['uuid'];?>" class="iframe">数据路径</a> |
|
||
<a href="/admin/data/dataset/ac/import/uuid/<?php echo $item['uuid'];?>" class="iframe">重新导入数据目录</a> |
|
||
<?php else: ?>
|
||
<a href="/admin/data/dataset/ac/getdataset/uuid/<?php echo $item['uuid'];?>" class="iframe">设置数据路径</a> |
|
||
<?php endif;?>
|
||
<a href="/admin/down/sendmail/uuid/<?php echo $item['uuid'];?>" title="向数据下载者发送通知邮件">邮件通知</a> |
|
||
<a href="/admin/data/fund/uuid/<?php echo $item['uuid'];?>">支持项目</a> |
|
||
<a href="/admin/data/doi/uuid/<?php echo $item['uuid'];?>">DOI</a>
|
||
</p>
|
||
<?php if($item['author']) :?>
|
||
<p>数据贡献者:<?= $item['author']; ?></p>
|
||
<?php endif;?>
|
||
<p class="content"><?= $item['description']; ?></p>
|
||
</li>
|
||
<?php endforeach; ?>
|
||
</ul>
|
||
</div>
|
||
<?php endif; ?>
|
||
<?php echo $this->paginator; ?>
|
||
</div>
|
||
<script>
|
||
$(".iframe").colorbox({iframe:true, width:"50%", height:"50%"});
|
||
$(".inline").colorbox({inline:true, width:"50%"});
|
||
function Alert(html){
|
||
$.colorbox({'innerWidth':'50%','html':'<h4 style="font-size:16px;font-weight:bold;">'+html+'</h4>'});
|
||
}
|
||
</script>
|