99 lines
3.1 KiB
PHTML
99 lines
3.1 KiB
PHTML
<?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">
|
|
<?php
|
|
if(!empty($this->error))
|
|
{
|
|
echo $this->error;
|
|
}
|
|
?>
|
|
<div id="tabs-controller">
|
|
<ul>
|
|
<li class="box-shadow"><a class="text-shadow" href="/author/inauthor/ac/online">在线下载记录</a></li>
|
|
<li class="box-shadow"><a class="text-shadow" href="/author/inauthor/ac/offline">离线申请记录</a></li>
|
|
<li class="box-shadow active"><a class="text-shadow" href="/author/inauthor/ac/datalist">按数据查看</a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="datalist">
|
|
<?php
|
|
if (count($this->paginator)):
|
|
echo "<h2>申请记录:".$this->mdtitle."</h2>";
|
|
echo "<ul>";
|
|
$autoindex=0;
|
|
foreach ($this->paginator as $item):
|
|
$autoindex++;
|
|
if(!empty($item['offa_id'])) :
|
|
?>
|
|
<li>
|
|
<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>
|
|
<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>
|
|
<!-- //页面内容 -->
|
|
<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>
|