添加了委托功能
This commit is contained in:
parent
a88377116e
commit
7e8a7d0f82
File diff suppressed because it is too large
Load Diff
|
@ -34,16 +34,22 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
<li>
|
||||
<a href="/data/<?php echo $item['uuid'];?>" target="_blank" class="title"><?php echo $item['title'];?></a>
|
||||
<?php if($item['status']==1) : ?>
|
||||
<span class="dtctrlplan">【操作:
|
||||
<a href="/author/inauthor/ac/datalist/uuid/<?php echo $item['uuid']; ?>">申请管理</a> |
|
||||
<a href="/author/comment/ac/view/uuid/<?php echo $item['uuid']; ?>">反馈</a> |
|
||||
<a href="/author/document/uuid/<?php echo $item['uuid']; ?>">文档</a> |
|
||||
<a href="/author/literature/uuid/<?php echo $item['uuid']; ?>">文献</a> |
|
||||
<a href="/service/geonetwork?url=metadata.edit?id=<?php echo $item['gid']; ?>">修改元数据</a> |
|
||||
<a href="/author/version/uuid/<?php echo $item['uuid']; ?>">版本</a> |
|
||||
<a href="/author/qa/uuid/<?php echo $item['uuid']; ?>">QA</a> |
|
||||
<a href="/author/news/uuid/<?php echo $item['uuid']; ?>">新闻</a> |
|
||||
<a href="/author/viewauthors/uuid/<?php echo $item['uuid']; ?>">所有作者</a> 】</span>
|
||||
<span class="dtctrlplan">【操作:
|
||||
<a href="/author/inauthor/ac/datalist/uuid/<?php echo $item['uuid']; ?>">申请管理</a> |
|
||||
<a href="/author/comment/ac/view/uuid/<?php echo $item['uuid']; ?>">反馈</a> |
|
||||
<a href="/author/document/uuid/<?php echo $item['uuid']; ?>">文档</a> |
|
||||
<a href="/author/literature/uuid/<?php echo $item['uuid']; ?>">文献</a> |
|
||||
<a href="/service/geonetwork?url=metadata.edit?id=<?php echo $item['gid']; ?>">修改元数据</a> |
|
||||
<a href="/author/version/uuid/<?php echo $item['uuid']; ?>">版本</a> |
|
||||
<a href="/author/qa/uuid/<?php echo $item['uuid']; ?>">QA</a> |
|
||||
<a href="/author/news/uuid/<?php echo $item['uuid']; ?>">新闻</a> |
|
||||
<a href="/author/viewauthors/uuid/<?php echo $item['uuid']; ?>">所有作者</a>
|
||||
<?php if($item['mdstatus']==5 || $item['mdstatus']==6) {?>
|
||||
| <a href="/author/delegate/uuid/<?php echo $item['uuid'];?>" onclick="return confirm('是否确定将该数据委托至数据中心?');">委托</a>
|
||||
<?php } if($item['mdstatus']==7){ ?>
|
||||
| <a href="/author/delegate/ac/cancel/uuid/<?php echo $item['uuid'];?>" onclick="return confirm('是否确定取消该数据的委托?');">取消委托</a>
|
||||
<?php }?>
|
||||
】</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<p><?php echo mb_strlen($item['description'])>400?$this->escape(mb_substr($item['description'],0,400,'UTF-8').'...'):$this->escape($item['description']); ?></p>
|
||||
|
@ -66,30 +72,4 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
function apply(uuid){
|
||||
$.ajax({
|
||||
'type':"POST",
|
||||
'url':'/author/apply',
|
||||
'data':'ac=apply&m=send&uuid='+uuid,
|
||||
'success':function(data){
|
||||
if (isObject(data))
|
||||
{
|
||||
if(typeof(data.error)!='undefined')
|
||||
{alert(data.error);}
|
||||
else{alert('请重试');}
|
||||
}
|
||||
else{ alert('出现错误,请稍候');}
|
||||
$('#data_'+uuid).html('');
|
||||
},
|
||||
'beforeSend':function(){
|
||||
$('#data_'+uuid).html('<img src="/images/ajax-load-small.gif" />正在处理...');
|
||||
},
|
||||
'timeout': 30000,
|
||||
'error': function(){
|
||||
alert('处理中出现问题,请重试');
|
||||
$('#data_'+uuid).html('');
|
||||
}
|
||||
});
|
||||
}
|
||||
function isObject(obj){if(typeof(obj)=='object'){return true;}else if(typeof(obj)!='object'){return false;}else{return false;}}
|
||||
</script>
|
|
@ -0,0 +1,36 @@
|
|||
<?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('<a href="/author/accept">我的数据</a>');
|
||||
$this->breadcrumb('数据委托');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<?php
|
||||
if(!empty($this->metadata['uuid']))
|
||||
{
|
||||
echo "元数据《<a href=\"/data/".$this->metadata['uuid']."\">".$this->metadata['title']."</a>》";
|
||||
}
|
||||
|
||||
?>
|
||||
<br />
|
||||
<?php echo $this->info; ?>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
</script>
|
Loading…
Reference in New Issue