Ejemplo n.º 1
0
 public function musicAction()
 {
     $page = reqnum("page", 1);
     $pagesize = reqnum("pagesize", 10);
     $stationid = reqnum('stationid', 1);
     $model = new Psys_StationModel();
     $stations = $model->station();
     $data = $model->musicCount($page, $pagesize, $stationid);
     foreach ($data as &$v) {
         $v += array('date' => '0', 'addalbum' => '0', 'play' => '0', 'pause' => '0', 'like' => '0', 'addsong' => '0', 'addsinger' => '0', 'singer' => '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 = 'music';
 }