Example #1
0
 function getSearchMask()
 {
     $ft = new FontType();
     $ft->setFontsize(2);
     $table = new Table(array(""));
     $table->setFonttypes(array($ft));
     $table->setHeadEnabled(false);
     $table->setDesignJN("J");
     $r = $table->createRow();
     $r->setAttribute(0, new Text("Geben Sie hier ihren Suchbegriff ein"));
     $table->addRow($r);
     $r = $table->createRow();
     $r->setAttribute(0, new Textfield("SuchString"));
     $table->addRow($r);
     $hidden = new Hiddenfield($this->TABLENAME . "SEARCH", "doSearch");
     $form = new Form($_SERVER['SCRIPT_NAME']);
     $form->add($hidden);
     $form->add($table);
     $form->show();
 }
Example #2
0
 /**
  * show-Methode für TYPE = button
  * 
  * @param $PIC  gibt die Hintergrundgrafik der Buttons an   
  */
 function showWithButtons($PIC, $HOVER = "")
 {
     $tbl = new Table(array(""));
     $tbl->setWidth($this->getWidth() + 5);
     $tbl->setXPos($this->getXPos());
     $tbl->setYPos($this->getYPos());
     $tbl->setBorder($this->getBorder());
     $tbl->setFonttypes(array($this->getFonttype()));
     $userStatus = $this->CONFIG->CURRENTUSER->STATUS;
     $menuresult = $this->MENUTABLE->getMenuByStatus($userStatus);
     $txt = array();
     $r = array();
     while ($row = mysql_fetch_array($menuresult)) {
         if ($row['id'] > 0) {
             $rcnt = count($txt);
             $txt[$rcnt] = new Text($row['text']);
             $txt[$rcnt]->setFonttype($this->getFonttype());
             $ftx = $txt[$rcnt]->getFonttype();
             if ($row['text'] == $_SESSION['MENU_PARENT'] || $row['text'] == $this->getLabelByRunlink($_SESSION['runLink'], $_SESSION['MENU_PARENT'])) {
                 $ftx->setColor($_SESSION['config']->COLORS['hover']);
                 $ftx->setBold(true);
             } else {
                 $ftx->setBold(false);
             }
             $txt[$rcnt]->setFonttype($ftx);
             $btn = new MenuButton($row['link'], $txt[$rcnt], $PIC, $row['target'], $this->COLOR);
             $btn->setHoverPic($HOVER);
             $btn->setToolTip($row['tooltip']);
             $r[$rcnt] = $tbl->createRow();
             $r[$rcnt]->setAttribute(0, $btn);
             $tbl->addRow($r[$rcnt]);
         }
     }
     $tbl->show();
 }