Exemplo n.º 1
0
 public function appAction()
 {
     $page = reqnum("page", 1);
     $pagesize = reqnum("pagesize", 10);
     $stationid = reqnum('stationid', 1);
     $model = new Psys_StationModel();
     $stations = $model->station();
     $data = $model->appCount($page, $pagesize, $stationid);
     foreach ($data as &$v) {
         $v += array('date' => '0', 'click' => '0', 'down' => '0', 'downfinish' => '0', 'update' => '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 = 'app';
 }