+ Add table sort to program::browse.

This commit is contained in:
tianshujie
2023-10-19 10:49:54 +08:00
parent 3499444e5e
commit a3005bb7f1
3 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -238,7 +238,7 @@ $config->program->browse->dtable->fieldList['invested']['name'] = 'invested'
$config->program->browse->dtable->fieldList['invested']['title'] = $lang->program->invested;
$config->program->browse->dtable->fieldList['invested']['minWidth'] = 70;
$config->program->browse->dtable->fieldList['invested']['type'] = 'format';
$config->program->browse->dtable->fieldList['invested']['sortType'] = true;
$config->program->browse->dtable->fieldList['invested']['sortType'] = false;
$config->program->browse->dtable->fieldList['invested']['show'] = true;
$config->program->browse->dtable->fieldList['invested']['group'] = 3;
+1
View File
@@ -62,6 +62,7 @@ class program extends control
$this->view->usersAvatar = $this->user->getAvatarPairs('');
$this->view->PMList = $PMList;
$this->view->progressList = $this->program->getProgressList();
$this->view->param = $param;
$this->display();
}
+2
View File
@@ -193,6 +193,8 @@ dtable
set::footPager(usePager()),
set::canRowCheckable(jsRaw("function(rowID){return this.getRowInfo(rowID).data.type == 'project';}")),
set::onRenderCell(jsRaw('window.renderCell')),
set::orderBy($orderBy),
set::sortLink(createLink('program', 'browse', "status={$status}&orderBy={name}_{sortType}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}&param={$param}")),
set::footToolbar(array
(
'type' => 'btn-group',