From 540728e3facbe94a8d76c7c103f60d6228224e02 Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Wed, 18 Nov 2020 15:32:46 +0800 Subject: [PATCH] * Fix program detail. --- module/program/control.php | 10 +++------- module/program/view/pgmbrowsebylist.html.php | 9 +++------ 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/module/program/control.php b/module/program/control.php index d2aaea9c6e..d2de9572f6 100644 --- a/module/program/control.php +++ b/module/program/control.php @@ -59,7 +59,7 @@ class program extends control * @access public * @return void */ - public function PGMBrowse($status = 'all', $orderBy = 'order_asc', $recTotal = 0, $recPerPage = 50, $pageID = 1) + public function PGMBrowse($status = 'all', $orderBy = 'order_asc') { $this->lang->navGroup->program = 'program'; $this->lang->program->switcherMenu = $this->program->getPGMCommonAction(); @@ -70,16 +70,13 @@ class program extends control $programType = $this->cookie->programType ? $this->cookie->programType : 'bylist'; - $this->app->loadClass('pager', $static = true); - $pager = new pager($recTotal, $recPerPage, $pageID); - if($programType === 'bygrid') { - $programs = $this->program->getProgramStats($status, 20, $orderBy, $pager); + $programs = $this->program->getProgramStats($status, 20, $orderBy); } else { - $programs = $this->program->getPGMList($status, $orderBy, $pager, true); + $programs = $this->program->getPGMList($status, $orderBy, null, true); } $this->view->title = $this->lang->program->PGMBrowse; @@ -88,7 +85,6 @@ class program extends control $this->view->programs = $programs; $this->view->status = $status; $this->view->orderBy = $orderBy; - $this->view->pager = $pager; $this->view->users = $this->loadModel('user')->getPairs('noletter'); $this->view->programType = $programType; diff --git a/module/program/view/pgmbrowsebylist.html.php b/module/program/view/pgmbrowsebylist.html.php index f29d515774..1fd5fb695d 100644 --- a/module/program/view/pgmbrowsebylist.html.php +++ b/module/program/view/pgmbrowsebylist.html.php @@ -53,9 +53,9 @@