Exemplo n.º 1
0
 /**
  * returns the text field to select a specific page
  *
  * @return HTMLInput
  */
 public function getPageSelectionField()
 {
     $IPage = new HTMLInput("page", "text", $this->multiPageMode[1] + 1);
     $IPage->onkeyup("if(event.keyCode == 13 && this.value > 0) contentManager.loadPage('{$this->multiPageMode[3]}',this.value - 1);");
     $IPage->hasFocusEvent(true);
     return $IPage;
 }
Exemplo n.º 2
0
 public function buildFlipPageLine($where = "top")
 {
     if ($this->multiPageDetails["total"] == null) {
         return;
     }
     if (!$this->showFlipPage) {
         return;
     }
     $I = new HTMLInput("targetPage", "text", $this->multiPageDetails["page"] + 1);
     $I->onEnter("javascript:contentManager.loadPage('" . $this->multiPageDetails["target"] . "', this.value - 1);");
     $I->style("width: 30px; float: right; text-align: right;");
     $I->hasFocusEvent(true);
     $wholeLine2 = array($this->getPageBrowser());
     if ($where == "top" or $where == "bottom") {
         if ($this->tableMode == "BrowserRight") {
             $wholeLine1 = array($this->getSettingsButton(), $I . "<span style=\"float:left;\">" . $this->multiPageDetails["total"] . " " . ($this->multiPageDetails["total"] != 1 ? "Einträge" : "Eintrag") . "</span>");
             $this->table->addRow($wholeLine1);
             $this->table->addRowColspan(2, count($this->referenceLine) - 1);
         }
         if ($this->tableMode == "BrowserLeft") {
             $wholeLine1 = array($I . "<span style=\"float:left;\">" . $this->multiPageDetails["total"] . " " . ($this->multiPageDetails["total"] != 1 ? "Einträge" : "Eintrag") . "</span>");
             $wholeLine1 = array_pad($wholeLine1, count($this->referenceLine) - 1, "");
             $wholeLine1[] = $this->getSettingsButton();
             $this->table->addRow($wholeLine1);
             $this->table->addRowColspan(1, count($this->referenceLine) - 1);
             $this->setColStyle($this->referenceLine[count($this->referenceLine) - 1], "width:20px;");
         }
         $this->table->addRow($wholeLine2);
         $this->table->addRowColspan(1, count($this->referenceLine));
     }
 }