public function regAction() { $page = reqnum("page", 1); $pagesize = reqnum("pagesize", 10); $stationid = reqnum('stationid', 1); $model = new Psys_StationModel(); $stations = $model->station(); $data = $model->regCount($page, $pagesize, $stationid); foreach ($data as &$v) { $v += array('date' => '0', 'getphonecode' => '0', 'submitreg' => '0', 'regsuccessios' => '0', 'regsuccessandroid' => '0', 'regsuccesswp' => '0', 'regsuccesselse' => '0'); } $allnum = $this->totalrows(); self::inidate($allnum, $page, $pagesize, count($data)); $this->smarty->assign('stations', $stations); $this->smarty->assign('stationid', $stationid); $this->smarty->assign('data', $data); $this->forward = 'reg'; }