/** * Zeigt (Wenn mehr als eine Seite notwendig) eine Seitennavigation an */ function getPageNavigation() { if ($this->getPageCount() <= 1 || $this->isLimitActive() != true) { return new Text(""); } $maxPage = $this->getPageCount(); $div = new Div(); $label = new Text("Seite: "); $label->setFontsize(2); $div->add($label); for ($i = 1; $i <= $maxPage; $i++) { $txt = $i; $link = new Link("?changeDbPage" . $this->TABLENAME . "=" . $i, $txt, false); if ($this->CURRENT_PAGE == $i) { $ft = new FontType(); $ft->setFontsize(2); $ft->setColor($_SESSION['config']->COLORS['hover']); $link->setFontType($ft); } $div->add($link); if ($i < $maxPage) { $label = new Text(", "); $label->setFontsize(2); $div->add($label); } } return $div; }
function getFonttype() { if ($this->FONTTYPE == null) { $this->FONTTYPE = new FontType(); } $type = $this->FONTTYPE->FONT; $size = $this->FONTTYPE->FONTSIZE; $bold = $this->FONTTYPE->BOLD; $italic = $this->FONTTYPE->ITALIC; $under = $this->FONTTYPE->getUnderline(); $color = $this->FONTTYPE->getColor(); $ft = new FontType($type, $size, $bold, $italic, $under); $ft->setColor($color); return $ft; }
function getPageNavigation() { if ($this->getPageCount() <= 1) { return; } $maxPage = $this->getPageCount(); $label = new Text("Seite: "); $label->setFontsize(2); $label->show(); for ($i = 1; $i <= $maxPage; $i++) { $txt = new Text($i); //$txt = "<font color='" .$_SESSION['config']->COLORS['hover'] ."' >" .$txt ."</font>"; if ($this->CURRENT_PAGE == $i) { $ft = new FontType(); $ft->setBold(true); $ft->setColor($_SESSION['config']->COLORS['hover']); $txt->setFonttype($ft); } if ($this->LINKPREFIX != "" && substr($this->LINKPREFIX, strlen($this->LINKPREFIX) - 1, 1) != "&") { $this->LINKPREFIX = $this->LINKPREFIX . "&"; } $link = new Link($this->PARENT_PAGE . "?" . $this->LINKPREFIX . "changeBbPage=" . $i . "&Current_BB_Path=" . substr($this->PATH, strlen($_SERVER['DOCUMENT_ROOT'])), $txt, false); $link->show(); if ($i < $maxPage) { $label = new Text(", "); $label->setFontsize(2); $label->show(); } } }