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


PHP Button::rme方法代码示例

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


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

示例1: getHTML

 public function getHTML($id)
 {
     $bps = $this->getMyBPSData();
     $t = new HTMLTable(1);
     $t->setTableStyle("width:160px;float:right;margin-right:10px;");
     if (!isset($bps["ID"])) {
         $F = new mFhemGUI();
         $F->addAssocV3("FhemType", "!=", "FHZ");
         while ($f = $F->getNextEntry()) {
             $B = new Button($f->getA()->FhemName, "./fheME/Fhem/fhem.png");
             $B->onclick("contentManager.loadFrame('contentRight','mFhemTimer',-1,0,'mFhemTimerGUI;ID:" . $f->getID() . ";type:D;name:" . $f->getA()->FhemName . "');");
             $t->addRow($B);
             $t->addRowClass("backgroundColor0");
         }
         $t->addRow("");
         $t->addRowClass("backgroundColor1");
         $F = new anyC();
         $F->setCollectionOf("FhemPreset");
         $F->addAssocV3("FhemPresetHide", "=", "0");
         while ($f = $F->getNextEntry()) {
             $B = new Button($f->getA()->FhemPresetName, "./fheME/Fhem/events.png");
             $B->onclick("contentManager.loadFrame('contentRight','mFhemTimer',-1,0,'mFhemTimerGUI;ID:" . $f->getID() . ";type:P;name:" . $f->getA()->FhemPresetName . "');");
             $t->addRow($B);
             $t->addRowClass("backgroundColor0");
         }
         return $t;
     }
     if (isset($bps["ID"])) {
         if ($bps["type"] == "D") {
             $F = new Fhem($bps["ID"]);
             $F->loadMe();
             $FF = new Fhem("timer");
             $FF->setA($F->getA());
             $C = new FhemControlGUI();
             $control = $C->getControl($FF);
         } else {
             $control = "";
         }
         $rand = rand(10, 10000000);
         $B = new Button("set timer", "okCatch");
         $B->rme("FhemControl", '', 'setTimer', array($bps["ID"], "'setBPSValue'", "'{$bps['type']}'", "parent.clock4Timer{$rand}.stunden", "parent.clock4Timer{$rand}.minuten", "'{$bps['name']}'"), "contentManager.loadFrame(\\'contentRight\\',\\'mFhem\\',-1,0,\\'\\');");
         $B->style("float:right;");
         $t->addRow("<iframe name=\"clock4Timer{$rand}\" style=\"width:240px;height:330px;border:0px;\" src=\"./libraries/ClockGUI.class.php\"></iframe>");
         $t->addRowClass("backgroundColor0");
         $t->addRow($B);
         $t->addRowClass("backgroundColor0");
         return $control . $t;
     }
 }
开发者ID:nemiah,项目名称:fheME,代码行数:49,代码来源:mFhemTimerGUI.class.php

示例2: getHTML

 function getHTML($id)
 {
     $this->loadMeOrEmpty();
     $gui = new HTMLGUI();
     $gui->setObject($this);
     $gui->setName("Starsystem");
     $gui->setStandardSaveButton($this);
     $B = new Button("create\nplanets", "./PM/Planet/Terran01.png");
     $B->rme("Starsystem", $this->ID, "createPlanets", "");
     $tab = new HTMLTable(1);
     $tab->addRow($B);
     $gui->setType("StarsystemGalaxyID", "hidden");
     $gui->setLabel("StarsystemName", "Name");
     $gui->setLabel("StarsystemX", "X");
     $gui->setLabel("StarsystemY", "Y");
     $gui->setLabel("StarsystemRotation", "Rotation");
     return $tab . $gui->getEditHTML();
 }
开发者ID:nemiah,项目名称:projectMankind,代码行数:18,代码来源:StarsystemGUI.class.php

示例3: addSaveDefaultButton

 public function addSaveDefaultButton($fieldName)
 {
     $B = new Button("als Standard-Wert speichern", "./images/i2/save.gif");
     $B->rme("mUserdata", "", "setUserdata", array("'DefaultValue{$this->id}{$fieldName}'", "\$('{$this->id}').{$fieldName}.value"), "checkResponse(transport);");
     $B->type("icon");
     $B->style("float:right;");
     if (!isset($this->values[$fieldName])) {
         $U = new mUserdata();
         $this->values[$fieldName] = $U->getUDValue("DefaultValue{$this->id}{$fieldName}", "");
     }
     $this->buttons[$fieldName] = $B;
 }
开发者ID:nemiah,项目名称:fheME,代码行数:12,代码来源:HTMLForm.class.php

示例4: getQuicksearchField

 protected function getQuicksearchField()
 {
     if ($this->quickSearchPlugin != "") {
         $B = new Button("Suche als Filter anwenden", "./images/i2/searchFilter.png");
         $B->type("icon");
         $B->style("float:right;");
         $B->rme("HTML", "", "saveContextMenu", array("'searchFilter'", "'{$this->quickSearchPlugin};:;'+\$('quickSearch{$this->quickSearchPlugin}').value"), "if(checkResponse(transport)) contentManager.reloadFrameRight();");
         $showSF = PMReflector::implementsInterface($this->quickSearchPlugin . "GUI", "iSearchFilter");
         if ($showSF) {
             $mU = new mUserdata();
             $K = $mU->getUDValue("searchFilterInHTMLGUI" . $this->quickSearchPlugin);
         } else {
             $K = null;
         }
         $BSearchInfo = new Button("", "./images/i2/search.png");
         $BSearchInfo->onclick("phynxContextMenu.start(this, '{$this->quickSearchPlugin}','searchHelp','" . $this->texts["Suche"] . ":','left');");
         $BSearchInfo->style("cursor:help;");
         $BSearchInfo->type("icon");
         $quickSearchRow = "\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tautocomplete=\"off\"\n\t\t\t\t\t\t\t\tonfocus=\"focusMe(this); ACInputHasFocus=true; AC.start(this); if(this.value != '') AC.update('10', this, '{$this->quickSearchPlugin}', 'quickSearchLoadFrame');\"\n\t\t\t\t\t\t\t\tonblur=\"blurMe(this); ACInputHasFocus=false; AC.end(this);\"\n\t\t\t\t\t\t\t\tid=\"quickSearch{$this->quickSearchPlugin}\"\n\t\t\t\t\t\t\t\tonkeyup=\"AC.update(event.keyCode, this, '{$this->quickSearchPlugin}','quickSearchLoadFrame');\"\n\t\t\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\t\t\tvalue=\"" . ($K != null ? $K : "") . "\"\n\t\t\t\t\t\t\t\t" . ($showSF ? "style=\"width:90%;\"" : "") . "\n\t\t\t\t\t\t\t/>";
         return array($quickSearchRow, $BSearchInfo);
     }
     return array("", "");
 }
开发者ID:nemiah,项目名称:projectMankind,代码行数:23,代码来源:HTMLGUI.class.php

示例5: buildFilteredWarningLine

 public function buildFilteredWarningLine()
 {
     $dB = new Button("Filter löschen", "./images/i2/delete.gif");
     $dB->style("float:right;");
     $dB->type("icon");
     $dB->rme("HTML", "", "saveContextMenu", array("'deleteFilters'", "'{$this->collectionName}'"), "if(checkResponse(transport)) contentManager.reloadFrame(\\'contentRight\\');");
     $BW = new Button("", "./images/i2/note.png");
     $BW->type("icon");
     $wholeLine2 = array($BW, $dB . "<span style=\"color:grey;\">Die Anzeige wurde gefiltert</span>");
     $this->table->addRow($wholeLine2);
     $this->table->addRowColspan(2, count($this->referenceLine) - 1);
     $this->table->addRowClass("backgroundColor0");
 }
开发者ID:nemiah,项目名称:projectMankind,代码行数:13,代码来源:GUIFactory.class.php

示例6: activateFeature

 function activateFeature($feature, $class, $par1 = null, $par2 = null, $par3 = null)
 {
     switch ($feature) {
         case "reloadOnNew":
             #if($class instanceof PersistentObject AND $class->getID() == -1)
             #$this->setJSEvent("onSave","function(transport){ contentManager.reloadOnNew(transport, '".$class->getClearClass()."'); }");
             if ($class instanceof Collection) {
                 $this->GUIFactory->addToEvent("onNew", "contentManager.reloadFrame('contentRight');");
             }
             break;
         case "CRMEditAbove":
             #$this->features["CRMEditAbove"] = "";
             $new = "contentManager.loadFrame('subFrameEdit%COLLECTIONNAME', '%CLASSNAME', %CLASSID, 0, '', function(transport) { \$j('#subFrameEdit%COLLECTIONNAME').show(); \$j('#subFrame%COLLECTIONNAME').hide(); });";
             if ($par1 != null) {
                 $new = $par1;
             }
             $this->GUIFactory->replaceEvent("onNew", $new);
             $this->GUIFactory->replaceEvent("onDelete", "deleteClass('%CLASSNAME','%CLASSID', function() { contentManager.reloadFrame('contentLeft'); },'Eintrag wirklich löschen?');");
             $this->GUIFactory->replaceEvent("onEdit", $new);
             #$this->functionDelete = ;
             #$this->functionNew = ;
             #$this->functionEdit = $this->functionNew;
             break;
         case "editInPopup":
             #$new = "contentManager.editInPopup('%CLASSNAME', %CLASSID, 'Eintrag bearbeiten', ''".($par1 != null ? ", $par1" : "").");";
             #$this->GUIFactory->replaceEvent("onNew", $new);
             #$this->GUIFactory->replaceEvent("onEdit", $new);
             $this->GUIFactory->editInPopup($par1);
             break;
         case "addSaveDefaultButton":
             $B = new Button("als Standard-Wert speichern", "./images/i2/save.gif", "icon");
             $name = "DefaultValue" . $class->getClearClass() . "{$par1}";
             if (mb_strlen($name) > 50) {
                 $name = "DV" . sha1($name);
             }
             if ($this->types[$par1] != "checkbox") {
                 $B->rme("mUserdata", "", "setUserdata", array("'{$name}'", "\$j('[name={$par1}]').val()", "''", "0", "1"), "checkResponse(transport);");
             } else {
                 $B->rme("mUserdata", "", "setUserdata", array("'{$name}'", "\$j('[name={$par1}]').prop('checked') ? 1 : 0", "''", "0", "1"), "checkResponse(transport);");
             }
             $B->style("float:right;");
             #$this->inputStyle($par1, "width:90%;");
             #$this->buttonsNextToFields[$par1] = $B;
             $this->addFieldButton($par1, $B);
             break;
         case "addAnotherLanguageButton":
             $B = new Button("andere Sprachen", "./images/i2/sprache.png", "icon");
             if ($class->getID() != -1) {
                 $B->popup("", "Alternative Sprachen", "mMultiLanguage", "", "getPopupHTML", array("'" . $class->getClearClass() . "'", "'" . $class->getID() . "'", "'" . $par1 . "'"));
             } else {
                 $B->onclick("alert('Sie müssen den Artikel zuerst speichern, bevor Sie Übersetzungen eintragen können')");
             }
             $B->style("float:right;");
             #$this->setInputStyle($par1,"width:90%;");
             $this->addFieldButton($par1, $B);
             break;
     }
 }
开发者ID:nemiah,项目名称:fheME,代码行数:58,代码来源:HTMLGUIX.class.php

示例7: activateFeature

 function activateFeature($feature, $class, $par1 = null, $par2 = null, $par3 = null)
 {
     switch ($feature) {
         case "reloadOnNew":
             #if($class instanceof PersistentObject AND $class->getID() == -1)
             #$this->setJSEvent("onSave","function(transport){ contentManager.reloadOnNew(transport, '".$class->getClearClass()."'); }");
             if ($class instanceof Collection) {
                 $this->GUIFactory->addToEvent("onNew", "contentManager.reloadFrame('contentRight');");
             }
             break;
         case "CRMEditAbove":
             #$this->features["CRMEditAbove"] = "";
             $new = "contentManager.loadFrame('subFrameEdit%COLLECTIONNAME', '%CLASSNAME', %CLASSID, 0, '', function(transport) { if(\$('subFrameEdit%COLLECTIONNAME').style.display == 'none') new Effect.BlindDown('subFrameEdit%COLLECTIONNAME', {duration:0.5}); });";
             if ($par1 != null) {
                 $new = $par1;
             }
             $this->GUIFactory->replaceEvent("onNew", $new);
             $this->GUIFactory->replaceEvent("onDelete", "deleteClass('%CLASSNAME','%CLASSID', function() { contentManager.reloadFrame('contentLeft'); },'Eintrag wirklich löschen?');");
             $this->GUIFactory->replaceEvent("onEdit", $new);
             #$this->functionDelete = ;
             #$this->functionNew = ;
             #$this->functionEdit = $this->functionNew;
             break;
         case "editInPopup":
             #$new = "contentManager.editInPopup('%CLASSNAME', %CLASSID, 'Eintrag bearbeiten', ''".($par1 != null ? ", $par1" : "").");";
             #$this->GUIFactory->replaceEvent("onNew", $new);
             #$this->GUIFactory->replaceEvent("onEdit", $new);
             $this->GUIFactory->editInPopup($par1);
             break;
         case "addSaveDefaultButton":
             $B = new Button("als Standard-Wert speichern", "./images/i2/save.gif", "icon");
             $name = "DefaultValue" . $class->getClearClass() . "{$par1}";
             if (mb_strlen($name) > 50) {
                 $name = "DV" . sha1($name);
             }
             $B->rme("mUserdata", "", "setUserdata", array("'{$name}'", "\$j('[name={$par1}]').val()"), "checkResponse(transport);");
             $B->style("float:right;");
             #$this->inputStyle($par1, "width:90%;");
             #$this->buttonsNextToFields[$par1] = $B;
             $this->addFieldButton($par1, $B);
             break;
     }
 }
开发者ID:nemiah,项目名称:trinityDB,代码行数:43,代码来源:HTMLGUIX.class.php

示例8: getQuicksearchInput

 public function getQuicksearchInput()
 {
     $I = new HTMLInput("quickSearch", "text", "");
     #$I->hasFocusEvent(true);
     $I->id("quickSearch{$this->collectionName}");
     $I->onkeyup("AC.update(event.keyCode, this, '{$this->collectionName}','quickSearchLoadFrame');");
     $I->autocompleteBrowser(false);
     $I->onfocus("focusMe(this); ACInputHasFocus=true; AC.start(this); if(this.value != '') AC.update('10', this, '{$this->collectionName}', 'quickSearchLoadFrame');");
     $I->onblur("blurMe(this); ACInputHasFocus=false; AC.end(this);");
     $I->placeholder("Suche");
     $B = "";
     $showSF = PMReflector::implementsInterface($this->collectionName . "GUI", "iSearchFilter");
     if ($showSF) {
         $B = new Button("Suche als Filter anwenden", "./images/i2/searchFilter.png", "icon");
         $B->style("float:right;");
         $B->rme("HTML", "", "saveContextMenu", array("'searchFilter'", "'{$this->collectionName};:;'+\$('quickSearch{$this->collectionName}').value"), "if(checkResponse(transport)) contentManager.reloadFrameRight();");
         $mU = new mUserdata();
         $K = $mU->getUDValue("searchFilterInHTMLGUI" . $this->collectionName);
         $I->setValue($K);
         $I->style("width:90%;");
     }
     return $B . $I;
 }
开发者ID:nemiah,项目名称:trinityDB,代码行数:23,代码来源:GUIFactory.class.php

示例9: getBrowserHTML

 function getBrowserHTML($lineWithId = -1)
 {
     $this->texts = $this->languageClass->getBrowserTexts();
     $singularLanguageClass = $this->loadLanguageClass($this->singularClass);
     $userCanDelete = mUserdata::isDisallowedTo("cantDelete" . $this->singularClass);
     $userCanCreate = mUserdata::isDisallowedTo("cantCreate" . $this->singularClass);
     $userHiddenFields = mUserdata::getHides($this->singularClass);
     $defaultTarget = "contentRight";
     if ($this->displaySide != "default") {
         $defaultTarget = "content" . ucfirst($this->displaySide);
     }
     if ($this->singularClass == "none") {
         echo "collectionOf is not set. See message log for further details.";
         throw new CollectionOfNotSetException();
     }
     if ($this->name == "Noname") {
         $_SESSION["messages"]->addMessage("There is no name set. You might use setName of HTMLGUI to do that.");
     }
     /**
      * ERROR-TABLE
      */
     $errorTab = new HTMLTable(1);
     if (isset($_SESSION["phynx_errors"]) and $lineWithId == -1 and ($_SERVER["HTTP_HOST"] == "dev.furtmeier.lan" or strpos(__FILE__, "nemiah") !== false)) {
         $errorTab->addRow("\n\t\t\t\t\t<img style=\"float:left;margin-right:10px;\" src=\"./images/navi/warning.png\" />\n\t\t\t\t\t<b>Es " . (count($_SESSION["phynx_errors"]) != 1 ? "liegen" : "liegt") . " " . count($_SESSION["phynx_errors"]) . " PHP-Fehler vor:</b><br />\n\t\t\t\t\t<a href=\"javascript:windowWithRme('Util','','showPHPErrors','');\">Fehler anzeigen</a>,<br />\n\t\t\t\t\t<a href=\"javascript:rme('Util','','deletePHPErrors','','contentManager.reloadFrameRight();');\">Fehler löschen</a>");
     }
     /**
      * RETURN-BUTTON
      */
     $returnTab = new HTMLTable(1);
     if ($this->isSelection) {
         $BReturn = new Button("Auswahl\nbeenden", "back");
         $BReturn->onclick("contentManager.restoreFrame('content" . ucfirst($this->displaySide) . "','selectionOverlay');");
         #return "<input type=\"button\" value=\"zurück zu\n".$p2[$s[0]]."\" style=\"background-image:url(./images/navi/back.png);\" class=\"bigButton backgroundColor3\" onclick=\"loadFrameV2('contentRight','$s[0]');\" />";
         $returnTab->addRow($BReturn);
     }
     /**
      * DELETE-BUTTON
      */
     if ((!$this->onlyDisplayMode or $this->deleteInDisplayMode) and $userCanDelete and !$this->isSelection and $this->showDeleteButton) {
         $this->newColsRight["delete"] = "\n\t\t\t<span class=\"iconic trash_stroke\" onclick=\"deleteClass('" . $this->singularClass . "','%%VALUE%%', " . ($this->JSOnDelete == null ? "function() { " . ($this->displaySide == "left" ? "contentManager.reloadFrameLeft();" : "contentManager.reloadFrameRight(); if(typeof lastLoadedLeft != 'undefined' && lastLoadedLeft == '%%VALUE%%') \$('contentLeft').update('');") . " }" : $this->JSOnDelete) . ",'" . str_replace("%1", $this->singularName, $this->texts["%1 wirklich löschen?"]) . "');\"></span>";
     } elseif (!$userCanDelete) {
         $this->newColsRight["delete"] = "<img src=\"./images/i2/empty.png\" />";
     }
     /**
      * EDIT-BUTTON
      */
     if (!isset($this->newColsLeft["select"]) and (!$this->onlyDisplayMode or $this->editInDisplayMode) and $this->showEditButton) {
         $EB = new Button("", "./images/i2/edit.png");
         $EB->type("icon");
         $EB->className("editButton");
         if ($this->JSOnEdit == null) {
             $EB->onclick("contentManager.selectRow(this); contentManager.loadFrame('contentLeft','" . $this->singularClass . "','%%VALUE%%','0');");
         } else {
             $EB->onclick($this->JSOnEdit);
         }
         $this->newColsLeft["select"] = $EB;
     }
     $cols = count($this->showAttributes) + count($this->newColsLeft) + count($this->newColsRight);
     $valuesTab = new HTMLTable($cols, $lineWithId == -1 ? $this->displaySide == "left" ? $this->name : "" : null);
     $valuesTab->addTableClass("contentBrowser");
     /*if(isset($this->newColsRight["delete"]) AND ($this->displaySide == "default" OR $this->displaySide == "right"))
     			$valuesTab->setColClass($cols, "backgroundColor0");
     		if(isset($this->newColsRight["delete"]) AND $this->displaySide == "left")
     			$valuesTab->setColClass(1, "backgroundColor0");*/
     /**
      * QUICKSEARCH
      */
     #$quickSearchRow = "";
     if ($this->quickSearchPlugin != "" and $lineWithId == -1) {
         list($quickSearchRow, $BSearchInfo) = $this->getQuicksearchField();
         if ($this->displaySide == "left") {
             $insertRow = array($quickSearchRow);
             for ($i = 1; $i < $cols - 1; $i++) {
                 $insertRow[] = "";
             }
             $insertRow[] = $BSearchInfo;
             $valuesTab->addRow($insertRow);
             $valuesTab->addRowColspan(1, $cols - 1);
         } else {
             $valuesTab->addRow(array($BSearchInfo, $quickSearchRow));
             $valuesTab->addRowColspan(2, $cols - 1);
         }
         $valuesTab->addRowClass("backgroundColorHeader");
     }
     if ($this->headerRow != null) {
         $valuesTab->addHeaderRow($this->headerRow);
     }
     /**
      * PAGE-BROWSER
      */
     #$multiPageRow = "";
     $separator = "";
     $userDefinedEntriesPerPage = false;
     $isMultiPageMode = false;
     if (count($this->multiPageMode) > 0) {
         $isMultiPageMode = true;
         $this->multiPageMode[3] = $defaultTarget;
         if ($this->multiPageMode[2] == 0) {
             $userDefinedEntriesPerPage = true;
             #$mU = new mUserdata();
//.........这里部分代码省略.........
开发者ID:nemiah,项目名称:trinityDB,代码行数:101,代码来源:HTMLGUI2.class.php

示例10: getBrowserHTML

 /**
  * Call getBrowserHTML() if you want a table containing all the elements of a collection-class
  * When called with an id, only one row is returned to easily replace an old one with JavaScript
  * 
  * @param int $lineWithId 
  */
 function getBrowserHTML($lineWithId = -1)
 {
     $string = "";
     $top = "";
     if ($lineWithId == -1 and count($this->prependedElements) > 0) {
         foreach ($this->prependedElements as $E) {
             $top .= $E;
         }
     }
     $this->texts = $this->languageClass->getBrowserTexts();
     $singularLanguageClass = $this->loadLanguageClass($this->singularClass);
     if (isset($_SESSION["phynx_errors"]) and (!isset($_SESSION["HideErrors"]) or $_SESSION["HideErrors"] == false) and $lineWithId == -1 and ($_SERVER["HTTP_HOST"] == "dev.furtmeier.lan" or strpos(__FILE__, "nemiah") !== false)) {
         $B = new Button("", "warning", "icon");
         $B->style("float:left;margin-right:10px;");
         $top .= "\n\t\t<table>\n\t\t\t<colgroup>\n\t\t\t\t<col class=\"backgroundColor3\" />\n\t\t\t</colgroup>\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\t{$B}\n\t\t\t\t\t<b>Es " . (count($_SESSION["phynx_errors"]) != 1 ? "liegen" : "liegt") . " " . count($_SESSION["phynx_errors"]) . " PHP-Fehler vor:</b><br />\n\t\t\t\t\t<a href=\"#\" onclick=\"windowWithRme('Util','','showPHPErrors',''); return false;\">Fehler anzeigen</a>,<br />\n\t\t\t\t\t<a href=\"#\" onclick=\"rme('Util','','deletePHPErrors','','contentManager.reloadFrameRight();'); return false;\">Fehler löschen</a></td>\n\t\t\t</tr>\n\t\t</table>";
     }
     $userCanDelete = mUserdata::isDisallowedTo("cantDelete" . $this->singularClass);
     $userCanCreate = mUserdata::isDisallowedTo("cantCreate" . $this->singularClass);
     $userHiddenFields = mUserdata::getHides($this->singularClass);
     if ($this->singularClass == "none") {
         echo "collectionOf is not set. See message log for further details.";
         throw new CollectionOfNotSetException();
     }
     if ($this->name == "Noname") {
         $_SESSION["messages"]->addMessage("There is no name set. You might use setName of HTMLGUI to do that.");
     }
     #$firstKey = null;
     $colspan = 0;
     $oldValueForDisplayGroup = "";
     #if($this->attributes != null)
     #foreach($this->attributes AS $ei => $vi) {
     for ($i = 0; $i < count($this->attributes); $i++) {
         #if($firstKey == null) $firstKey = $ei;
         #$i = $ei;
         $aid = $this->attributes[$i]->getID();
         // get the id of an object separately
         $sc = $this->attributes[$i]->getA();
         // get the attributes-object from the object
         $as = PMReflector::getAttributesArray($sc);
         // get an array of attribute-names from the object
         if (count($this->addedCols) != 0) {
             // adding specified new columns which are not in $as
             foreach ($as as $key => $value) {
                 if (isset($this->addedCols[$value])) {
                     #$_SESSION["messages"]->addMessage("adding col ".$this->addedCols[$value]." right of $value");
                     array_splice($as, $key + 1, 0, $this->addedCols[$value]);
                     #$_SESSION["messages"]->addMessage("new attributes list: ".implode(", ",$as));
                 }
             }
         }
         if ($this->displayGroupBy != null) {
             $f = $this->displayGroupBy;
             #if($i == 0) $_SESSION["messages"]->addMessage("displayGroupBy activated. Using value of ".$f.": ".$sc->$f);
             if ($oldValueForDisplayGroup != $sc->{$f}) {
                 if ($lineWithId == -1) {
                     $dgf = $sc->{$f} . "";
                     $kTv = isset($this->displayGroup[$dgf]) ? $this->displayGroup[$dgf] : " ";
                     if ($this->dgParser != "") {
                         $kTv = $this->invokeParser($this->dgParser, $sc->{$f}, implode("%§%", $this->dgParserParameters));
                     }
                     $string .= "\n\t\t\t\t<tr class=\"kategorieTeiler\">\n\t\t\t\t\t<td colspan=\"%%COLSPAN%%\">" . $kTv . "</td>\n\t\t\t\t</tr>";
                 }
             }
         }
         if ($lineWithId == -1) {
             $string .= "\n\t\t\t\t<tr id=\"" . $this->RowIDPrefix . "" . ($this->onlyDisplayMode ? "D" : "") . "{$aid}\">";
         }
         if ($this->editInDisplayMode and $this->editInDisplayModeTarget == "contentLeft") {
             $string .= "\n\t\t\t\t\t" . $this->editIcon($aid);
         }
         if ($this->selectionRow == "" and !$this->onlyDisplayMode) {
             $string .= "\n\t\t\t\t\t<td><img onclick=\"contentManager.selectRow(this); contentManager.loadFrame('contentLeft','{$this->singularClass}','{$aid}'" . ($this->JSOnEdit != null ? "," . $this->JSOnEdit : "") . ");\" src=\"./images/i2/edit.png\" class=\"mouseoverFade editButton\" /></td>";
         }
         if ($this->selectionRow != "") {
             $string .= "" . str_replace("%%VALUE%%", "{$aid}", $this->selectionRow);
         }
         foreach ($this->parserParameters as $schluessel => $werte) {
             if (isset($sc->{$schluessel})) {
                 $sc->{$schluessel} = addslashes($sc->{$schluessel});
             }
         }
         if (count($this->showAttributes) == 0) {
             for ($j = 0; $j < count($as); $j++) {
                 if (isset($this->dontShow[$as[$j]])) {
                     continue;
                 }
                 if (isset($userHiddenFields[$as[$j]])) {
                     continue;
                 }
                 if ($i == 0) {
                     $this->shownCols[] = $as[$j];
                 }
                 if (isset($this->parsers[$as[$j]])) {
                     $parameters = $this->makeParameterStringFromArray($this->parserParameters[$as[$j]], $sc, $aid);
//.........这里部分代码省略.........
开发者ID:nemiah,项目名称:poolPi,代码行数:101,代码来源:HTMLGUI.class.php


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