This commit is contained in:
songchenxuan
2023-06-20 16:42:00 +08:00
parent 1e90302e04
commit d3d1ab6f4e
+5 -1
View File
@@ -275,10 +275,14 @@ class mail extends control
return print(js::alert($this->lang->mail->successSended) . js::locate(inlink('test'), 'parent'));
}
$users = $this->dao->select('*')->from(TABLE_USER)->where('email')->ne('')->andWhere('deleted')->eq(0)->orderBy('account')->fetchAll();
$userPairs = array();
foreach($users as $user) $userPairs[$user->account] = $user->realname . ' ' . $user->email;
$this->view->title = $this->lang->mail->common . $this->lang->colon . $this->lang->mail->test;
$this->view->position[] = html::a(inlink('index'), $this->lang->mail->common);
$this->view->position[] = $this->lang->mail->test;
$this->view->users = $this->dao->select('account, CONCAT(realname, " ", email) AS email' )->from(TABLE_USER)->where('email')->ne('')->andWhere('deleted')->eq(0)->orderBy('account')->fetchPairs();
$this->view->users = $userPairs;
$this->display();
}