* finish task #3759.

This commit is contained in:
wangyidong
2018-04-04 15:01:19 +08:00
parent 5105af3d89
commit 6975faef68
4 changed files with 115 additions and 49 deletions
+5 -1
View File
@@ -533,7 +533,7 @@ class my extends control
* @access public
* @return void
*/
public function dynamic($type = 'today', $orderBy = 'date_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1)
public function dynamic($type = 'today', $orderBy = 'date_desc', $recTotal = 0, $recPerPage = 50, $pageID = 1)
{
/* Save session. */
$uri = $this->app->getURI(true);
@@ -559,6 +559,8 @@ class my extends control
$this->view->title = $this->lang->my->common . $this->lang->colon . $this->lang->my->dynamic;
$this->view->position[] = $this->lang->my->dynamic;
$actions = $this->loadModel('action')->getDynamic($this->app->user->account, $type, $sort, $pager);
/* Assign. */
$this->view->type = $type;
$this->view->recTotal = $recTotal;
@@ -567,6 +569,8 @@ class my extends control
$this->view->orderBy = $orderBy;
$this->view->pager = $pager;
$this->view->actions = $this->loadModel('action')->getDynamic($this->app->user->account, $type, $sort, $pager);
$this->view->dateGroups = $this->action->buildDateGroup($actions);
$this->view->allCount = $this->action->getCount();
$this->display();
}