94 lines
2.8 KiB
PHTML
94 lines
2.8 KiB
PHTML
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle($this->config->title->author);
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->headLink()->appendStylesheet('/css/author.css');
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
$this->breadcrumb('<a href="/author">数据作者</a>');
|
|
$this->breadcrumb('查看数据申请记录');
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
?>
|
|
<div class="row">
|
|
<div class="span3">
|
|
<?= $this->partial('author/navi.phtml'); ?>
|
|
</div>
|
|
<div class="span9">
|
|
<?php
|
|
if(!empty($this->error))
|
|
{
|
|
echo $this->error;
|
|
}
|
|
?>
|
|
<div>
|
|
<ul class="nav nav-pills">
|
|
<li><a href="/author/inauthor/ac/online">在线下载记录</a></li>
|
|
<li><a href="/author/inauthor/ac/offline">离线申请记录</a></li>
|
|
<li class="active"><a href="/author/inauthor/ac/datalist">按数据查看</a></li>
|
|
</ul>
|
|
</div>
|
|
<div>
|
|
<?php
|
|
if (count($this->paginator)):
|
|
echo "<h2>申请记录:".$this->mdtitle."</h2>";
|
|
echo '<ul class="unstyled">';
|
|
$autoindex=0;
|
|
foreach ($this->paginator as $item):
|
|
$autoindex++;
|
|
if(!empty($item['offa_id'])) :
|
|
?>
|
|
<li class="well well-small">
|
|
<p>【离线申请】<?php echo $item['offa_name'];?> (<?php echo $item['offa_email'];?>)</p>
|
|
<p>申请时间:<?php echo $item['offa_tscreated'];?></p>
|
|
<p>单位:<?php echo $item['offa_unit'];?></p>
|
|
<p>项目:<?php echo $item['offa_project'];?></p>
|
|
<p><span id="ct_<?php echo $item['doid'];?>">
|
|
<?php if($item['status']==4): echo $item['btns']; endif;?> </span><span id="data_<?php echo $item['doid'];?>"></span></p>
|
|
</li>
|
|
<?php
|
|
endif;
|
|
if(!empty($item['ona_id'])):
|
|
?>
|
|
<li class="well well-small">
|
|
<p>【在线下载记录】<?php echo $item['ona_name'];?> (<?php echo $item['ona_email'];?>)</p>
|
|
<p>申请时间:<?php echo $item['ona_tscreated'];?></p>
|
|
<p>单位:<?php echo $item['ona_unit'];?></p>
|
|
<p>项目:<?php echo $item['ona_project'];?></p>
|
|
</li>
|
|
<?php
|
|
endif;
|
|
|
|
endforeach;
|
|
echo "</ul>";
|
|
endif; ?>
|
|
</div>
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
</div>
|
|
</div>
|
|
<!-- //页面内容 -->
|
|
<script>
|
|
$('#wapper').width($('body').width()-300);
|
|
function confirm(uuid,oid){
|
|
doPD(uuid,"confirm",oid);
|
|
}
|
|
function objection(uuid,oid){
|
|
doPD(uuid,"objection",oid);
|
|
}
|
|
function doPD(uuid,pr,oid){
|
|
$.ajax({
|
|
'type':"POST",
|
|
'url':'/author/inauthor/ac/offline',
|
|
'data':'pr='+ pr +'&uuid='+uuid+'&oid='+oid,
|
|
'success':function(html){
|
|
$('#ct_'+oid).html(html);$('#data_'+oid).html('');
|
|
},
|
|
'beforeSend':function(){
|
|
$('#data_'+oid).html('<img src="/images/ajax-load-small.gif" />正在处理...');
|
|
},
|
|
'timeout': 20000,
|
|
'error': function(){
|
|
alert('处理中出现问题,请重试');
|
|
$('#data_'+oid).html('');
|
|
}
|
|
});
|
|
}
|
|
</script>
|