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


PHP Button::setStyle方法代码示例

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


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

示例1: getUpdateAllMask

 /**
  * Im Unterschied zu getUpdateMask() liefert diese Methode eine Tabelle in der Direkt alle Felder Eingabefelder sind, 
  *  somit kann man direkt mehrere Zeilen auf einmal bearbeiten. 
  */
 function getUpdateAllMask()
 {
     $tNames = array();
     $colNames = array();
     $i = 0;
     foreach ($this->COLNAMES as $colName) {
         if (!$this->isNoUpdateCol($colName)) {
             $lbl = "";
             if ($i < count($this->LABELS)) {
                 $lbl = $this->LABELS[$i];
             } else {
                 $lbl = $colName;
             }
             array_push($tNames, $lbl);
             array_push($colNames, $colName);
         }
         $i++;
     }
     $deleteMask = null;
     if ($this->isDeleteInUpdate()) {
         $deleteMask = !$this->doDeleteFromUpdatemask() ? null : $this->doDeleteFromUpdatemask();
         // Damit die Spalte mit dem Entfernen Button
         // zur Verfügung steht, in Arrays einbinden.
         array_push($colNames, "entfernen");
         array_push($tNames, "entfernen");
     }
     $table = new Table($tNames);
     if (count($this->COLSIZES) > 0) {
         $table->setColSizes($this->COLSIZES);
     }
     $table->setHeadEnabled(true);
     $table->setBackgroundColorChange(true);
     if ($this->WIDTH > 0) {
         $table->setWidth($this->WIDTH);
     }
     if ($this->HEIGHT > 0) {
         $table->setHeight($this->HEIGHT);
     }
     if ($this->BORDER != null && strlen($this->BORDER) > 0) {
         $table->setBorder($this->BORDER);
     }
     if ($this->PADDING >= 0) {
         $table->setPadding($this->PADDING);
     }
     if ($this->HEAD_ENABLED) {
         $table->setHeadEnabled($this->HEAD_ENABLED);
     }
     if ($this->SPACING >= 0) {
         $table->setSpacing($this->SPACING);
     }
     if ($this->XPOS > 0 && $this->YPOS > 0) {
         $table->setXPos($this->XPOS);
         $table->setYPos($this->YPOS);
     }
     //---------------------------------------------------
     // gesamte Tabelle einlesen um Feldtypen zu ermitteln
     //---------------------------------------------------
     $cns = "";
     foreach ($colNames as $cn) {
         if (strpos(" " . $this->COLNAMESTRING, $cn) > 0) {
             $cns .= $cns == "" ? $cn : "," . $cn;
         }
     }
     $stmnt = "SELECT " . $cns . " FROM " . $this->TABLENAME . " LIMIT 1 ";
     $result = $this->DBCONNECT->executeQuery($stmnt);
     //---------------------------------------------------
     // ROWS in Table aufnehmen
     //---------------------------------------------------
     $dbComboArrays = array();
     $bgCtr = 1;
     for ($ir = 1; $ir <= count($this->ROWS); $ir++) {
         $r = $table->createRow();
         $r->setStyle("padding", "5px 5px");
         $rowId = $this->ROWS[$ir]->getAttribute(count($this->COLNAMES));
         $r->setBackgroundColor($_SESSION['config']->COLORS['Tabelle_Hintergrund_' . $bgCtr]);
         if ($bgCtr == 1) {
             $bgCtr = 2;
         } else {
             $bgCtr = 1;
         }
         //---------------------------------------------------
         // SPALTEN aufbauen
         //---------------------------------------------------
         for ($ia = 0; $ia < count($this->COLNAMES); $ia++) {
             $row = $this->ROWS[$ir];
             $t = "";
             $fieldName = mysql_field_name($result, $ia);
             $fieldLen = 30;
             if (!$this->isNoUpdateCol($fieldName)) {
                 $maxLen = mysql_field_len($result, $ia);
                 if ($maxLen < $fieldLen) {
                     $fieldLen = $maxLen;
                 }
                 $lookups = getLookupWerte($_SESSION['config']->DBCONNECT, $this->TABLENAME, $fieldName);
                 if (mysql_num_rows($lookups) > 0) {
                     $t = new LookupCombo($_SESSION['config']->DBCONNECT, $fieldName . $rowId, $this->TABLENAME, $fieldName, $row->getNamedAttribute($fieldName));
//.........这里部分代码省略.........
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:101,代码来源:DbTable.php

示例2: Container

     $imgRaumplan->setWidth(140);
     $cBtnRaumplan = new Container();
     $cBtnRaumplan->add($btnRaumplan);
     $cBtnRaumplan->add(new Text("<br>JPG Datei mit den Ma&#223;en: 600x340", 1, false, false, false, false));
     $r = $tblEtagen->createRow();
     $r->setStyle("padding", "10px 5px");
     $r->setVAlign("middle");
     $r->setAttribute(0, $txfName);
     $r->setAttribute(1, $imgRaumplan);
     $r->setAttribute(2, $cBtnRaumplan);
     $r->setAttribute(3, $btnDelete);
     $tblEtagen->addRow($r);
 }
 $fEt = new Form();
 $okBtn = new Button("DbTableUpdatehomecontrol_etagen", "Speichern");
 $okBtn->setStyle("display", "none");
 $fEt->add($okBtn);
 $fEt->add($tblEtagen);
 $fEt->add(new Button("DbTableUpdatehomecontrol_etagen", "Speichern"));
 $fEt->add(new Hiddenfield("UpdateAllMaskIsActive", "true"));
 $fEt->show();
 $spc->setHeight(10);
 $spc->show();
 if (!isset($_REQUEST['dbTableNewhomecontrol_etagen'])) {
     $newBtn = $scDbTable->getNewEntryButton("Neue Etage anlegen");
     $newBtn->show();
 }
 $spc->show();
 $ln->show();
 $spc->setHeight(20);
 $spc->show();
开发者ID:CyborgOne,项目名称:cybihomecontrol_ui,代码行数:31,代码来源:GebaeudeConfig.php


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