...
|
...
|
@@ -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();
|
|
|
}
|
|
|
|
...
|
...
|
|