2012-03-29 09:12:47 +00:00
|
|
|
<?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->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
|
|
|
$this->headLink()->appendStylesheet('/css/author.css');
|
2012-05-18 13:14:52 +00:00
|
|
|
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
|
|
|
$this->headScript()->appendFile('/static/js/uploadify/swfobject.js');
|
|
|
|
$this->headScript()->appendFile('/static/js/uploadify/jquery.uploadify.v2.1.4.min.js');
|
|
|
|
$this->headLink()->appendStylesheet('/static/js/uploadify/uploadify.css');
|
2012-03-29 09:12:47 +00:00
|
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
|
|
$this->breadcrumb('<a href="/author">数据作者</a>');
|
|
|
|
$this->breadcrumb('数据文献管理');
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
|
|
?>
|
|
|
|
<!-- 左侧导航 -->
|
|
|
|
<div id='sidebar'>
|
|
|
|
<div id='leftnavi'>
|
|
|
|
<?= $this->partial('author/navi.phtml'); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- //左侧导航 -->
|
|
|
|
|
|
|
|
<!-- 页面内容 -->
|
|
|
|
<div id="wapper">
|
|
|
|
<div id="tabs-controller">
|
|
|
|
<ul>
|
|
|
|
<li class="box-shadow"><a class="text-shadow" href="/author/literature/">所有文献概况</a></li>
|
|
|
|
<li class="box-shadow"><a class="text-shadow" href="/author/literature/ac/byliter">逐文献浏览</a></li>
|
|
|
|
<li class="box-shadow"><a class="text-shadow" href="/author/literature/ac/bydata">逐数据浏览</a></li>
|
|
|
|
<li class="box-shadow active">查看单数据文献</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="datalist">
|
|
|
|
<?php
|
|
|
|
if (count($this->paginator)):
|
|
|
|
if ($this->mdtitle) echo "<h2>元数据:".$this->mdtitle."</h2>";
|
|
|
|
echo "<ul>";
|
|
|
|
$autoindex=0;
|
|
|
|
foreach ($this->paginator as $item):
|
|
|
|
$autoindex++;?>
|
|
|
|
<li id="list_<?php echo $item['id'].$item['uuid'];?>">
|
|
|
|
<p><?php echo $item['reference'];?>
|
|
|
|
【 <a href="/author/literature/id/<?php echo $item['id'];?>">查看详细</a>
|
|
|
|
| <a onclick="return confirm('是否确定删除该版本?');" href="javascript:action('delete&id=<?php echo $item['id'];?>','<?php echo $item['uuid'];?>');" class="more">删除</a>
|
2012-05-18 13:14:52 +00:00
|
|
|
| <a href="/author/literature/ac/add/uuid/<?php echo $item['uuid'];?>" class="more iframe">添加文献</a>
|
2012-03-29 09:12:47 +00:00
|
|
|
】</p>
|
|
|
|
</li>
|
|
|
|
<?php endforeach;
|
|
|
|
echo "</ul>";
|
|
|
|
endif; ?>
|
|
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- //页面内容 -->
|
|
|
|
<script>
|
|
|
|
$('#wapper').width($('body').width()-300);
|
|
|
|
function action(ac,uuid){
|
|
|
|
$.ajax({
|
|
|
|
'type':"POST",
|
|
|
|
'url':'/author/literature/',
|
|
|
|
'data':'ac='+ ac +'&uuid='+uuid,
|
|
|
|
'success':function(data){
|
|
|
|
if (typeof(data)=='object')
|
|
|
|
{
|
|
|
|
if(typeof(data.error)!='undefined')
|
|
|
|
{$.colorbox({'innerWidth':'50%','html':data.error});}
|
|
|
|
if(typeof(data.deleted)!='undefined')
|
|
|
|
{$('#list_'+data.deleted).fadeOut("slow",function(){$(this).remove();});}
|
|
|
|
if(typeof(data.commited)!='undefined')
|
|
|
|
{window.location.reload();}
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
$.colorbox({'innerWidth':'50%','html':'<img src="/images/alert_big_warning.png" /><h4>出现错误,请稍候再试</h4>'});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
'timeout': 30000,
|
|
|
|
'error': function(){
|
|
|
|
$.colorbox({'innerWidth':'50%','html':'<img src="/images/alert_big_error.png" /><h4>处理中出现错误,请刷新页面后重试</h4>'});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2012-05-18 13:14:52 +00:00
|
|
|
$(".iframe").colorbox({iframe:true, width:"60%", height:"80%"});
|
2012-03-29 09:12:47 +00:00
|
|
|
$(".inline").colorbox({inline:true, width:"50%"});
|
|
|
|
function commit(id){
|
|
|
|
action('add&ref='+$('#ref').val()+'&reftype='+$('#reftype').val(),id);
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<div class="colorbox" style="display:none;">
|
|
|
|
<div class="error"><img src="/images/alert_big_error.png" /><span></span></div>
|
|
|
|
<div class="ok"><img src="/images/alert_big_ok.png" /><span></span></div>
|
|
|
|
<div class="warning"><img src="/images/alert_big_warning.png" /><span></span></div>
|
|
|
|
</div>
|