private function listImpl($listAble, XPager $xpager, $response, $currentBaseUrl) { /*{{{*/ $ids = $listAble->getIds4ListAble(); $ids = $xpager->splitPage($ids); $response->listAble = $listAble; $response->sets = $listAble->find($ids); $response->xpager = $xpager; $varsOfUrl = $listAble->getValuedProperties4ListAble(); $varsOfUrl['nowPage'] = ''; $response->pageLink = PageNav::getNavLink(PageNav::getPageNavTemplate(PageNav::getPageUrlByVars($currentBaseUrl, $varsOfUrl)), $xpager->nowPage, $xpager->pageSize, $xpager->total); }
public function recordList($request, $response) { /*{{{*/ $vars = $request->getRequest('vars', $_REQUEST); $vars = array_merge($this->initVars(), $vars); $ids = DAL::get()->find_id_list4Search('patienthealthrecord', $vars); $xpager = new XPager($request->getRequest('nowPage', 1), 15); $ids = $xpager->splitPage($ids); $response->recordList = DAL::get()->find('patienthealthrecord', $ids); $response->vars = $vars; $vars['nowPage'] = ''; $response->xpager = $xpager; $response->pageLink = PageNav::getNavLink(PageNav::getPageNavTemplate(PageNav::getPageUrlByVars('/patientfile/recordlist?', $vars)), $xpager->nowPage, $xpager->pageSize, $xpager->total); }
public function showExceptionLogList($request, $response) { /*{{{*/ $response->deviceOsList = DAL::get()->queryDeviceOsList('ExceptionLog'); $response->deviceVersionList = DAL::get()->queryDeviceVersionList('ExceptionLog'); $response->typeList = DAL::get()->queryExceptionTypeList('ExceptionLog'); $response->appVersionList = DAL::get()->queryAppVersionList('ExceptionLog'); $vars = $request->getRequest('vars', $_REQUEST); if (empty($vars)) { return false; } $ids = DAL::get()->find_id_list4Search('ExceptionLog', $vars); $nowPage = isset($vars['nowPage']) ? $vars['nowPage'] : 1; $xpager = new XPager($nowPage, 15); $ids = $xpager->splitPage($ids); $response->logList = DAL::get()->find('ExceptionLog', $ids); $response->vars = $vars; $vars['nowPage'] = ''; $response->xpager = $xpager; $response->pageLink = PageNav::getNavLink(PageNav::getPageNavTemplate(PageNav::getPageUrlByVars('/wap/showexceptionloglist?', $vars)), $xpager->nowPage, $xpager->pageSize, $xpager->total); }