显示更多信息

This commit is contained in:
wlx 2013-04-30 02:16:32 +00:00
parent 4ffd9fbaef
commit 3ecd39233d
2 changed files with 2 additions and 2 deletions

View File

@ -1987,7 +1987,7 @@ class DataController extends Zend_Controller_Action
}
} else {
//提供全部分类列表
$sql="select f.id,f.title,f.fund_id,f.fund_type,f.ts_created,count(m.id) as datacount from fund f left join mdfund m on f.id=m.fid group by f.id,f.title,f.fund_id,f.fund_type,f.ts_created order by f.ts_created desc";
$sql="select f.id,f.title,f.fund_id,f.fund_type,f.ts_created,count(m.id) as datacount,sum(m.filesize) as filesize from fund f left join mdfund m on f.id=m.fid group by f.id,f.title,f.fund_id,f.fund_type,f.ts_created order by f.ts_created desc";
$sth = $this->db->prepare($sql);
$sth->execute();
$rows = $sth->fetchAll();

View File

@ -18,7 +18,7 @@ $this->breadcrumb()->setSeparator(' > ');
<?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['fund_id']; ?> | 类型:<?php echo $md['fund_type']; ?> | 提供数据集:<?php echo $md['datacount']; ?>条,<?php echo $md['filesize']; ?>MB
</div>
<?php endforeach; ?>
<div class="pagenavi"><?= $this->paginator; ?></div>