2013-10-28 07:59:40 +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>');
|
|
|
|
|
$this->breadcrumb('文章查看');
|
2013-10-28 09:45:48 +00:00
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
2013-10-28 07:59:40 +00:00
|
|
|
|
$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-10-28 09:45:48 +00:00
|
|
|
|
<?php if(!empty($this->paper['title'])){ ?>
|
|
|
|
|
<h3><?php echo $this->paper['title']; ?></h3>
|
|
|
|
|
<hr />
|
|
|
|
|
<?php } ?>
|
2013-11-13 18:24:53 +00:00
|
|
|
|
<?php if($this->author) : ?>
|
2013-10-28 09:45:48 +00:00
|
|
|
|
<h4>作者</h4>
|
|
|
|
|
<ul>
|
|
|
|
|
<?php foreach($this->author as $a) : ?>
|
2013-11-12 12:35:12 +00:00
|
|
|
|
<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>
|
2013-10-28 09:45:48 +00:00
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
</ul>
|
|
|
|
|
<hr />
|
2013-11-13 18:24:53 +00:00
|
|
|
|
<?php endif; ?>
|
2013-10-28 09:45:48 +00:00
|
|
|
|
|
|
|
|
|
<?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 } ?>
|
2013-10-28 07:59:40 +00:00
|
|
|
|
|
2013-10-28 09:45:48 +00:00
|
|
|
|
<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>';
|
|
|
|
|
}
|
2013-11-15 14:46:28 +00:00
|
|
|
|
|
|
|
|
|
if (!empty($this->paper['ris'])) :
|
2013-11-15 14:47:36 +00:00
|
|
|
|
echo ' <a href="/service/ris/id/'.$this->paper['id'].'"><i class="icon-download text-success"></i>RIS下载</a>';
|
2013-11-15 14:41:56 +00:00
|
|
|
|
endif;
|
2013-10-28 09:45:48 +00:00
|
|
|
|
?>
|
2013-11-12 07:02:40 +00:00
|
|
|
|
<a href="javascript:;" onclick="showdata('<?php echo $this->paper['id'];?>',0)"><i class="icon-external-link text-success"></i>相关数据(共<span id="referenceDataCount">?</span>条)</a>
|
2013-10-28 09:45:48 +00:00
|
|
|
|
|
2013-10-28 07:59:40 +00:00
|
|
|
|
</div>
|
2013-10-28 09:45:48 +00:00
|
|
|
|
|
|
|
|
|
</div><!-- content -->
|
2013-10-28 07:59:40 +00:00
|
|
|
|
</div>
|
2013-10-28 09:45:48 +00:00
|
|
|
|
</div>
|
|
|
|
|
<script type="text/javascript" >
|
2013-11-12 07:02:40 +00:00
|
|
|
|
$('#Nav-knowledge-user').addClass('active');
|
2013-10-28 09:45:48 +00:00
|
|
|
|
</script>
|
2013-10-28 07:59:40 +00:00
|
|
|
|
<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});}
|
|
|
|
|
});
|
|
|
|
|
}
|
2013-10-28 09:45:48 +00:00
|
|
|
|
function displayDataCount()
|
|
|
|
|
{
|
|
|
|
|
$.ajax({
|
|
|
|
|
'type':"GET",
|
|
|
|
|
'url':"/service/refdatacount/id/<?php echo $this->paper['id'];?>",
|
|
|
|
|
'data':'',
|
|
|
|
|
'dataType':'html',
|
|
|
|
|
'success':function(html){$('#referenceDataCount').html(html)}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
displayDataCount();
|
2013-10-28 07:59:40 +00:00
|
|
|
|
</script>
|