redirect(JRoute :: _('index.php?option=' . JRequest :: getVar('option') . '&view=search&layout=browse&href=' . base64_encode("xmlResults.action?" . "query=$query"), false)); $option = JRequest :: getVar('option', NULL); $view = JRequest :: getVar('view', NULL); $itemId = JRequest :: getVar('Itemid', NULL); $templateId = JRequest :: getVar('templateId', NULL); $notificationService = JRequest :: getVar('notificationService', NULL); $queryId = JRequest :: getVar('queryId', NULL); $date = JRequest :: getVar('date', NULL); $resultId = JRequest :: getVar('resultId', NULL); $pageNumber = JRequest :: getVar('pageNumber', 1); $pageSize = JRequest :: getVar('pageSize', 10); $queryId2 = JRequest :: getVar('queryId2', NULL); $fromDate = JRequest :: getVar('fromDate', 0); $toDate = JRequest :: getVar('toDate', time() * 1000); $title = (($templateId == NULL) || ($notificationService == NULL) || ($queryId == NULL) || ($resultId == NULL)) ? '' : $this -> getModel('alert') -> getFullTopicName($templateId, $notificationService, $queryId, $resultId); $totalResults = (($notificationService == null) || ($queryId == NULL) || ($date == NULL) || ($resultId == NULL)) ? -1 : $this -> getModel('alert') -> countAlertResults($notificationService, $queryId, $date, $resultId); $totalPages = ceil($totalResults / $pageSize); $offset = ($pageNumber - 1) * $pageSize; $resultPage = $this -> getModel('alert') -> getAlertResults($notificationService, $queryId2, $resultId, $fromDate, $toDate, $pageSize, $offset); $this -> assign('option', $option); $this -> assign('view', $view); $this -> assign('itemId', $itemId); $this -> assign('templateId', $templateId); $this -> assign('notificationService', $notificationService); $this -> assign('queryId', $queryId); $this -> assign('date', $date); $this -> assign('resultId', $resultId); $this -> assign('queryId2', $queryId2); $this -> assign('fromDate', $fromDate); $this -> assign('toDate', $toDate); $this -> assign('title', $title); $this -> assign('pageNumber', $pageNumber); $this -> assign('pageSize', $pageSize); $this -> assign('totalResults', $totalResults); $this -> assign('totalPages', $totalPages); $this -> assign('resultPage', $resultPage); $this -> assign('limit', $pageSize); $this -> assign('offset', $offset); parent :: display($template); } } ?>