53 lines
1.8 KiB
PHTML
53 lines
1.8 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',array('key'=>$this->key,'source'=>$this->source)); ?>
|
||
|
</div>
|
||
|
<div class="span9">
|
||
|
<div id="content">
|
||
|
<h2>数据文献搜索</h2>
|
||
|
<div>
|
||
|
<?php if (count($this->paginator)): ?>
|
||
|
<ul>
|
||
|
<?php foreach ($this->paginator as $item): ?>
|
||
|
<li> <?php echo $item['reference']; ?>
|
||
|
<?php if (!empty($item['link'])) :
|
||
|
echo ' <a class="btn btn-mini btn-inverse" href="'.$item['link'].'">下载</a>';
|
||
|
endif;
|
||
|
?>
|
||
|
<a class="btn btn-mini btn-info" href="javascript:;" onclick="showdata('<?php echo $item['id'];?>',0)">相关数据</a>
|
||
|
</li>
|
||
|
<?php endforeach; ?>
|
||
|
</ul>
|
||
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||
|
<?php endif; ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<script type="text/javascript" >
|
||
|
$('#Nav-knowledge-user').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>
|