#303 增加了按数据查看的视图
This commit is contained in:
parent
6dcb157784
commit
8d794d0939
|
@ -0,0 +1,89 @@
|
|||
<?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="datalist">
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
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_unit'];?></p>
|
||||
<p>项目:<?php echo $item['offa_project'];?></p>
|
||||
<p><span id="ct_<?php echo $item['offa_id'];?>">
|
||||
<?php echo $item['btns'];?> </span><span id="data_<?php echo $item['offa_id'];?>"></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_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 confrim(uuid,oid){
|
||||
doPD(uuid,"confrim",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>
|
Loading…
Reference in New Issue