2012-03-09 09:03:50 +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->headLink()->appendStylesheet('/css/author.css');
|
|
|
|
|
$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/inauthor/ac/online">在线下载记录</a></li>
|
|
|
|
|
<li class="box-shadow active"><a class="text-shadow" href="/author/inauthor/ac/offline">离线申请记录</a></li>
|
2012-03-22 09:53:35 +00:00
|
|
|
|
<li class="box-shadow"><a class="text-shadow" href="/author/inauthor/ac/datalist">按数据查看</a></li>
|
2012-03-09 09:03:50 +00:00
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="box box-info" id="head_tip" onclick="$('#head_tip').hide();" title="点击关闭提示">离线数据申请默认为同意下载</div>
|
|
|
|
|
<p>请输入元数据标题关键字进行搜索</p>
|
|
|
|
|
<form id="datasearch" class="search_form" action="/author/inauthor/ac/searchoffline">
|
|
|
|
|
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
|
|
|
|
<button type="submit" class="btn" id="search_btn">搜索</button>
|
|
|
|
|
</form>
|
|
|
|
|
<div id="datalist">
|
|
|
|
|
<?php
|
|
|
|
|
if (count($this->paginator)):
|
|
|
|
|
echo "<ul>";
|
|
|
|
|
$autoindex=0;
|
|
|
|
|
foreach ($this->paginator as $item):
|
|
|
|
|
$autoindex++;?>
|
|
|
|
|
<li>
|
2012-03-23 14:23:21 +00:00
|
|
|
|
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a>
|
|
|
|
|
【<a href="/author/inauthor/ac/offline/pdf/<?php echo $item['doid']; ?>">查看用户申请表</a>】</p>
|
2012-03-09 09:03:50 +00:00
|
|
|
|
<p>用户:<?php echo $item['username'];?>
|
|
|
|
|
单位:<?php echo $item['unit'];?>
|
|
|
|
|
申请时间:<?php echo date("Y-m-d H:i:s",strtotime($item['ts_created']));?></p>
|
|
|
|
|
<p>项目:<?php echo $item['project'];?></p>
|
2012-03-23 14:23:21 +00:00
|
|
|
|
<p><span id="ct_<?php echo $item['doid'];?>">
|
|
|
|
|
<?php echo $item['btns'];?> </span><span id="data_<?php echo $item['doid'];?>"></span></p>
|
2012-03-09 09:03:50 +00:00
|
|
|
|
</li>
|
|
|
|
|
<?php endforeach;
|
|
|
|
|
echo "</ul>";
|
|
|
|
|
endif; ?>
|
|
|
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- //页面内容 -->
|
|
|
|
|
<script>
|
2012-03-23 14:23:21 +00:00
|
|
|
|
function confirm(uuid,oid){
|
|
|
|
|
doPD(uuid,"confirm",oid);
|
2012-03-09 09:03:50 +00:00
|
|
|
|
}
|
2012-03-12 03:14:50 +00:00
|
|
|
|
function objection(uuid,oid){
|
|
|
|
|
doPD(uuid,"objection",oid);
|
2012-03-09 09:03:50 +00:00
|
|
|
|
}
|
2012-03-12 03:14:50 +00:00
|
|
|
|
function doPD(uuid,pr,oid){
|
2012-03-09 09:03:50 +00:00
|
|
|
|
$.ajax({
|
|
|
|
|
'type':"POST",
|
|
|
|
|
'url':'/author/inauthor/ac/offline',
|
2012-03-12 03:14:50 +00:00
|
|
|
|
'data':'pr='+ pr +'&uuid='+uuid+'&oid='+oid,
|
2012-03-09 09:03:50 +00:00
|
|
|
|
'success':function(html){
|
2012-03-12 03:18:19 +00:00
|
|
|
|
$('#ct_'+oid).html(html);$('#data_'+oid).html('');
|
2012-03-09 09:03:50 +00:00
|
|
|
|
},
|
|
|
|
|
'beforeSend':function(){
|
2012-03-12 03:18:19 +00:00
|
|
|
|
$('#data_'+oid).html('<img src="/images/ajax-load-small.gif" />正在处理...');
|
2012-03-09 09:03:50 +00:00
|
|
|
|
},
|
|
|
|
|
'timeout': 20000,
|
|
|
|
|
'error': function(){
|
|
|
|
|
alert('处理中出现问题,请重试');
|
2012-03-12 03:18:19 +00:00
|
|
|
|
$('#data_'+oid).html('');
|
2012-03-09 09:03:50 +00:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
$('#wapper').width($('body').width()-300);
|
|
|
|
|
</script>
|