$html = new HtmlModule($pakiti); $hostId = $html->getHttpGetVar("hostId"); $hostname = $html->getHttpGetVar("hostname"); $pageNum = $html->getHttpGetVar("pageNum", 0); $pageSize = $html->getHttpGetVar("pageSize", HtmlModule::$DEFAULTPAGESIZE); $sort = $html->getHttpGetVar("sortBy", "receivedOn"); $host = null; if ($hostId != null) { $host =& $pakiti->getManager("HostsManager")->getHostById($hostId); } else { if ($hostname != null) { $host =& $pakiti->getManager("HostsManager")->getHostByHostname($hostname); } } if ($host == null) { $html->fatalError("HostId nor Hostname was supplied"); } $html->addHtmlAttribute("title", "Host: " . $host->getHostname()); $reports =& $pakiti->getManager("ReportsManager")->getHostReports($host, $sort, $pageSize, $pageNum); $reportsCount =& $pakiti->getManager("ReportsManager")->getHostReportsCount($host); //---- Output HTML $html->printHeader(); ?> <div class="paging"> <?php print $html->paging($reportsCount, $pageSize, $pageNum); ?> </div> <table class="tableList"> <tr>