westdc-zf1/application/admin/views/scripts/data/md.phtml

101 lines
6.7 KiB
PHTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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');
$this->headScript()->appendFile('/js/lib/colorbox/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/js/lib/colorbox/colorbox.css');
?>
<div class="row">
<div class="hidden-sm hidden-xs col-md-2">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="col-md-10 col-sm-12">
<?php if ($this->msg or $this->messages) :?>
<div id="message" class="alert alert-info">
<?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="input-group form-group">
<form action="" method="get" class="search_form input-group">
<input class="form-control" type="text" name="keyword" value="<?php echo $this->keyword; ?>" placeholder="搜索关键字" />
<input type="hidden" name="search" value="1"/>
<span class="input-group-btn"><button class="btn btn-default" value="搜索">搜索</button></span>
</form>
</div><!-- search DIV -->
<p><a href="/admin/data/md/down/1">下载全部xml元数据</a></p>
<?php if (count($this->paginator)): ?>
<div class="datalist">
<ul class="list-unstyled">
<?php foreach ($this->paginator as $item): ?>
<li class="well well-sm">
<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(isset($item['heihe_fund_title']) && !empty($item['heihe_fund_title'])) { ?><p>计划内项目: <?= $item['heihe_fund_title'] ?></p><?php } ?>
<p>
操作:
<?php if ($item['gid']>0) : ?>
<a class="label label-primary" href="/service/geonetwork?url=metadata.edit?id=<?= $item['gid']; ?>" target="_blank">编辑</a>
<?php endif; ?>
<a class="label label-danger" href="/admin/data/md/delete/<?= $item['uuid']; ?>">删除</a>
<!-- <a href="/admin/data/sync/uuid/<?= $item['uuid']; ?>">同步</a> -->
<a class="label label-primary" href="/admin/data/ref/uuid/<?php echo $item['uuid'];?>">文献管理</a>
<a class="label label-primary" href="/admin/data/md/att/1/uuid/<?php echo $item['uuid'];?>">附件管理</a>
<a class="label label-primary" href="/admin/data/comment/uuid/<?php echo $item['uuid'];?>">反馈管理</a>
<a class="label label-primary" href="/admin/data/author/uuid/<?php echo $item['uuid'];?>">作者管理</a>
<a class="label label-primary" href="/admin/data/version/uuid/<?php echo $item['uuid'];?>">版本管理</a>
<?php if (@!is_numeric($item['mdstatus'])) : ?>
<a class="label label-primary" href="/admin/review/addon/uuid/<?php echo $item['uuid'];?>">放入元数据评审</a>
<?php endif; ?>
<a class="label label-primary" href="/admin/data/source/do/datasource/uuid/<?php echo $item['uuid'];?>">数据来源</a>
<?php if(!empty($item['datasetid'])):?>
<a class="label label-primary iframe" href="/admin/data/dataset/ac/getdataset/uuid/<?php echo $item['uuid'];?>">数据路径</a>
<a class="label label-primary iframe" href="/admin/data/dataset/ac/import/uuid/<?php echo $item['uuid'];?>" class="iframe">重新导入数据目录</a>
<?php else: ?>
<a class="label label-primary iframe" href="/admin/data/dataset/ac/getdataset/uuid/<?php echo $item['uuid'];?>">设置数据路径</a>
<?php endif;?>
<a class="label label-primary" href="/admin/down/sendmail/uuid/<?php echo $item['uuid'];?>" title="向数据下载者发送通知邮件">邮件通知</a>
<a class="label label-primary" href="/admin/data/fund/uuid/<?php echo $item['uuid'];?>">支持项目</a>
<a class="label label-primary" href="/admin/data/doi/uuid/<?php echo $item['uuid'];?>">DOI</a>
<?php if ($item['datatype']==1 && ($item['mdstatus']==5 || $item['mdstatus']==6)) :?>
<a class="label label-primary iframe" href="/admin/data/author/ac/delegate/uuid/<?php echo $item['uuid'];?>">委托数据中心管理</a>
<?php endif; ?>
<?php if (!isset($item['genid']) || !$item['genid']>0) : ?>
<a class="label label-primary iframe" href="/admin/data/gnenexport/uuid/<?php echo $item['uuid'];?>">导入英文版</a>
<?php endif; ?>
<?php if (!isset($item['stid']) || !$item['stid']>0) : ?>
<a class="label label-primary" href="/admin/data/spatial/ac/edit/uuid/<?php echo $item['uuid']; ?>">数据时空范围采集</a>
<?php endif; ?>
</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>
</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>