* Adjust code.

This commit is contained in:
tianshujie98
2021-06-12 21:32:31 +08:00
parent 16b3845b2e
commit 48ddd1957b
6 changed files with 15 additions and 6 deletions
+10 -6
View File
@@ -701,14 +701,18 @@ class my extends control
$uri = $this->app->getURI(true);
$this->session->set('meetingList', $uri, 'my');
/* Load pager. */
$this->app->loadClass('pager', $static = true);
if($this->app->getViewType() == 'mhtml') $recPerPage = 10;
$pager = pager::init($recTotal, $recPerPage, $pageID);
$meetings = $this->meeting->getListByUser($browseType, $orderBy);
$this->view->title = $this->lang->meeting->common . $this->lang->colon . $this->lang->meeting->browse;
$this->view->meetings = $this->meeting->getListByUser($browseType, $orderBy, $pager);
/* Pager. */
$this->app->loadClass('pager', $static = true);
$recTotal = count($meetings);
$pager = new pager($recTotal, $recPerPage, $pageID);
$meetings = array_chunk($meetings, $pager->recPerPage);
$this->view->title = $this->lang->my->common . $this->lang->colon . $this->lang->my->meeting;
$this->view->browseType = $browseType;
$this->view->meetings = empty($meetings) ? $meetings : $meetings[$pageID - 1];
$this->view->orderBy = $orderBy;
$this->view->pager = $pager;
$this->view->depts = $this->loadModel('dept')->getOptionMenu();
+1
View File
@@ -18,6 +18,7 @@ $lang->my->project = "My Projects";
$lang->my->execution = "My {$lang->executionCommon}s";
$lang->my->issue = 'My Issues';
$lang->my->risk = 'My Risks';
$lang->my->meeting = 'My Meetings';
$lang->my->profile = 'My Profile';
$lang->my->dynamic = 'My Dynamics';
$lang->my->team = 'My Team';
+1
View File
@@ -18,6 +18,7 @@ $lang->my->project = "My Projects";
$lang->my->execution = "My {$lang->executionCommon}s";
$lang->my->issue = 'My Issues';
$lang->my->risk = 'My Risks';
$lang->my->meeting = 'My Meetings';
$lang->my->profile = 'My Profile';
$lang->my->dynamic = 'My Dynamics';
$lang->my->team = 'My Team';
+1
View File
@@ -18,6 +18,7 @@ $lang->my->project = "My Projects";
$lang->my->execution = "My {$lang->executionCommon}s";
$lang->my->issue = 'My Issues';
$lang->my->risk = 'My Risks';
$lang->my->meeting = 'My Meetings';
$lang->my->profile = 'My Profile';
$lang->my->dynamic = 'My Dynamics';
$lang->my->team = 'My Team';
+1
View File
@@ -18,6 +18,7 @@ $lang->my->project = "My Projects";
$lang->my->execution = "My {$lang->executionCommon}s";
$lang->my->issue = 'My Issues';
$lang->my->risk = 'My Risks';
$lang->my->meeting = 'My Meetings';
$lang->my->profile = 'My Profile';
$lang->my->dynamic = 'My Dynamics';
$lang->my->team = 'My Team';
+1
View File
@@ -18,6 +18,7 @@ $lang->my->project = "我的项目";
$lang->my->execution = "我的{$lang->executionCommon}";
$lang->my->issue = '我的问题';
$lang->my->risk = '我的风险';
$lang->my->meeting = '我的会议';
$lang->my->profile = '我的档案';
$lang->my->dynamic = '我的动态';
$lang->my->team = '团队';