public function getOutput() { global $gvPath; $ip = $_SERVER['REMOTE_ADDR']; //Check whether the address is registered $device = Device::fromDatabaseByIpAddress($ip); if (!$device) { $page = new WebPageOutput(); $page->setHtmlPageTitle('Dispositivo non riconosciuto'); $page->addHtmlHeader('<meta http-equiv="refresh" content="5">'); $page->setHtmlBodyContent($this->getPageContentForUnknown($ip)); return $page; } if ((int) $device->getDeskNumber() === 0) { // DisplayMain $td_code = $device->getTdCode(); if ($td_code) { $td_code = "?td_code=" . urlencode($td_code); } else { $td_code = ''; } $redirect = new RedirectOutput("{$gvPath}/device/main{$td_code}"); return $redirect; } $num = $device->getDeskNumber(); $redirect = new RedirectOutput("{$gvPath}/device/desk?desk_number={$num}"); return $redirect; }
public function getOutput() { $output = new WebPageOutput(); $output->setHtmlPageTitle($this->getTitle()); $output->setHtmlBodyHeader($this->getHeader()); $output->setHtmlBodyContent($this->getContent()); return $output; }
public function getOutput() { global $gvPath; $output = new WebPageOutput(); $output->setHtmlPageTitle("Pagina di log in"); $output->linkStyleSheet("{$gvPath}/assets/css/normalize.css"); $output->linkStyleSheet("{$gvPath}/assets/css/styleNew.css"); $output->linkStyleSheet("{$gvPath}/assets/css/font-face.css"); $output->importJquery(); //$output->addJavascript( $gvPath . "/assets/js/login.js" ); $output->addJavascript("{$gvPath}/assets/js/animationError.js"); $output->setHtmlBodyHeader($this->getPageHeader()); $output->setHtmlBodyContent($this->getPageContent()); return $output; }
public function getOutput() { global $gvPath; $page = new WebPageOutput(); $page->setHtmlPageTitle($this->getPageTitle()); $page->linkStyleSheet("{$gvPath}/assets/css/style.css"); $page->loadJqueryUi(); $page->addJavascript("{$gvPath}/assets/js/adminStats.js"); $page->addJavascript("{$gvPath}/assets/js/vendor/Chart.min.js"); $page->setHtmlBodyHeader($this->getPageHeader()); $page->setHtmlBodyContent($this->getPageContent()); return $page; }
public function getOutput() { global $gvPath; $page = new WebPageOutput(); $page->setHtmlPageTitle($this->getPageTitle()); $page->linkStyleSheet("{$gvPath}/assets/css/style.css"); $page->importJquery(); $page->addJavascript("{$gvPath}/assets/js/recordRemove.js"); $page->addJavascript("{$gvPath}/assets/js/topicalDomainList.js"); $page->setHtmlBodyHeader($this->getPageHeader()); $page->setHtmlBodyContent($this->getPageContent()); return $page; }
public function __construct($errorTitle, $errorMsg, $errorFooter = '') { parent::__construct(false, true); $this->setHtmlPageTitle($errorTitle); $this->setHtmlBodyHeader("<h1>{$errorTitle}</h1>"); $this->setHtmlBodyContent("<p>{$errorMsg}</p>"); $this->setHtmlBodyFooter($errorFooter); }
public function getOutput() { global $gvPath; $page = new WebPageOutput(); $page->setHtmlPageTitle("Pagina operatore"); $page->linkStyleSheet("{$gvPath}/assets/css/style.css"); $page->importJquery(); $page->addJavascript("{$gvPath}/assets/js/opPage.js"); $page->setHtmlBodyHeader($this->getPageHeader()); $page->setHtmlBodyContent($this->getPageContent()); return $page; }
public function getOutput() { global $gvPath; $output = new WebPageOutput(); $output->setHtmlPageTitle('DisplayMain'); $output->importJquery(); $output->addJavascript("{$gvPath}/assets/js/displayMain.js"); $output->linkStyleSheet("{$gvPath}/assets/css/normalize.css"); $output->linkStyleSheet("{$gvPath}/assets/css/style.css"); $output->setHtmlBodyContent($this->getContent()); return $output; }
public function getOutput() { global $gvPath; if ($this->redirect) { return $this->redirect; } $output = new WebPageOutput(); $output->setHtmlPageTitle('Prenotazione ticket online'); $output->importJquery(); $output->addJavascript("{$gvPath}/assets/js/web/tdSelection.js"); $output->linkStyleSheet("{$gvPath}/assets/css/style.css"); $output->setHtmlBodyHeader($this->getHeader()); $output->setHtmlBodyContent($this->getContent()); return $output; }
public function getOutput() { $page = new WebPageOutput(); $page->setHtmlPageTitle($this->getTitle()); $page->setHtmlBodyHeader($this->getPageHeader()); $page->setHtmlBodyContent($this->getPageContent()); $page->setHtmlBodyFooter($this->getPageFooter()); return $page; }
public function getOutput() { $page = new WebPageOutput(); $page->setHtmlPageTitle('Pannello amministrazione FastQueue'); $page->setHtmlBodyHeader($this->getPageHeader()); $page->setHtmlBodyContent($this->getPageContent()); $page->setHtmlBodyFooter($this->getPageFooter()); return $page; }
public function getOutput() { global $gvPath; if ($this->redirect) { return $this->redirect; } $output = new WebPageOutput(); $output->setHtmlPageTitle('Verifica numero'); $output->linkStyleSheet("{$gvPath}/assets/css/style.css"); $output->setHtmlBodyHeader($this->getHeader()); $output->setHtmlBodyContent($this->getContent()); return $output; }
public function getOutput() { global $gvPath; if (!isset($_GET['q']) || !trim($_GET['q'])) { // Redirect to home page return new RedirectOutput("{$gvPath}/globalServer/homePage"); } $this->city = strtolower($_GET['q']); $output = new WebPageOutput(); $output->linkStyleSheet("{$gvPath}/assets/css/style.css"); $output->setHtmlPageTitle($this->getTitle()); $output->setHtmlBodyHeader($this->getHeader()); $output->setHtmlBodyContent($this->getContent()); return $output; }
public function getOutput() { global $gvPath; if (!$this->desk_number) { // Something is wrong with the desk number // Do not redirect back to /device page otherwise // redirect loop may happen $redirect = new RedirectOutput("{$gvPath}/application/loginPage"); return $redirect; } $content = $this->getPageContent(); $output = new WebPageOutput(); $output->setHtmlPageTitle('DisplayDesk'); $output->importJquery(); $output->addJavascript("{$gvPath}/assets/js/displayDesk.js"); $output->setHtmlBodyContent($this->getPageContent()); return $output; }
public function getOutput() { global $gvPath; $output = new WebPageOutput(); $output->linkStyleSheet("{$gvPath}/assets/css/style.css"); $output->importJquery(); $output->addJavascript("{$gvPath}/assets/js/adminDeviceEdit.js"); $output->setHtmlPageTitle($this->getPageTitle()); $output->setHtmlBodyHeader($this->getPageHeader()); $output->setHtmlBodyContent($this->getPageContent()); return $output; }
public function getOutput() { global $gvPath; $output = new WebPageOutput(); $output->linkStyleSheet("{$gvPath}/assets/css/style.css"); $output->setHtmlPageTitle($this->getPageTitle()); $output->setHtmlBodyHeader($this->getPageHeader()); $output->setHtmlBodyContent($this->getPageContent()); return $output; }