function actionEntry() { header("cache-control: public"); $session = $this->getSession(); $useridS = $session->get('userid_sess'); $roleS = $session->get('role_sess'); $storeid = $session->get('storeid_sess'); $page = $this->get('page', 1); $limit = 50; $MUser = $this->LoadApiModelMedical('user'); // exit; $exArr = array('page' => $page, 'limit' => $limit, 'fields' => '*'); $whArr = array('storeid' => $storeid); //处理过滤条件 // $this->_set_query_where($whArr); $this->assign_query_where($whArr, "role,or:(username%.email%.mobile):username"); //end 处理过滤条件 $exArr['order'] = 'id desc'; $exArr['join_wx'] = true; $dataArr = $MUser->getUsers(null, $whArr, $exArr); $userArr = $dataArr['data']; $total = $dataArr['total']; $privilegesArr = $this->getPrivileges(); $departmentArr = $this->getDepartment(); $tree = new CTree(); $departmentArr = $tree->treeToDimensions($departmentArr); $dutyArr = $this->getDuty(); $pager = CPager::APager($page, $total, $limit); $this->assign('userArr', $userArr); $this->assign('total', $total); $this->assign('pager', $pager); $message = $session->flushMessage(); $this->assign('message', $message); $this->assign('privilegesArr', $privilegesArr); $this->assign('departmentArr', $departmentArr); $this->assign('dutyArr', $dutyArr); $this->assign('current', 'list'); $this->getize(); $this->display('user'); }
// skin doesn't support pager, let's draw all by ourself // { //we'll need for our own extract $GLOBALS include "config.php"; ?> <script language="javascript"> function ConfirmUnsaved() { return confirm('Вы уверены что хотите переключить редактор? Несохранённые данные будут потеряны!'); } </script> <?php if (!isset($a)) { $a = ""; } $PGR = new CPager($DIRS["pager_data"], $DIRS["pager_list"]); $list = $PGR->GetPagesList(); if (!isset($editor)) { $editor = "html"; } if (isset($furl)) { $furl = str_replace(">", "&", $furl); } switch ($a) { case "add": if (isset($mod) && $mod == "add") { if (isset($editor) && $editor == "html") { $text = $FLTR->DirectProcessHTML($text); } else { $text = $FLTR->DirectProcessText($text, $nb, $kt); }