Ejemplo n.º 1
0
 /**
  * Standard-Angezeige.
  *
  * ist ein Content definiert, wird dieser ebenfalls mit angegeben.   
  */
 function show()
 {
     echo "<a name='" . $this->NAME . "' ";
     if ($this->XPOS > 0 && $this->YPOS > 0) {
         echo " style=\"  position:absolute; top:" . $this->YPOS . "px; left:" . $this->XPOS . "px; \" ";
     }
     if ($this->XPOS < 0 && $this->YPOS > 0) {
         echo " style=\"  position:absolute; top:" . $this->YPOS . "px; right:" . $this->XPOS * -1 . "px; \" ";
     }
     if ($this->XPOS < 0 && $this->YPOS < 0) {
         echo " style=\"  position:absolute; bottom:" . $this->YPOS * -1 . "px; right:" . $this->XPOS * -1 . "px; \" ";
     }
     if ($this->XPOS > 0 && $this->YPOS < 0) {
         echo " style=\"  position:absolute; bottom:" . $this->YPOS * -1 . "px; left:" . $this->XPOS . "px; \" ";
     }
     echo $this->getToolTipTag() . ">";
     if (get_class($this->TEXT) && method_exists($this->TEXT, "show")) {
         $this->TEXT->show();
     } else {
         $t = new Text($this->TEXT);
         $t->setFilter(false);
         $t->show();
     }
     echo "</a>";
 }
Ejemplo n.º 2
0
 function showDescription()
 {
     $spc = new Spacer();
     $spc->show();
     $td = new Text("Beschreibung:", 2, true);
     $td->show();
     $d = new Text($this->getDescription());
     $d->show();
 }
Ejemplo n.º 3
0
 /**
  * zeigt die Checkboxs an
  */
 function show()
 {
     $x = "<input id = '" . $this->NAME . "'  type='checkbox' name='" . $this->NAME . "' value = '" . $this->WERT . "' " . $this->getToolTipTag() . " ";
     if ($this->isDisabled()) {
         $x .= " disabled ";
     }
     if ($this->isSelected()) {
         $x .= " checked ";
     }
     $x .= $this->getStyleString();
     $x .= $this->getToolTipTag();
     $x .= "> " . $this->TEXT . " ";
     $text = new Text($x);
     $text->setFilter(false);
     $text->show();
 }
 /**
  * Standard Anzeige-Methode
  */
 public function show()
 {
     $this->checkRequests();
     $t = new Text("");
     if ($this->TYPE != null) {
         switch ($this->TYPE) {
             case $this->TYPE_SENSOR_WERT:
                 if ($this->checkSensorWertTermEditorMask(false)) {
                     $t = $this->getSensorWertTermEditorMask();
                 } else {
                     $t = new Text("gespeichert");
                 }
                 break;
             case $this->TYPE_SENSOR_STATUS:
                 if ($this->checkSensorStatusTermEditorMask(false)) {
                     $t = $this->getSensorStatusTermEditorMask();
                 } else {
                     $t = new Text("gespeichert");
                 }
                 break;
             case $this->TYPE_ZEIT:
                 if ($this->checkTimeTermEditorMask(false)) {
                     $t = $this->getTimeTermEditorMask();
                 } else {
                     $t = new Text("gespeichert");
                 }
                 break;
             case $this->TYPE_WOCHENTAG:
                 if ($this->checkWochentagTermEditorMask(false)) {
                     $t = $this->getWochentagTermEditorMask();
                 } else {
                     $t = new Text("gespeichert");
                 }
                 break;
         }
     }
     $t->show();
 }
Ejemplo n.º 5
0
 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();
         }
     }
 }
Ejemplo n.º 6
0
 /**
  * Zeigt das gesamte DIV an
  */
 function show()
 {
     echo "<div ";
     if ($this->XPOS > 0 || $this->YPOS > 0) {
         $tmp = ":absolute; ";
         if ($this->YPOS > 0) {
             $tmp .= " top:" . $this->YPOS . "px; ";
         }
         if ($this->XPOS > 0) {
             $tmp .= " left:" . $this->XPOS . "px; ";
         }
         $this->setStyle("position", $tmp);
     }
     $this->getToolTipTag();
     $this->showStyles();
     echo " > ";
     if ($this->KOPFTEXT_NEED) {
         /*
          * Bei berechtigung, Kopftext bearbeiten.
          */
         if ($_SESSION['config']->CURRENTUSER->STATUS == "admin" || $_SESSION['config']->CURRENTUSER->STATUS == "user") {
             if (isset($_REQUEST['changeHeadInfo']) && strlen($_REQUEST['changeHeadInfo']) > 5) {
                 $ktRl = substr($_REQUEST['changeHeadInfo'], 5);
                 $dbtbl = new DbTable($_SESSION['config']->DBCONNECT, "kopftexte", array("text"), "", "", "", "runlink = '" . $ktRl . "' ");
                 if ($dbtbl->getRowCount() == 0) {
                     $dbtblInsert = new DbTable($_SESSION['config']->DBCONNECT, "kopftexte", array("runlink", "parent", "text"), "", "", "", "runlink = '" . $ktRl . "' ");
                     $dbtblInsert->insertRowByArray(array($ktRl, null, ""));
                     $dbtbl->refresh();
                 }
                 if (isset($_REQUEST['DbTableUpdate' . $dbtbl->TABLENAME]) && $_REQUEST['DbTableUpdate' . $dbtbl->TABLENAME] == "Speichern") {
                     $dbtbl->doUpdate();
                 }
                 $frm = $dbtbl->getUpdateAllMask();
                 $frm->add(new Hiddenfield("changeHeadInfo", $_REQUEST['changeHeadInfo']));
                 $frm->show();
             } else {
                 $sp = new Spacer(5);
                 $sp->show();
                 $txKtb = new Text("Kopftext bearbeiten<br>");
                 $txKtb->setFilter(false);
                 $lnk = new Link("?changeHeadInfo=Cnge-" . $_SESSION['runLink'], $txKtb);
                 $lnk->show();
             }
         }
         $tx = new Text(getKopfText());
         $tx->setFilter(false);
         $tx->show();
     }
     if ($this->getObjectCount() > 0) {
         foreach ($this->OBJECTS as $obj) {
             $obj->show();
         }
     }
     //--------------
     include $this->FILE;
     //--------------
     echo "</div>";
 }
Ejemplo n.º 7
0
 /**
  * Dateiupload-Vorgang ausführen
  */
 function doUploadFile()
 {
     //Relative Pfadangabe für Upload-Verzeichniss ermitteln
     $f = dirname($_SERVER['SCRIPT_NAME']);
     if (strlen(str_ireplace("/", "", $f)) == 0) {
         $f = "";
     } else {
         //wenn vorhanden ersten slash abschneiden
         if (substr($f, 0, 1) == "/" && strlen($f) > 0) {
             $f = substr($f, 1);
         }
         //wenn nicht vorhanden letzten slash anhängen
         if (substr($f, strlen($f) - 1 && strlen($f) > 0) != "/") {
             $f = $f . "/";
         }
     }
     //Verzeichniss erzeugen
     $folder = new Folder($_SERVER['DOCUMENT_ROOT'] . $this->getTargetPath());
     $newFileName = $folder->doUploadFile($_FILES['probe'], substr($folder->getPath(), strlen($_SERVER['DOCUMENT_ROOT'])), $this->getFilePrefix(), $this->TARGETFILENAME);
     $t = new Text("Datei " . $_FILES['probe']['name'] . " wurde hochgeladen.\n\n");
     $t->show();
     $this->insertIntoDbIfNeeded(substr($newFileName, strlen($_SERVER['DOCUMENT_ROOT'])));
     $this->doPostUpload();
 }
Ejemplo n.º 8
0
 function show()
 {
     if ($this->isLinkactive() && !$this->isVisible()) {
         echo $this->getOpenlinkString();
     }
     echo "<span id='" . $this->NAME . "_toggle' style='display:";
     echo "none;";
     //if (strlen($this->getBackgroundColor()) > 0) {
     echo "background-color:#e1e1e1;padding:5px;";
     //}
     echo "'>" . "<center>";
     if ($this->isLinkactive() && !$this->isVisible()) {
         echo "<a href='#' onClick=\"makeVisible('" . $this->NAME . "');\" >\r\n                <div align='left'>";
         $t = new Text($this->NAME, $this->getFontsize(), true);
         $t->show();
         echo "  </div>\r\n                 <div align='right'>\r\n                   <font size='" . $this->getFontsize() . "'>[schliessen]</font>\r\n\t\t\t     </div>\r\n               </a>\r\n         ";
     }
     if (count($this->OBJECTS) > 0) {
         foreach ($this->OBJECTS as $obj) {
             if (method_exists($obj, "show")) {
                 $obj->show();
             }
         }
     }
     echo "</center>";
     echo "\r\n\t       </span>\r\n\t ";
     if ($this->isVisible()) {
         if ($this->isLinkactive()) {
             echo "<script>makeVisible('" . $this->NAME . "');</script>";
         } else {
             echo "<script>makeVisibleWithoutLink('" . $this->NAME . "');</script>";
         }
     }
 }
Ejemplo n.º 9
0
 function show()
 {
     if ($this->POPUP) {
         $this->showPopupLink();
         return;
     }
     $this->validateLink();
     echo "<a href='" . $this->HREF . "' ";
     if (strlen($this->TARGET) > 0) {
         echo " target='" . $this->TARGET . "' ";
     }
     if (isset($this->BORDER) && $this->BORDER >= 0) {
         echo " border='" . $this->BORDER . "' ";
     }
     if ($this->XPOS > 0 || $this->YPOS > 0) {
         if ($this->XPOS > 0 && $this->YPOS > 0) {
             echo " style=\"  position:absolute; top:" . $this->YPOS . "px; left:" . $this->XPOS . "px; \" ";
         }
         if ($this->XPOS < 0 && $this->YPOS > 0) {
             echo " style=\"  position:absolute; top:" . $this->YPOS . "px; right:" . $this->XPOS * -1 . "px; \" ";
         }
         if ($this->XPOS < 0 && $this->YPOS < 0) {
             echo " style=\"  position:absolute; bottom:" . $this->YPOS * -1 . "px; right:" . $this->XPOS * -1 . "px; \" ";
         }
         if ($this->XPOS > 0 && $this->YPOS < 0) {
             echo " style=\"  position:absolute; bottom:" . $this->YPOS * -1 . "px; left:" . $this->XPOS . "px; \" ";
         }
     } else {
         $this->showStyles();
     }
     echo $this->getClassTag();
     echo $this->getToolTipTag();
     if (isset($this->ONCLICK) && strlen($this->ONCLICK) > 0) {
         echo " onclick=\"" . $this->ONCLICK . "\" ";
     }
     echo " >";
     if (is_object($this->TEXT) && get_class($this->TEXT) && method_exists($this->TEXT, "show")) {
         $t = $this->TEXT;
         $t->show();
     } else {
         $t = new Text($this->TEXT);
         $t->show();
     }
     echo "</a>";
 }