add breadcrump and reference link

This commit is contained in:
wlx 2014-01-10 05:01:42 +00:00
parent 51f3adfa79
commit 7871ebfb6a
2 changed files with 8 additions and 5 deletions

View File

@ -19,12 +19,14 @@ $this->nav[] = array('link'=>"/haihe",'title'=>'海河流域观测数据集');
<ol start="<?php echo $this->offset; ?>">
<?php foreach($this->refs as $md) : ?>
<li><?php echo $md['reference'];
if ($md['link'])
{
echo ' <a href="'.$md['link'].'">下载</a>';
}
echo ' <a href="/knowledge/paper/id/'.$item['id'].'"><i class="icon-info-sign text-success"></i>查看</a>';
if (!empty($md['link'])) :
echo ' <a href="'.$md['link'].'">下载</a>';
else :
if (!empty($md['attid'])) echo ' <a href="/service/attach/id/'.$md['attid'].'"><i class="icon-download text-success"></i>下载</a>';
endif;
?>
[<a href="javascript:;" onclick="showdata('<?php echo $md['id'];?>',0)">相关数据</a>]
[<a href="javascript:;" onclick="showdata('<?php echo $md['id'];?>',0)"><i class="icon-external-link text-success"></i>相关数据</a>]
</li>
<?php endforeach; ?>
</ol>

View File

@ -12,6 +12,7 @@
if(!empty($this->dataService)) {
$this->theme->AppendModel($this,"dataservice");
}
$this->nav[] = array('link'=>"/haihe",'title'=>'海河流域观测数据集');
?>
<style>
h3.gs_rt{font-size:110%;}