添加文献下载功能

This commit is contained in:
wlx 2010-06-30 09:04:48 +00:00
parent 96de62876e
commit fc6a6ed9ae
1 changed files with 4 additions and 1 deletions

View File

@ -165,7 +165,10 @@ endforeach;
<h2>建议参考文献</h2> <h2>建议参考文献</h2>
<ol> <ol>
<?php foreach($this->ref as $ref) : <?php foreach($this->ref as $ref) :
echo '<li>'.$ref['reference'].'</li>'; if (empty($ref['link']))
echo '<li>'.$ref['reference'].'</li>';
else
echo '<li>'.$ref['reference'].' <a href="'.$ref['link'].'">下载</a></li>';
endforeach; endforeach;
?> ?>
</ol> </ol>