westdc-zf1/application/default/views/scripts/knowledge/search.phtml

55 lines
2.0 KiB
PHTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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):
$u=parse_url($item['url']);
if ($u['host']=='hdl.handle.net')
$url=$this->config->seekspace->handleurl.$u['path'];
else
$url=$item['url'];
?>
<li>[<?= date('Y-m-d',strtotime($item['ts_created'])); ?>]<a class="itemTitle" href="<?= $url; ?>" target="_blank" title="<?= $item['publisher']; ?>"><span><?= $item['title']; ?></span></a><?= $item['author']; ?>等. <?= $item['publisher']; ?>
<a class="btn btn-mini btn-info" href="javascript:;" onclick="showdata('<?php echo $item['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-westplan').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':250});}
});
}
</script>