public function display() { $session = SessionFactory::create(); $dom = DOMHandlerFactory::create(); $dom->setDocumentFromFile(STATISTICAL_LOG_ANALIZER_HTML)->whereIdIs('login-user')->insertNode($session->get('session-user-name')); $tableFactory = HtmlElementsFactory::create("table"); $tableFactory->data = $this->data; $tableFactory->dataIds = array("date", "time", "transaction_time", "client_ip", "squid_result_code", "client_data", "request_method", "mime_type"); $tableFactory->openTable(); $tableFactory->addTheaderTitle("Date"); $tableFactory->addTheaderTitle("Time"); $tableFactory->addTheaderTitle("Transaction Time"); $tableFactory->addTheaderTitle("Client IP"); $tableFactory->addTheaderTitle("Squid Code"); $tableFactory->addTheaderTitle("Client Data"); $tableFactory->addTheaderTitle("Request Method"); $tableFactory->addTheaderTitle("Mime Type"); $tableFactory->renderTableData(); $tableFactory->closeTable(); $table = $tableFactory->render(); $dom->whereIdIs("squidDataContainer")->insertNode($table); $paginator = PaginatorFactory::create(); $paginator->action = "A_ReadAllSquidData"; $dom->whereIdIs('ul-pagination')->insertNode($paginator->paginationSelect); $dom->display(); }
public function display() { $session = SessionFactory::create(); $dom = DOMHandlerFactory::create(); $dom->setDocumentFromFile(STATISTICAL_LOG_ANALIZER_HTML)->whereIdIs('login-user')->insertNode($session->get('session-user-name')); //TITLE $selectedClientIp = $session->get("selected-client-ip"); $selectedDate = $session->get("selected-date"); $beginTime = $this->data[0]['time']; $endTime = end($this->data)['time']; $title = "<h3>Client (" . $selectedClientIp . ") Data Consumption Table, \n at: " . $selectedDate . " between: " . $beginTime . " and " . $endTime . "</h3>\n <br><a href='index.php?A_ClientDataConsumptionTableOrdered'>Order from highest to lowest consumption</a>"; $dom->whereIdIs("body-title")->insertNode($title); //TITLE $tableFactory = HtmlElementsFactory::create("table"); $tableFactory->data = $this->data; $tableFactory->dataIds = array("time", "client_data", "url"); $tableFactory->openTable(); $tableFactory->addTheaderTitle("Time"); $tableFactory->addTheaderTitle("Client Data Consumption In Kb"); $tableFactory->addTheaderTitle("URL"); $tableFactory->renderTableData(); $tableFactory->closeTable(); $table = $tableFactory->render(); $dom->whereIdIs("squidDataContainer")->insertNode($table); $paginator = PaginatorFactory::create(); $paginator->action = "A_ClientDataConsumptionTable"; $dom->whereIdIs('ul-pagination')->insertNode($paginator->paginationSelect); $dom->display(); }
public function display() { $session = SessionFactory::create(); $dom = DOMHandlerFactory::create(); $dom->setDocumentFromFile(STATISTICAL_LOG_ANALIZER_HTML)->whereIdIs('login-user')->insertNode($session->get('session-user-name')); //TITLE $selectedClientIp = $session->get("selected-client-ip"); $selectedDate = $session->get("selected-date"); $beginTime = $this->data[0]['time']; $endTime = end($this->data)['time']; $title = "<h3>Client (" . $selectedClientIp . ") Domains Request Frequency Table, \n at: " . $selectedDate . "</h3><br><h5>(Ordered from highest to lowest frequency)</h5>"; $dom->whereIdIs("body-title")->insertNode($title); //TITLE $tableFactory = HtmlElementsFactory::create("table"); $tableFactory->data = $this->data; $tableFactory->dataIds = array("time", "frequency", "url"); $tableFactory->openTable(); $tableFactory->addTheaderTitle("Time"); $tableFactory->addTheaderTitle("Frequency"); $tableFactory->addTheaderTitle("URL"); $tableFactory->renderTableData(); $tableFactory->closeTable(); $table = $tableFactory->render(); $dom->whereIdIs("squidDataContainer")->insertNode($table); $paginator = PaginatorFactory::create(); $paginator->action = "A_DomainsRequestTableOrdered"; $dom->whereIdIs('ul-pagination')->insertNode($paginator->paginationSelect); $dom->display(); }
public function display() { $session = SessionFactory::create(); $dom = DOMHandlerFactory::create(); $dom->setDocumentFromFile(STATISTICAL_LOG_ANALIZER_HTML)->whereIdIs('login-user')->insertNode($session->get('session-user-name')); $tableFactory = HtmlElementsFactory::create("table"); $tableFactory->data = $this->data; $tableFactory->dataIds = array("client_ip", "frequency"); $tableFactory->openTable(); $tableFactory->addTheaderTitle("Client IP"); $tableFactory->addTheaderTitle("Frequency"); $tableFactory->renderTableData(); $tableFactory->closeTable(); $table = $tableFactory->render(); $dom->whereIdIs("squidDataContainer")->insertNode($table); $paginator = PaginatorFactory::create(); $paginator->action = "A_ReadClientIpWithFrequency"; $dom->whereIdIs('ul-pagination')->insertNode($paginator->paginationSelect); $dom->display(); }