예제 #1
0
 public function movieAction()
 {
     $page = reqnum("page", 1);
     $pagesize = reqnum("pagesize", 10);
     $stationid = reqnum('stationid', 1);
     $model = new Psys_StationModel();
     $stations = $model->station();
     $data = $model->movieCount($page, $pagesize, $stationid);
     foreach ($data['allrow'] as &$v) {
         $v += array('date' => '0', 'columns' => '0', 'play' => '0', 'pause' => '0', 'view' => '0', 'buffer' => '0', 'playbar' => '0', 'playall' => '0');
     }
     $allnum = $this->totalrows();
     self::inidate($allnum, $page, $pagesize, count($data['allrow']));
     $this->smarty->assign('stations', $stations);
     $this->smarty->assign('stationid', $stationid);
     $this->smarty->assign('data', $data['allrow']);
     $this->forward = 'movie';
 }