#462, add fund support
This commit is contained in:
parent
44321d4085
commit
c162b5d27a
|
@ -97,9 +97,17 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
</ul>
|
||||
<hr />
|
||||
<?php }?>
|
||||
<?php if ($md->suppinfo) : ?>
|
||||
<?php if ($md->suppinfo || $this->fund) : ?>
|
||||
<h4><i class="icon-money text-info"></i>资助项目</h4>
|
||||
<?php if(!empty($this->fund)) : ?>
|
||||
<ul>
|
||||
<?php foreach($this->fund as $k=>$v) : ?>
|
||||
<li><?= $v['fund_type'] ?>:<?= $v['title'] ?>(项目编号:<?= $v['fund_id']?>) [<?= $v['fund_type_en'] ?>(No. <?= $v['fund_id']?>)]</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php elseif(!empty($md->suppinfo)) : ?>
|
||||
<?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?>
|
||||
<?php endif; ?>
|
||||
<hr />
|
||||
<?php endif; ?>
|
||||
<?php if ($this->resources) : ?>
|
||||
|
|
|
@ -88,9 +88,17 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
</ul>
|
||||
<hr />
|
||||
<?php }?>
|
||||
<?php if ($md->suppinfo) : ?>
|
||||
<?php if ($md->suppinfo || $this->fund) : ?>
|
||||
<h4><i class="icon-money text-info"></i>资助项目</h4>
|
||||
<?php if(!empty($this->fund)) : ?>
|
||||
<ul>
|
||||
<?php foreach($this->fund as $k=>$v) : ?>
|
||||
<li><?= $v['fund_type'] ?>:<?= $v['title'] ?>(项目编号:<?= $v['fund_id']?>) [<?= $v['fund_type_en'] ?>(No. <?= $v['fund_id']?>)]</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php elseif(!empty($md->suppinfo)) : ?>
|
||||
<?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?>
|
||||
<?php endif; ?>
|
||||
<hr />
|
||||
<?php endif; ?>
|
||||
<?php if ($this->resources) : ?>
|
||||
|
|
Loading…
Reference in New Issue