2013-04-10 08:14:51 +00:00
|
|
|
<?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)): ?>
|
2013-11-12 13:16:26 +00:00
|
|
|
<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;
|
2013-04-10 08:14:51 +00:00
|
|
|
?>
|
2013-11-12 13:16:26 +00:00
|
|
|
<a href="javascript:;" onclick="showdata('<?php echo $item['id'];?>',0)"><i class="icon-external-link text-success"></i>相关数据</a>
|
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</ol>
|
2013-04-10 08:14:51 +00:00
|
|
|
<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>
|