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>');
|
2013-11-12 13:16:26 +00:00
|
|
|
$this->breadcrumb('数据施引文献库');
|
2013-04-10 08:14:51 +00:00
|
|
|
$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">
|
2013-11-20 10:03:16 +00:00
|
|
|
<h2>数据施引文献库</h2>
|
|
|
|
<?php if ($this->md) :
|
|
|
|
echo '<h3><a href="/data/'.$this->md['uuid'].'"><i class="icon-folder-open text-success"></i>'.$this->md['title'].'</a></h3>';
|
|
|
|
endif;
|
|
|
|
?>
|
2013-04-10 08:14:51 +00:00
|
|
|
<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; ?>">
|
2013-04-10 08:14:51 +00:00
|
|
|
<?php foreach ($this->paginator as $item): ?>
|
2013-11-12 13:16:26 +00:00
|
|
|
<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>
|
2013-04-10 08:14:51 +00:00
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
2013-11-12 13:16:26 +00:00
|
|
|
</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>
|