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

55 lines
1.9 KiB
PHTML
Raw Permalink Normal View History

<?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'); ?>
</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/tagdatalist/id/"+id;
$.ajax({
'type':"GET",
'url':url,
'data':'page='+page,
'dataType':'html',
'success':function(html){$.colorbox({'html':html,'innerHeight':250});}
});
}
</script>