當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Button::popup方法代碼示例

本文整理匯總了PHP中Button::popup方法的典型用法代碼示例。如果您正苦於以下問題:PHP Button::popup方法的具體用法?PHP Button::popup怎麽用?PHP Button::popup使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Button的用法示例。


在下文中一共展示了Button::popup方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getOverviewDesktop

 public function getOverviewDesktop($DeviceID)
 {
     $O = anyC::getFirst("fheOverview", "fheOverviewDeviceID", $DeviceID);
     if ($O == null) {
         $F = new Factory("fheOverview");
         $F->sA("fheOverviewDeviceID", $DeviceID);
         $F->sA("fheOverviewDesktop", "{}");
         $ID = $F->store();
         $O = new fheOverview($ID);
     }
     $d = json_decode($O->A("fheOverviewDesktop"));
     $BM = new Button("Desktop bearbeiten", "pen_alt2", "iconicL");
     $BM->style("position:absolute;right:0px;z-index:1000;");
     $BM->popup("", "Desktop bearbeiten", "mfheOverview", "-1", "popupDesktop", array($DeviceID), "", "{hasX: false}");
     echo "\n\t\t\t<div id=\"onfheOverviewPage\"></div>\n\t\t\t<div id=\"OverviewDesktop\" style=\"\">\n\t\t\t\t{$BM}\n\t\t\t";
     $Device = new Device($DeviceID);
     $data = json_decode($O->A("fheOverviewDesktop"));
     foreach ($data as $plugin => $options) {
         try {
             echo $this->pluginShow($Device, $plugin, false, $options);
         } catch (Exception $e) {
         }
     }
     echo "</div>";
     if (isset($d->background)) {
         echo OnEvent::script("\$j('#wrapper').css('background-image', 'url(./specifics/{$d->background})');");
     }
     echo OnEvent::script("\$j('html').css('overflow-y', 'auto');");
     $this->pluginUpdate();
 }
開發者ID:nemiah,項目名稱:fheME,代碼行數:30,代碼來源:mfheOverviewGUI.class.php

示例2: getManagerButtonCustomDir

 public static function getManagerButtonCustomDir($targetClass, $targetID, $subDir, $usePool = false, $fieldDefaultFile = "", $targetFilename = null)
 {
     $args = array("{$subDir}", "'{$targetClass}'", "'{$targetID}'", $usePool ? "1" : "0", "'{$fieldDefaultFile}'");
     if ($targetFilename != null) {
         $args[] = "'{$targetFilename}'";
     }
     $BF = new Button("Dateien", "computer");
     $BF->popup("", "Datei-Manager", "mFile", "", "getPopupManager", $args);
     return $BF;
 }
開發者ID:nemiah,項目名稱:trinityDB,代碼行數:10,代碼來源:mFileGUI.class.php

示例3: getOverviewContent

 public function getOverviewContent()
 {
     $html = "<div class=\"touchHeader\"><span class=\"lastUpdate\" id=\"lastUpdatemGerichtGUI\"></span><p>Essen</p></div>\n\t\t\t<div style=\"padding:10px;overflow:auto;\">";
     $B = new Button("Liste anzeigen", "compass", "touch");
     $B->popup("", "Essen", "mGericht", "-1", "showCurrentList", "", "", "{top:20, width:800, hPosition:'center', blackout:true}");
     $BF = new Button("Gefrierschrank", "hash", "touch");
     $BF->popup("", "Gefrierschrank", "mGericht", "-1", "showCurrentFrozenList", "", "", "{top:20, width:1000, hPosition:'center', blackout:true}");
     $html .= "{$B}{$BF}</div>";
     echo $html;
 }
開發者ID:nemiah,項目名稱:fheME,代碼行數:10,代碼來源:mGerichtGUI.class.php

示例4: getButton

 public static function getButton($ibanField, $bicField, $ktoField = null, $blzField = null)
 {
     $attr = array("'{$ibanField}'", "'{$bicField}'");
     if ($ktoField != null and $blzField != null) {
         $attr[] = "\$j('[name={$ktoField}]').val()";
         $attr[] = "\$j('[name={$blzField}]').val()";
     }
     $B = new Button("IBAN-Rechner", "./images/i2/calc.png", "icon");
     $B->popup("", "IBAN-Rechner", "IBANCalc", "-1", "popup", $attr);
     return $B;
 }
開發者ID:nemiah,項目名稱:poolPi,代碼行數:11,代碼來源:IBANCalcGUI.class.php

示例5: getHistorieData

 public static function getHistorieData($ownerClass, $ownerClassID, HistorieTable $Tab)
 {
     $AC = anyC::get("Todo", "TodoClass", $ownerClass);
     $AC->addAssocV3("TodoClassID", "=", $ownerClassID);
     $AC->addOrderV3("TodoFromDay", "DESC");
     $AC->setLimitV3("10");
     while ($D = $AC->getNextEntry()) {
         $B = new Button("Aktivität anzeigen", "./ubiquitous/Todo/Todo.png", "icon");
         $B->popup("", "Event", "mKalender", "-1", "getInfo", array("'mTodoGUI'", $D->getID(), $D->A("TodoFromDay")));
         $Tab->addHistorie("Aktivität", "./ubiquitous/Todo/Todo.png", $D->A("TodoFromDay"), $D->getOwnerObject()->getCalendarTitle(), $B, $D->A("TodoDescription"), $D->A("TodoCreatorUserID"));
     }
     return true;
 }
開發者ID:nemiah,項目名稱:fheME,代碼行數:13,代碼來源:mTodo.class.php

示例6: getHTML

 function getHTML($id)
 {
     $this->loadMeOrEmpty();
     $gui = new HTMLGUI2();
     $gui->setObject($this);
     $gui->setName("Serie");
     $gui->setShowAttributes(array("name", "sprache", "dir", "lastupdate", "genre", "description", "status", "quality", "RSSFilterID", "altFeedName1", "altFileName1"));
     #$gui->setType("adapter", "hidden");
     #$gui->setType("lastupdate", "readonly");
     #$gui->setType("siteID", "hidden");
     #$gui->setType("url", "hidden");
     $gui->setType("description", "textarea");
     $gui->setLabel("sprache", "Language");
     $gui->setLabel("lastupdate", "Last update");
     $gui->setLabel("RSSFilterID", "RSS feed");
     $gui->setLabel("altFileName1", "alt. file name");
     $gui->setLabel("altFeedName1", "alt. feed name");
     $gui->setFieldDescription("altFileName1", "This is useful if the filenames do not match the full series name. trinityDB will then look for both names on the harddrive. For example 'switch' instead of 'Switch Reloaded'.");
     $gui->setFieldDescription("altFeedName1", "This is useful if the feed names do not match the full series name. trinityDB will then look for both names in the feeds. For example 'Human.Target.2010' instead of 'Human Target (2010)'.");
     $gui->setParser("lastupdate", "SerieGUI::lastUpdateParser");
     $gui->setType("quality", "select");
     $gui->setOptions("quality", array_keys(self::getQualities()), array_values(self::getQualities()));
     $gui->setType("sprache", "select");
     $gui->setOptions("sprache", array("en", "de"), array("english", "deutsch"));
     $gui->setStandardSaveButton($this);
     $gui->insertSpaceAbove("RSSFilterID");
     $gui->selectWithCollection("RSSFilterID", new mRSSFilterGUI(), "RSSFilterName", "none");
     $tab = new HTMLSideTable("right");
     $B = new Button("Download\nepisodes", "./trinityDB/Serien/Updates.png");
     #$B->rmePCR("Serie", $this->ID, "downloadEpisodes", array("'1'"), "Popup.display('Download-Status', transport);");
     $B->popup("", "Download-Status", "Serie", $this->ID, "downloadEpisodes", array("'1'"));
     $S = new Button("Settings", "./images/i2/settings.png");
     $S->type("icon");
     $S->style("float:right;margin-right:-20px;");
     $S->contextMenu("Serie", "download", "Settings");
     $tab->addRow($S . $B);
     $B = new Button("Show\nepisodes", "./trinityDB/Serien/Folge.png");
     $B->onclick("contentManager.loadFrame('contentLeft','mFolge',-1,0,'mFolgeGUI;SerieID:" . $this->getID() . "');");
     $tab->addRow($B);
     #$B = new Button("Find new\nepisodes","./trinityDB/RSSFilter/RSSFilter.png");
     #$B->rmePCR("Serie", $this->ID, "checkRSS", "", "Popup.display('Episoden-Status', transport);");
     #$tab->addRow($B);
     $B = new Button("Check\nepisodes", "okCatch");
     $B->rmePCR("Serie", $this->ID, "checkAllEpisodes", "", "Popup.display('Episoden-Status', transport);");
     $tab->addRow($B);
     $Image = new Button("", DBImageGUI::imageLink("Serie", $this->getID(), "cover", false, true), "icon");
     $Image->style("width:150px;");
     $tab->addRow(array($Image));
     return $tab . $gui->getEditHTML();
 }
開發者ID:nemiah,項目名稱:trinityDB,代碼行數:50,代碼來源:SerieGUI.class.php

示例7: getButtonGlobal

 public static function getButtonGlobal($preset, $label, $icon)
 {
     $ID = -1;
     $LD = self::getU($preset, -1);
     if ($LD != null) {
         $ID = $LD->getID();
     }
     #if($name == "GoogleAccountUserPass")
     #	$preset = "googleData";
     #else
     #	$preset = $name;
     $B = new Button($label, $icon);
     $B->popup("edit", "Benutzerdaten", "LoginData", $ID, "getPopup", "", "LoginDataGUI;preset:{$preset}");
     return $B;
 }
開發者ID:nemiah,項目名稱:poolPi,代碼行數:15,代碼來源:LoginData.class.php

示例8: getButtonU

 public static function getButtonU($name, $label, $icon)
 {
     $LD = self::getU($name);
     if ($LD == null) {
         $ID = -1;
     } else {
         $ID = $LD->getID();
     }
     $preset = "default";
     if ($name == "GoogleAccountUserPass") {
         $preset = "googleData";
     }
     $B = new Button($label, $icon);
     $B->popup("edit", "Benutzerdaten", "LoginData", $ID, "getPopup", "", "LoginDataGUI;preset:{$preset}");
     return $B;
 }
開發者ID:nemiah,項目名稱:projectMankind,代碼行數:16,代碼來源:LoginData.class.php

示例9: getOverviewContent

 public function getOverviewContent($echo = true)
 {
     $html = "";
     $i = 0;
     $header = false;
     $AC = anyC::get("RSSParser", "RSSParserOnCall", "1");
     while ($RSS = $AC->getNextEntry()) {
         if (!$header) {
             $html .= "<div class=\"touchHeader\"><p>RSS</p></div><div style=\"padding:10px;\">";
             $header = true;
         }
         $B = new Button($RSS->A("RSSParserName"), "rss", "touch");
         $B->popup("", $RSS->A("RSSParserName"), "RSSParser", $RSS->getID(), "showFeed");
         $html .= $B;
     }
     if ($header) {
         $html .= "</div>";
     }
     $this->addAssocV3("RSSParserOnCall", "=", "0");
     while ($RSS = $this->getNextEntry()) {
         $html .= "<div class=\"touchHeader\">\n\t\t\t\t<span class=\"lastUpdate\" id=\"lastUpdatemRSSParserGUI\"></span>\n\t\t\t\t<p>" . $RSS->A("RSSParserName") . "</p></div>\n\t\t\t\t\t<div id=\"RSSParserItemText\" class=\"backgroundColor4\" style=\"padding:10px;display:none;font-size:10px;\" onclick=\"\$j(this).hide(); \$j('#RSSParserItemList').show();\">asd</div>\n\t\t\t\t\t<div id=\"RSSParserItemList\" style=\"padding:10px;\">";
         $list = new HTMLList();
         $list->addListStyle("list-style-type:none;");
         $E = $RSS->parseFeed();
         foreach ($E as $item) {
             if ($RSS->A("RSSParserCount") > 0 and $RSS->A("RSSParserCount") <= $i) {
                 break;
             }
             #$B = new Button("", "empty", "icon");
             #
             $B = "";
             if ($item->icon != null) {
                 $B = $item->icon;
                 $B->style($B->getStyle() . "float:left;margin-right:10px;margin-top:-5px;margin-bottom:10px;");
             }
             $list->addItem($B . "<div id=\"RSSParserItem{$i}\" style=\"display:none;\">" . $item->description . "</div>" . ($item->description != "" ? "<a href=\"#\" onclick=\"\$j('#RSSParserItemList').hide(); \$j('#RSSParserItemText').html(\$j('#RSSParserItem{$i}').html()).show();\" >" : "") . $item->title . ($item->description != "" ? "</a>" : ""));
             $list->addItemStyle("clear:both;display:block;margin-left:0px;");
             $i++;
         }
         $html .= $list . "</div>";
     }
     if ($echo) {
         echo $html;
     }
     return $html;
 }
開發者ID:nemiah,項目名稱:fheME,代碼行數:46,代碼來源:mRSSParserGUI.class.php

示例10: getOverviewContent

 public function getOverviewContent($DeviceID)
 {
     $html = "<div class=\"touchHeader\"><span class=\"lastUpdate\" id=\"lastUpdatemNuntiusGUI\"></span><p>Nuntius</p></div>\n\t\t\t<div style=\"padding:10px;overflow:auto;\">";
     $Device = new Device($DeviceID);
     $BS = new Button("Nachricht senden", "comment_alt2_stroke", "touch");
     $BS->popup("", "Nachricht senden", "mNuntius", "-1", "sendMessagePopup", "", "", "{remember: true" . ($Device->A("DeviceType") != "4" ? ", top: 10" : "") . "}");
     $AC = anyC::get("Nuntius");
     $AC->addAssocV3("NuntiusDeviceID", "=", $DeviceID, "AND", "1");
     $AC->addAssocV3("NuntiusDeviceID", "=", "0", "OR", "1");
     $AC->addAssocV3("NuntiusRead", "=", "0", "AND", "2");
     $AC->setFieldsV3(array("COUNT(*) AS anzahl"));
     $N = $AC->getNextEntry();
     if ($N->A("anzahl") == 0) {
         $BM = new Button("Keine Nachrichten", "check", "touch");
         $BM->style("background-color:transparent;");
     } else {
         $BM = new Button($N->A("anzahl") . " Nachricht" . ($N->A("anzahl") == 1 ? "" : "en"), "info", "touch");
         $BM->className("highlight");
     }
     $BM->popup("", "Nachrichten", "mNuntius", "-1", "showMessages", array($DeviceID), "", "{remember: true" . ($Device->A("DeviceType") != "4" ? ", top: 10" : "") . "}");
     $html .= "{$BM}{$BS}</div>";
     echo $html;
 }
開發者ID:nemiah,項目名稱:fheME,代碼行數:23,代碼來源:mNuntiusGUI.class.php

示例11: bricklets

 public function bricklets()
 {
     $BA = new Button("Bricklet\nhinzufügen", "new");
     $BA->doBefore("\$j('#editAP').fadeOut(400, function(){ \$j('#editDetailsTinkerforge').animate({'width':'400px'}, 200, 'swing', function(){ %AFTER }); });");
     $BA->rmePCR("Tinkerforge", $this->getID(), "createNew", "", OnEvent::reloadPopup("Tinkerforge"));
     $BA->style("margin:10px;");
     $TE = new HTMLTable(4, "Bricklets");
     $TE->setColWidth(1, 20);
     $TE->setColWidth(2, 35);
     $TE->setColWidth(4, 20);
     $TE->useForSelection(false);
     $TE->maxHeight(400);
     $TE->weight("light");
     $BE = new Button("Eintrag bearbeiten", "arrow_right", "iconic");
     $autoLoad = false;
     $AC = anyC::get("TinkerforgeBricklet", "TinkerforgeBrickletTinkerforgeID", $this->getID());
     while ($A = $AC->getNextEntry()) {
         $B = new Button("Master", "bars", "iconicL");
         $B->popup("", "Plot", "TinkerforgeBricklet", $A->getID(), "getControls", "", "", "{width:820}");
         $B->style("float:right;");
         $BD = new Button("Eintrag löschen", "trash_stroke", "iconic");
         $BD->doBefore("\$j('#editAP').fadeOut(400, function(){ \$j('#editDetailsTinkerforge').animate({'width':'400px'}, 200, 'swing', function(){ %AFTER }); });");
         $BD->onclick("deleteClass('TinkerforgeBricklet','" . $A->getID() . "', function() { Popup.refresh('Tinkerforge'); },'Eintrag wirklich löschen?');");
         if ($A->A("TinkerforgeBrickletUID") == "") {
             $autoLoad = $A->getID();
         }
         $div = "<span id=\"TinkerforgeBrickletUID" . $A->getID() . "\">" . ($A->A("TinkerforgeBrickletUID") != "" ? $A->A("TinkerforgeBrickletUID") : "Neues Bricklet") . "</span>&nbsp;<br />\n\t\t\t\t\t<small style=\"color:grey;\" id=\"TinkerforgeBrickletType" . $A->getID() . "\">" . ($A->A("TinkerforgeBrickletType") != "" ? TinkerforgeBricklet::$types[$A->A("TinkerforgeBrickletType")] : "") . "</small>";
         $TE->addRow(array($BD, $B, $div, $BE));
         $TE->addCellEvent(3, "click", "contentManager.selectRow(this); \$j('#editDetailsTinkerforge').animate({'width':'800px'}, 200, 'swing', function(){ " . OnEvent::frame("editAP", "TinkerforgeBricklet", $A->getID(), "0", "function(){ \$j('#editAP').fadeIn(); }") . " });");
     }
     if ($AC->numLoaded() == 0) {
         $TE->addRow("Keine Bricklets eingetragen");
         $TE->addRowColspan(1, 3);
     }
     echo "{$BA}\n\t\t\t<div style=\"float:right;width:400px;height:500px;display:none;\" id=\"editAP\"></div>\n\t\t\t<div id=\"listAP\" style=\"width:400px;height:440px;overflow:auto;\">{$TE}</div>\n\t\t\t<div style=\"clear:both;\"></div>\n\t\t\t" . ($autoLoad ? OnEvent::script("\$j('#TinkerforgeBrickletUID" . $autoLoad . "').parent().trigger(Touch.trigger);") : "");
 }
開發者ID:nemiah,項目名稱:fheME,代碼行數:36,代碼來源:TinkerforgeGUI.class.php

示例12: toIcon

 private function toIcon($clickable, $data)
 {
     $icon = OpenWeatherMap::iconPng($data->weather[0]->icon);
     $B = new Button("", "./ubiquitous/OWM/icons48/" . $icon . ".png", "icon");
     if ($clickable) {
         $B->popup("", "Vorhersage", "mOpenWeatherMap", "-1", "all");
     }
     #".($i == 0 ? "Heute" : "Morgen")."
     return "<div style=\"display:inline-block;vertical-align:top;width:49%;margin-top:20px;\"><small style=\"color:grey;\">" . Datum::getGerWeekArray(date("w", $data->dt)) . ", " . date("d", $data->dt) . ".</small><br>\n\t\t\t<b style=\"font-size:15px;font-weight:bold;color:#555;\">" . round($data->temp->min) . " - " . round($data->temp->max) . " °C<br>" . $B . "\n\t\t\t</b>\n\t\t\t</div>";
 }
開發者ID:nemiah,項目名稱:fheME,代碼行數:10,代碼來源:mOpenWeatherMapGUI.class.php

示例13: getButton

 public static function getButton()
 {
     $B = new Button("xCal Konfiguration", "share", "iconicL");
     $B->popup("", "xCal Konfiguration", "mxCal", "-1", "getConfigPopup");
     return $B;
 }
開發者ID:nemiah,項目名稱:fheME,代碼行數:6,代碼來源:xCal.class.php

示例14: getInfo

 function getInfo($time)
 {
     $BE = "";
     $BD = "";
     $BDS = "";
     if ($this->editable != null) {
         if ($this->editable[0] != null) {
             $BE = new Button("Bearbeiten", "edit", "icon");
             $BE->style("margin:10px;float:right;");
             $BE->popup("", "Kalendereintrag bearbeiten", "mKalender", $this->classID, "editInPopup", array("'" . $this->className . "'", $this->classID, "'{$this->editable[0]}'"));
         }
         $BD = new Button("Dieses Event löschen", "trash", "icon");
         $BD->style("float:right;margin:10px;");
         $BD->doBefore("if(confirm('Löschen?')) %AFTER");
         $BD->rmePCR(str_replace("GUI", "", $this->className), $this->classID, $this->editable[1], $this->classID, "contentManager.reloadFrame('contentScreen'); Popup.close('mKalender', 'edit');");
         if ($this->repeat() !== false) {
             $BD->rmePCR(str_replace("GUI", "", $this->className), $this->classID, $this->editable[1], array($this->classID, $time + Kalender::parseTime($this->time) - 60), "contentManager.reloadFrame('contentLeft'); Popup.close('mKalender', 'edit');");
             $BDS = new Button("Alle Events Löschen", "./ubiquitous/Kalender/deleteSeries.png", "icon");
             $BDS->style("float:right;margin:10px;");
             $BDS->doBefore("if(confirm('Löschen?')) %AFTER");
             $BDS->rmePCR(str_replace("GUI", "", $this->className), $this->classID, $this->editable[1], $this->classID, "contentManager.reloadFrame('contentLeft'); Popup.close('mKalender', 'edit');");
         }
     }
     $T = new HTMLTable(2, "Eventdetails");
     $T->setColWidth(1, 120);
     $T->addColStyle(1, "vertical-align:top;");
     $T->addLV("Betreff", $this->title);
     $T->addLV("Tag", Util::CLDateParser($time));
     if (!$this->allDay) {
         $T->addLV("Uhrzeit", $this->formatTime($this->time));
     } else {
         $T->addLV("Uhrzeit", "Ganzer Tag");
     }
     $T->addLV("Details", "<div style=\"max-height:300px;overflow:auto;\">" . $this->summary . "</div>");
     if ($this->organizer) {
         $T->addLV("Organisator", $this->organizer);
     }
     if (count($this->values) > 0) {
         $T->insertSpaceAbove();
     }
     foreach ($this->values as $label => $value) {
         $T->addLV($label, $value);
     }
     $BN = "";
     if ($this->canNotify) {
         // TODO: Entfernen sobald Einladungen funktionieren
         $BN = new Button("Terminbestätigung", "mail" . ($this->notified ? "ed" : ""), "icon");
         $BN->style("margin-top:10px;margin-left:10px;");
         $BN->popup("", "Terminbestätigung", "Util", "-1", "EMailPopup", array("'mKalender'", "-1", "'notification::{$this->className}::{$this->classID}::{$time}'", "'function(){ Kalender.refreshInfoPopup(); }'"));
     }
     $BR = "";
     if ($this->isRepeatable and $this->getException() === false) {
         $BR = new Button("Wiederholungen", "refresh", "icon");
         $BR->style("margin:10px;float:right;");
         $BR->rmePCR("mKalender", "-1", "getRepeatable", array("'{$this->className}'", "'{$this->classID}'", "'{$this->isRepeatable}'"), "function(transport){ \$j('#eventSideContent').html(''); \$j('#editDetailsmKalender').animate({'width':'400px'}, 200, 'swing'); \$j('#eventAdditionalContent').html(transport.responseText).slideDown(); }");
     }
     $BI = new Button("Teilnehmer", "./ubiquitous/Kalender/einladungen.png", "icon");
     $BI->style("margin: 10px; float: right;");
     $BI->rmePCR("mKalender", "-1", "getInvitees", array("'{$this->className}'", "'{$this->classID}'"), "function(t){ \$j('#eventAdditionalContent').html(''); \$j('#editDetailsmKalender').animate({'width':'800px'}, 200, 'swing', function(){ \$j('#eventSideContent').html(t.responseText).fadeIn(); }); }");
     if (!$this->canInvite) {
         $BI = "";
     }
     $closed = "";
     if ($this->closeable) {
         $BC = new Button("Termin abschließen", "bestaetigung", "icon");
         $BC->style("margin: 10px; float: right;");
         $BC->rmePCR("mKalender", "-1", "getClose", array("'{$this->className}'", "'{$this->classID}'"), "function(t){ \$j('#editDetailsContentmKalender').html(t.responseText); }");
         if ($this->closed[0]) {
             $BC = "";
             $closed = "<p>Termin abgeschlossen am " . Util::CLDateParser($this->closed[0]) . ($this->closed[1] != "" ? ":<br>" . nl2br($this->closed[1]) : "") . "</p>";
         }
     }
     $topButtons = "";
     foreach ($this->topButtons as $B) {
         $B->type("icon");
         $B->style("margin-top:10px;margin-left:10px;");
         $topButtons .= $B;
     }
     return "<div style=\"width:400px;\">" . $BDS . $BD . $BE . $BN . $topButtons . $BR . $BI . $BC . $closed . "</div><div style=\"clear:both;\"></div><div style=\"display:none;\" id=\"eventAdditionalContent\"></div><div style=\"display:none;width:400px;float:right;\" id=\"eventSideContent\"></div><div style=\"width:400px;float:left;\" id=\"eventDefaultContent\"{$T}</div>";
 }
開發者ID:nemiah,項目名稱:fheME,代碼行數:80,代碼來源:KalenderEvent.class.php

示例15: addRestrictionParser

 public static function addRestrictionParser($w, $l, $p)
 {
     $deText = array();
     $deText["Umbenennung"] = "Umbenennung";
     $deText["Einschränkung"] = "Einschränkung";
     $deText["Ausblenden"] = "Ausblenden";
     $deText["Plugin"] = "Plugin";
     $ac = new anyC();
     $singularLanguageClass = $ac->loadLanguageClass("Userdata");
     $text = $singularLanguageClass != null ? $singularLanguageClass->getText() : $deText;
     $BA = new Button("Anmeldung", "./plugins/Userdata/login.png");
     $BA->contextMenu("mUserdata", "login", "Anmeldung", "right", "up");
     $BA->style("float:right;");
     $BN = new Button("Einschränkung\nhinzufügen", "restrictions");
     $BN->contextMenu("mUserdata", "1", "Einschränkung", "right", "up");
     $BS = new Button("Plugin-\nspezifisch", "lieferschein");
     $BS->contextMenu("mUserdata", "4", "Plugin-spezifisch", "right", "up");
     $BS->style("float:right;");
     $BP = new Button("Plugin\nausblenden", "tab");
     $BP->contextMenu("mUserdata", "5", "Plugin ausblenden", "right", "up");
     $BR = new Button("Rollen", "./plugins/Userdata/role.png");
     $BR->popup("", "Rollen", "mUserdata", "-1", "rolesPopup", array("lastLoadedLeft"));
     return "<p class=\"highlight\">Achtung: Die möglichen Berechtigungen sind von der geladenen Anwendung und ihren Plugins abhängig. Melden Sie sich an einer anderen Anwendung an, um weitere Berechtigungen zu vergeben.</p>" . "\n\t\t<!--<input type=\"button\" class=\"bigButton backgroundColor3\" title=\"" . (isset($text["Feld\numbenennen"]) ? $text["Feld\numbenennen"] : "Feld\numbenennen") . "\" onclick=\"phynxContextMenu.start(this, 'mUserdata','2','" . $text["Umbenennung"] . ":');\" style=\"float:right;background-image:url(./images/navi/relabel.png);\" />\n\t\t<button class=\"bigButton backgroundColor3\" value=\"" . (isset($text["Einschränkung\nhinzufügen"]) ? $text["Einschränkung\nhinzufügen"] : "") . "\" onclick=\"phynxContextMenu.start(this, 'mUserdata','1','" . $text["Einschränkung"] . ":');\" style=\"margin-bottom:10px;background-image:url(./images/navi/restrictions.png);\" /><br />-->\n\t\t{$BN}{$BS}<br><br>\n\t\t<!--<input type=\"button\" class=\"bigButton backgroundColor3\" title=\"" . (isset($text["Feld\nausblenden"]) ? $text["Feld\nausblenden"] : "Feld\nausblenden") . "\" onclick=\"phynxContextMenu.start(this, 'mUserdata','3','" . $text["Ausblenden"] . ":');\" style=\"float:right;background-image:url(./images/navi/clear.png);\" />\n\t\t<button class=\"bigButton backgroundColor3\" title=\"" . (isset($text["Plugin-\nspezifisch"]) ? $text["Plugin-\nspezifisch"] : "Plugin-\nspezifisch") . "\" onclick=\"phynxContextMenu.start(this, 'mUserdata','4','" . $text["Plugin"] . ":');\" style=\"margin-bottom:10px;background-image:url(./images/navi/lieferschein.png);\" />-->\n\t\t{$BP}{$BA}<br><br>\n\t\t{$BR}\n\t\t<!--<button class=\"bigButton backgroundColor3\" title=\"" . (isset($text["Plugin\nausblenden"]) ? $text["Plugin\nausblenden"] : "Plugin\nausblenden") . "\" onclick=\"phynxContextMenu.start(this, 'mUserdata','5','" . $text["Plugin"] . ":');\" style=\"background-image:url(./images/navi/tab.png);\" />-->";
 }
開發者ID:nemiah,項目名稱:fheME,代碼行數:24,代碼來源:mUserdataGUI.class.php


注:本文中的Button::popup方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。