作者 王智

baoxiu22

... ... @@ -77,7 +77,18 @@ class Dashboard extends Backend
'addonversion' => $addonVersion,
'uploadmode' => $uploadmode,
]);
$ZhanDianArr = Db::name('zhandian')->select();
foreach ($ZhanDianArr as $k => $v) {
$data[$k]['zhandian_name'] = $v['zhandian'];
$BaoXiuZhandian = Db::name('baoxiudan')->where('zhandian_id', $v['id'])->where($map)->select();
if (empty($BaoXiuZhandian)) {
$data[$k]['baoxiu_num'] = 0;
} else {
$data[$k]['baoxiu_num'] = count($BaoXiuZhandian);
}
}
$this->view->assign("row", $data);
return $this->view->fetch();
}
... ...
... ... @@ -369,7 +369,9 @@
<div class="tab-pane fade" id="two">
<div class="row">
<div class="col-xs-12">
<p>自定义数据</p>
{foreach name="data" item="vo"}
<div>{vo.zhandian_name}</div>
{/foreach}
</div>
</div>
</div>
... ...