function GetMapTopics() { $page = $this->Post['page'] ? $this->Post['page'] : $this->Get['page']; $pageSize = $this->Config['map_topic_pagesize']; $pstepsize = $this->Config['page_step_size_topic']; $bid = $this->QueryString('build_id'); $clientFun = $this->QueryString('clientfun'); if ($page == '') { $page = 1; } $containers = array(); $building = array(); $building['name'] = 'building'; $building['ids'] = $bid; $containers[] = $building; $result = $this->TopicLogic->SearchTopics2('', $containers, false, '', '', '', '', '', '', '', '', '', '', '', '', $page, $pageSize, true, false, true); $total = $result['total']; $records = $result['data']; $url = "index.php?mod=map"; $pageHtml = AjaxPager($url, $pageSize, $page, $pstepsize, $total, $clientFun, true); //$pageHtml=NewPager($url, $pageSize, $page,$pstepsize, $total); $this->TemplateHandler->AssignValue('cpage', $page); $this->TemplateHandler->AssignValue('pageHtml', $pageHtml); $this->TemplateHandler->AssignValue('total', $total); $this->TemplateHandler->AssignValue('topics', $records); $this->TemplateHandler->Display('map_topic_list.html'); }
function SearchUsers() { $fid = $this->QueryString('fid'); $page = $this->QueryString('page'); if (!$page || $page == '') { $page = 1; } $pageSize = $this->Config['search_user_pagesize']; $current_id = ''; if ($this->IsLogin == 1) { $current_id = $this->User['uid']; } $clientfun = $this->QueryString('clientfun'); $filterJson = $this->UserBiz->ParseSearchFields(); $result = $this->UserBiz->DoSearchUsers($filterJson, $page, $pageSize); //$result=$this->UserLogic->SearchUsers('',$city,$district,'',$starttime,$endtime,$gendar,false,false,false,$touxiang,$page,$pageSize,$paging=true,$current_id,false,$province); $total = $result['total']; $users = $result['data']; $url = "index.php?mod=user&action=search"; $pager = AjaxPager($url, $pageSize, $page, 6, $total, $clientfun); $this->TemplateHandler->AssignValue("users", $users); $this->TemplateHandler->AssignValue("total", $total); $this->TemplateHandler->AssignValue("pager", $pager); $this->TemplateHandler->Display('user_list_include_1.html'); //echo urldecode(json_encode(ArrayToJson($result['data']))); }