当前位置: 首页>>代码示例>>PHP>>正文


PHP Text::show方法代码示例

本文整理汇总了PHP中Text::show方法的典型用法代码示例。如果您正苦于以下问题:PHP Text::show方法的具体用法?PHP Text::show怎么用?PHP Text::show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Text的用法示例。


在下文中一共展示了Text::show方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: show

 /**
  * 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>";
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:30,代码来源:Achor.php

示例2: showDescription

 function showDescription()
 {
     $spc = new Spacer();
     $spc->show();
     $td = new Text("Beschreibung:", 2, true);
     $td->show();
     $d = new Text($this->getDescription());
     $d->show();
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:9,代码来源:LogFile.php

示例3: show

 /**
  * 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();
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:19,代码来源:Checkbox.php

示例4: 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();
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:41,代码来源:HomeControlTermEditor.php

示例5: getPageNavigation

 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();
         }
     }
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:30,代码来源:Bilderbuch.php

示例6: show

 /**
  * 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>";
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:61,代码来源:Div.php

示例7: doUploadFile

 /**
  * 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();
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:27,代码来源:ImageUploader.php

示例8: show

 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>";
         }
     }
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:34,代码来源:Span.php

示例9: show

 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>";
 }
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:45,代码来源:Link.php


注:本文中的Text::show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。