添加了文献附件的下载功能
This commit is contained in:
parent
dda5be5a23
commit
a3551b20e8
|
@ -51,10 +51,15 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
<h4><i class="icon-eye-open text-success"></i>建议参考文献</h4>
|
||||
<ol>
|
||||
<?php foreach($this->ref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
if (empty($ref->link))
|
||||
echo '<li>'.$ref->reference.'</li>';
|
||||
else
|
||||
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a></li>';
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}else{
|
||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
?>
|
||||
</ol>
|
||||
|
|
|
@ -74,10 +74,15 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
<h4><i class="icon-eye-open text-success"></i>建议参考文献</h4>
|
||||
<ol>
|
||||
<?php foreach($this->ref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
if (empty($ref->link))
|
||||
echo '<li>'.$ref->reference.'</li>';
|
||||
else
|
||||
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a></li>';
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}else{
|
||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
?>
|
||||
</ol>
|
||||
|
|
|
@ -72,10 +72,15 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
<h4><i class="icon-eye-open text-success"></i>建议参考文献</h4>
|
||||
<ol>
|
||||
<?php foreach($this->ref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
if (empty($ref->link))
|
||||
echo '<li>'.$ref->reference.'</li>';
|
||||
else
|
||||
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a></li>';
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}else{
|
||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
?>
|
||||
</ol>
|
||||
|
|
|
@ -51,10 +51,15 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
<h4><i class="icon-eye-open text-success"></i>建议参考文献</h4>
|
||||
<ol>
|
||||
<?php foreach($this->ref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
if (empty($ref->link))
|
||||
echo '<li>'.$ref->reference.'</li>';
|
||||
else
|
||||
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a></li>';
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}else{
|
||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
?>
|
||||
</ol>
|
||||
|
|
Loading…
Reference in New Issue