* Finish task #9002.

This commit is contained in:
holan20180123
2021-01-13 15:04:11 +08:00
parent 2756ad7ab2
commit c9f0612924
31 changed files with 399 additions and 186 deletions
+3 -2
View File
@@ -18,17 +18,18 @@ class userModel extends model
*
* @param array $users
* @param string $account
* @param string $fromModule
* @access public
* @return html
*/
public function setUserList($users, $account)
public function setUserList($users, $account, $fromModule = 'user')
{
if(!isset($users[$account]))
{
$user = $this->getById($account);
if($user and $user->deleted) $users[$account] = zget($user, 'realname', $account);
}
return html::select('account', $users, $account, "onchange=\"switchAccount(this.value, '{$this->app->getMethodName()}')\" class='form-control chosen'");
return html::select('account', $users, $account, "onchange=\"switchAccount(this.value, '{$this->app->getMethodName()}', '{$fromModule}')\" class='form-control chosen'");
}
/**