* finish task #4705.
This commit is contained in:
@@ -900,7 +900,7 @@ class user extends control
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function dynamic($period = 'today', $account = '', $recTotal = 0, $direction = 'next')
|
||||
public function dynamic($period = 'today', $account = '', $recTotal = 0, $date = '', $direction = 'next')
|
||||
{
|
||||
/* set menus. */
|
||||
$this->lang->set('menugroup.user', 'company');
|
||||
@@ -926,8 +926,9 @@ class user extends control
|
||||
/* Append id for secend sort. */
|
||||
$orderBy = $direction == 'next' ? 'date_desc' : 'date_asc';
|
||||
$sort = $this->loadModel('common')->appendOrder($orderBy);
|
||||
$date = empty($date) ? '' : date('Y-m-d', $date);
|
||||
|
||||
$actions = $this->loadModel('action')->getDynamic($account, $period, $orderBy, $pager);
|
||||
$actions = $this->loadModel('action')->getDynamic($account, $period, $sort, $pager, 'all', 'all', $date, $direction);
|
||||
|
||||
$this->view->title = $this->lang->user->common . $this->lang->colon . $this->lang->user->dynamic;
|
||||
$this->view->position[] = $this->lang->user->dynamic;
|
||||
|
||||
Reference in New Issue
Block a user