128 lines
5.2 KiB
PHTML
128 lines
5.2 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 class="row-fluid">
|
||
<div class="span2">
|
||
<?= $this->partial('data/left.phtml'); ?>
|
||
</div>
|
||
<div class="span10">
|
||
|
||
<h3>元数据管理</h3>
|
||
|
||
<hr />
|
||
|
||
<?php if ($this->msg or $this->messages) :?>
|
||
<div class="alert alert-success">
|
||
<?php if ($this->msg) : ?>
|
||
<?php echo $this->msg; ?>
|
||
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
||
<?php echo $msg;echo "<br />"; ?>
|
||
<?php endforeach;endif; ?>
|
||
</div>
|
||
<?php endif; ?>
|
||
|
||
<div class="search" style="overflow:hidden;">
|
||
<div class="span6">
|
||
<form action="" method="get" class="form-search">
|
||
<div class="input-append">
|
||
<input type="hidden" name="search" value='1' />
|
||
<input class="span12" type="text" name="keyword" value="<?php echo $this->keyword; ?>" placeholder="搜索关键字"/>
|
||
<button type="submit" class="btn">搜索</button>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
<div class="span6 text-right">
|
||
<a href="/admin/data/md/down/1">下载全部xml元数据</a>
|
||
</div>
|
||
</div><!-- search DIV -->
|
||
|
||
<?php if (count($this->paginator)): ?>
|
||
<div class="datalist">
|
||
<ul class="unstyled">
|
||
<?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>
|
||
<?php if($item['author']) :?>
|
||
<p>数据贡献者:<?= $item['author']; ?></p>
|
||
<?php endif;?>
|
||
<p class="content"><?= $item['description']; ?></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/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> |
|
||
<a href="javascript:;" onclick="getFtp('<?php echo $item['uuid'];?>')">数据FTP管理</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/visual/uuid/<?php echo $item['uuid'];?>">数据可视化</a> |
|
||
<a href="/admin/data/doi/uuid/<?php echo $item['uuid'];?>">DOI注册</a>
|
||
</p>
|
||
</li>
|
||
<?php endforeach; ?>
|
||
</ul>
|
||
</div>
|
||
<?php endif; ?>
|
||
<?php echo $this->paginator; ?>
|
||
</div>
|
||
</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>'});
|
||
}
|
||
function getFtp(uuid){
|
||
$.ajax({
|
||
'type':"POST",
|
||
'url':'/admin/data/dataset/ac/ftp/uuid/'+uuid,
|
||
'data':'',
|
||
'success':function(data){
|
||
if (typeof(data)=='object')
|
||
{
|
||
if(typeof(data.error)!='undefined')
|
||
{Alert(data.error);return false;}
|
||
if(typeof(data.statu)!='undefined')
|
||
{
|
||
if(data.statu > 0)
|
||
{
|
||
var html = '<p>临时FTP帐号信息<b>(此帐号仅对应当前数据集!)</b></p><p>ftp://ftp.sanjiangyuan.org.cn/</p>'+
|
||
'<p>用户名:'+data.user+
|
||
'</p><p>密码:'+data.passwd+'</p>'
|
||
+'<p><a href="ftp://'+data.user+':'+data.passwd+'@ftp.sanjiangyuan.org.cn/">或直接点击此链接</a></p>';
|
||
Alert(html);
|
||
}
|
||
}
|
||
}
|
||
else{
|
||
Alert('出现错误,请稍候再试</h4>');
|
||
}
|
||
},
|
||
'timeout': 30000,
|
||
'error': function(){
|
||
Alert('处理中出现错误,请刷新页面后重试</h4>');
|
||
}
|
||
});
|
||
}
|
||
</script>
|