56 lines
1.9 KiB
PHTML
56 lines
1.9 KiB
PHTML
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle('Knowledge');
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->headLink()->appendStylesheet('/css/mdreview.css');
|
|
$this->breadcrumb('<a href="/">Home</a>');
|
|
$this->breadcrumb('<a href="/knowledge">Knowledge</a>');
|
|
$this->breadcrumb('Knowledge Search');
|
|
$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>Search Results</h2>
|
|
<div>
|
|
<?php if (count($this->paginator)): ?>
|
|
<ul>
|
|
<?php foreach ($this->paginator as $item): ?>
|
|
<li>
|
|
<?php
|
|
echo $item['reference'];
|
|
echo ' <a class="btn btn-mini btn-info" href="/knowledge/paper/id/'.$item['id'].'">View</a>';
|
|
if (!empty($item['attid'])) :
|
|
echo ' <a class="btn btn-mini btn-info" href="/service/attach/id/'.$item['attid'].'">Download</a>';
|
|
endif;
|
|
?>
|
|
<a class="btn btn-mini btn-info" href="javascript:;" onclick="showdata('<?php echo $item['id'];?>',0)">Related data</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>
|