2012-03-22 09:58:16 +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>');
|
2012-03-23 14:23:21 +00:00
|
|
|
$this->breadcrumb('查看数据申请记录');
|
2012-03-22 09:58:16 +00:00
|
|
|
$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;
|
|
|
|
}
|
2012-03-23 14:23:21 +00:00
|
|
|
?>
|
|
|
|
<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>
|
2012-03-22 09:58:16 +00:00
|
|
|
<div id="datalist">
|
|
|
|
<?php
|
2012-03-23 14:23:21 +00:00
|
|
|
if (count($this->paginator)):
|
|
|
|
echo "<h2>申请记录:".$this->mdtitle."</h2>";
|
2012-03-22 09:58:16 +00:00
|
|
|
echo "<ul>";
|
|
|
|
$autoindex=0;
|
|
|
|
foreach ($this->paginator as $item):
|
|
|
|
$autoindex++;
|
|
|
|
if(!empty($item['offa_id'])) :
|
|
|
|
?>
|
|
|
|
<li>
|
2012-06-07 11:21:53 +00:00
|
|
|
<p>【离线申请】<?php echo $item['offa_name'];?> (<?php echo $item['offa_email'];?>)</p>
|
|
|
|
<p>申请时间:<?php echo $item['offa_tscreated'];?></p>
|
2012-03-22 09:58:16 +00:00
|
|
|
<p>单位:<?php echo $item['offa_unit'];?></p>
|
|
|
|
<p>项目:<?php echo $item['offa_project'];?></p>
|
2012-03-23 14:23:21 +00:00
|
|
|
<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>
|
2012-03-22 09:58:16 +00:00
|
|
|
</li>
|
|
|
|
<?php
|
|
|
|
endif;
|
|
|
|
if(!empty($item['ona_id'])):
|
|
|
|
?>
|
|
|
|
<li>
|
2012-06-07 11:21:53 +00:00
|
|
|
<p>【在线下载记录】<?php echo $item['ona_name'];?> (<?php echo $item['ona_email'];?>)</p>
|
|
|
|
<p>申请时间:<?php echo $item['ona_tscreated'];?></p>
|
2012-03-22 09:58:16 +00:00
|
|
|
<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);
|
2012-03-23 14:23:21 +00:00
|
|
|
function confirm(uuid,oid){
|
|
|
|
doPD(uuid,"confirm",oid);
|
2012-03-22 09:58:16 +00:00
|
|
|
}
|
|
|
|
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>
|