105 lines
3.4 KiB
PHTML
105 lines
3.4 KiB
PHTML
<?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">
|
||
<?php if(!empty($this->paper['title'])){ ?>
|
||
<h3><?php echo $this->paper['title']; ?></h3>
|
||
<hr />
|
||
<?php } ?>
|
||
<?php if($this->author) : ?>
|
||
<h4>作者</h4>
|
||
<ul>
|
||
<?php foreach($this->author as $a) : ?>
|
||
<li><?php echo $a['lastname'];if (!empty($a['firstname'])) echo ', '.$a['firstname']; ?> 【<a href="/knowledge/search/author/<?php echo $a['id']; ?>/place/<?php echo $a['place']; ?>">所有文章</a>】</li>
|
||
<?php endforeach; ?>
|
||
</ul>
|
||
<hr />
|
||
<?php endif; ?>
|
||
|
||
<?php if ($this->paper['abstract']){ ?>
|
||
<h4>摘要</h4>
|
||
<p><?php echo $this->paper['abstract']; ?></p>
|
||
<hr />
|
||
<?php } ?>
|
||
|
||
<?php if(count($this->tag) > 0) { ?>
|
||
<h4>关键词</h4>
|
||
<ul>
|
||
<?php foreach($this->tag as $t) : ?>
|
||
<li><?php echo $t['tag']; ?></li>
|
||
<?php endforeach; ?>
|
||
</ul>
|
||
<hr />
|
||
<?php } ?>
|
||
|
||
<?php if(!empty($this->paper['reference'])) { ?>
|
||
<h4>引用方式</h4>
|
||
<blockquote>
|
||
<?php echo $this->paper['reference']; ?>
|
||
</blockquote>
|
||
<hr />
|
||
<?php } ?>
|
||
|
||
<div>
|
||
<?php
|
||
if (empty($this->paper['link']))
|
||
{
|
||
if(!empty($this->paper['attid']))
|
||
{
|
||
echo '<a href="/service/attach/id/'.$this->paper['attid'].'"><i class="icon-download text-success"></i>PDF下载</a>';
|
||
}
|
||
}else{
|
||
echo '<a href="'.$this->paper['link'].'"><i class="icon-download text-success"></i>PDF下载</a>';
|
||
}
|
||
|
||
if (!empty($this->paper['ris'])) :
|
||
echo ' <a href="/service/ris/id/'.$this->paper['id'].'"><i class="icon-download text-success"></i>RIS下载</a>';
|
||
endif;
|
||
?>
|
||
<a href="javascript:;" onclick="showdata('<?php echo $this->paper['id'];?>',0)"><i class="icon-external-link text-success"></i>相关数据(共<span id="referenceDataCount">?</span>条)</a>
|
||
|
||
</div>
|
||
|
||
</div><!-- content -->
|
||
</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});}
|
||
});
|
||
}
|
||
function displayDataCount()
|
||
{
|
||
$.ajax({
|
||
'type':"GET",
|
||
'url':"/service/refdatacount/id/<?php echo $this->paper['id'];?>",
|
||
'data':'',
|
||
'dataType':'html',
|
||
'success':function(html){$('#referenceDataCount').html(html)}
|
||
});
|
||
}
|
||
displayDataCount();
|
||
</script>
|