* Add company-browse dtable orderby.
This commit is contained in:
@@ -2357,7 +2357,7 @@ EOF;
|
||||
'message' => array('ajaxgetmessage'),
|
||||
);
|
||||
|
||||
if(!empty($this->app->user->modifyPassword) and (!isset($beforeValidMethods[$module]) or !in_array($method, $beforeValidMethods[$module]))) return print(js::locate(helper::createLink('my', 'changepassword')));
|
||||
if(!empty($this->app->user->modifyPassword) and (!isset($beforeValidMethods[$module]) or !in_array($method, $beforeValidMethods[$module]))) return helper::header('location', helper::createLink('my', 'changePassword'));
|
||||
if(!$this->loadModel('user')->isLogon() and $this->server->php_auth_user) $this->user->identifyByPhpAuth();
|
||||
if(!$this->loadModel('user')->isLogon() and $this->cookie->za) $this->user->identifyByCookie();
|
||||
if($this->isOpenMethod($module, $method)) return true;
|
||||
|
||||
@@ -46,7 +46,7 @@ class company extends control
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function browse($browseType = 'inside', $param = 0, $type = 'bydept', $orderBy = 'id', $recTotal = 0, $recPerPage = 20, $pageID = 1)
|
||||
public function browse($browseType = 'inside', $param = 0, $type = 'bydept', $orderBy = 'id_asc', $recTotal = 0, $recPerPage = 20, $pageID = 1)
|
||||
{
|
||||
$this->lang->navGroup->company = 'admin';
|
||||
|
||||
|
||||
@@ -69,6 +69,8 @@ $tableData = initTableData($users, $this->config->company->user->dtable->fieldLi
|
||||
dtable
|
||||
(
|
||||
setID('userList'),
|
||||
set::orderBy($orderBy),
|
||||
set::sortLink(createLink('company', 'browse', "browseType={$browseType}¶m={$param}&type={$type}&orderBy={name}_{sortType}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}")),
|
||||
set::cols($this->config->company->user->dtable->fieldList),
|
||||
set::data($tableData),
|
||||
set::checkable(common::hasPriv('user', 'batchEdit')),
|
||||
|
||||
Reference in New Issue
Block a user