56 lines
2.1 KiB
PHTML
56 lines
2.1 KiB
PHTML
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle('知识积累');
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->headLink()->appendStylesheet('/css/mdreview.css');
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
$this->breadcrumb('<a href="/knowledge">知识积累</a>');
|
|
$this->breadcrumb('作者推荐文献库');
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
|
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
|
?>
|
|
<div class="row">
|
|
<div class="span3">
|
|
<?= $this->partial('knowledge/navi.phtml'); ?>
|
|
</div>
|
|
<div class="span9">
|
|
<div id="content">
|
|
<h2>作者推荐文献库</h2>
|
|
<div>
|
|
<?php if (count($this->paginator)): ?>
|
|
<ol start="<?php echo ($this->paginator->getCurrentPageNumber() - 1) * $this->paginator->getItemCountPerPage()+1; ?>">
|
|
<?php foreach ($this->paginator as $item): ?>
|
|
<li> <?php echo $item['reference'];
|
|
echo ' <a href="/knowledge/paper/id/'.$item['id'].'"><i class="icon-info-sign text-success"></i>查看</a>';
|
|
if (!empty($item['link'])) :
|
|
echo ' <a href="'.$item['link'].'">下载</a>';
|
|
else :
|
|
if (!empty($item['attid'])) echo ' <a href="/service/attach/id/'.$item['attid'].'"><i class="icon-download text-success"></i>下载</a>';
|
|
endif;
|
|
?>
|
|
<a href="javascript:;" onclick="showdata('<?php echo $item['id'];?>',0)"><i class="icon-external-link text-success"></i>相关数据</a>
|
|
</li>
|
|
<?php endforeach; ?>
|
|
</ol>
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript" >
|
|
$('#Nav-knowledge-author').addClass('active');
|
|
</script>
|
|
<script>
|
|
function showdata(id,page){
|
|
var url="/service/refdatalist/id/"+id;
|
|
$.ajax({
|
|
'type':"GET",
|
|
'url':url,
|
|
'data':'page='+page,
|
|
'dataType':'html',
|
|
'success':function(html){$.colorbox({'html':html,'innerHeight':230});}
|
|
});
|
|
}
|
|
</script>
|