优化小数点位数

This commit is contained in:
wlx 2013-05-16 00:35:37 +00:00
parent 327de3f9fa
commit 55c5a6a533
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ $this->nav[] = array('link'=>"/data/fund",'title'=>'支持项目浏览');
<?php foreach($this->paginator as $md) : ?>
<div class="well">
<h4><a href="/data/fund/id/<?php echo $md['id'];?>"><?php echo $this->escape($md['title']);?></a></h4>
编号:<?php echo $md['fund_id']; ?> | 类型:<?php echo $md['fund_type']; ?> | 提供数据集:<?php echo $md['datacount']; ?>条,<?php echo $md['filesize']>5000?($md['filesize']/1024).'GB':$md['filesize'].'MB'; ?></div>
编号:<?php echo $md['fund_id']; ?> | 类型:<?php echo $md['fund_type']; ?> | 提供数据集:<?php echo $md['datacount']; ?>条,<?php echo $md['filesize']>5000?(int($md['filesize']/102.4)/10).'GB':$md['filesize'].'MB'; ?></div>
<?php endforeach; ?>
<div class="pagenavi"><?= $this->paginator; ?></div>
<?php else : ?>