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


PHP Button::getAction方法代码示例

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


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

示例1: remote

 public function remote()
 {
     $BG = new Button("Play", "play", "touch");
     $BG->rmePCR("UPnP", "'+UPnP.currentTargetID+'", "Play", array("'0'"));
     $BP = new Button("Pause", "pause", "touch");
     $BP->rmePCR("UPnP", "'+UPnP.currentTargetID+'", "Pause", array("'0'"));
     $BS = new Button("Stop", "stop", "touch");
     $BS->rmePCR("UPnP", "'+UPnP.currentTargetID+'", "Stop", array("'0'"));
     echo "\n\t\t<div style=\"width:100%;margin-bottom:20px;position:fixed;top:0;left:0;background-color:black;\" id=\"UPnPSelection\">\n\t\t\t<div style=\"float:right;margin-right:20px;\">\n\t\t\t\t<div onclick=\"UPnP.hide();\" style=\"cursor:pointer;float:left;font-family:Roboto;font-size:30px;padding:10px;\">\n\t\t\t\t\t<span style=\"margin-left:10px;float:right;margin-top:5px;color:#bbb;\" class=\"iconic iconicL x\"></span> <span>Schließen</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\n\t\t\t<div style=\"width:33%;float:left;\">\n\t\t\t\t<div onclick=\"UPnP.targetSelection();\" style=\"cursor:pointer;font-family:Roboto;font-size:30px;padding:10px;white-space: nowrap;\">\n\t\t\t\t\t<span style=\"margin-right:10px;float:left;margin-top:5px;color:#bbb;\" class=\"iconic iconicL arrow_down\"></span> <span id=\"UPnPTargetName\">Abspielgerät auswählen</span> \n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\n\t\t\t<div style=\"display:none;float:left;width:33%;\">\n\t\t\t\t<div onclick=\"UPnP.sourceSelection();\" style=\"cursor:pointer;float:left;font-family:Roboto;font-size:30px;padding:10px;white-space: nowrap;\">\n\t\t\t\t\t<span style=\"margin-right:10px;float:left;margin-top:5px;color:#bbb;\" class=\"iconic iconicL arrow_down\"></span> <span id=\"UPnPSourceName\">Quelle auswählen</span> \n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div style=\"clear:both;height:15px;\">\n\t\t\t</div>\n\t\t\t\n\t\t\t<div style=\"float:right;margin-right:20px;\">\n\t\t\t\n\t\t\t\t<div onclick=\"" . $BG->getAction() . "\" style=\"cursor:pointer;float:left;font-family:Roboto;font-size:30px;padding:10px;padding-left:70px;\">\n\t\t\t\t\t<span style=\"margin-left:10px;float:right;margin-top:5px;color:#bbb;\" class=\"iconic iconicL play\"></span> <span>Play</span>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<div onclick=\"" . $BP->getAction() . "\" style=\"cursor:pointer;float:left;font-family:Roboto;font-size:30px;padding:10px;padding-left:70px;\">\n\t\t\t\t\t<span style=\"margin-left:10px;float:right;margin-top:5px;color:#bbb;\" class=\"iconic iconicL pause\"></span> <span>Pause</span>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<div onclick=\"" . $BS->getAction() . "\" style=\"cursor:pointer;float:left;font-family:Roboto;font-size:30px;padding:10px;padding-left:70px;\">\n\t\t\t\t\t<span style=\"margin-left:10px;float:right;margin-top:5px;color:#bbb;\" class=\"iconic iconicL stop\"></span> <span>Stop</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t\n\t\t<div id=\"UPnPTargetSelection\" style=\"padding:10px;display:none;width:66%;position:absolute;\"></div>\n\t\t<div id=\"UPnPSourceSelection\" style=\"padding:10px;display:none;margin-left:33%;position:absolute;\"></div>\n\t\t<div style=\"overflow-x:hidden;width:100%;\">\n\t\t\t<div id=\"UPnPMediaSelection\" style=\"padding-right:0px;width:200%;\"></div>\n\t\t</div>";
 }
开发者ID:nemiah,项目名称:fheME,代码行数:10,代码来源:mUPnPGUI.class.php

示例2: editorDokument

    public static function editorDokument($tinyMCEID, $saveCallback, $buttons = null, $css = "./styles/tinymce/office.css", $picturesDir = null, $onInit = "")
    {
        if ($buttons == null) {
            $buttons = "save | undo redo | pastetext | styleselect fontsizeselect fontselect | bold italic underline forecolor | hr fullscreen code";
        }
        $B = new Button("Bilder", "new", "icon");
        $B->sidePanel("tinyMCE", "-1", "sidePanelAttachments", array("'{$picturesDir}'"));
        $fonts = "";
        if (file_exists(Util::getRootPath() . "ubiquitous/Fonts/")) {
            $fonts .= ";Ubuntu=Ubuntu;Orbitron=Orbitron;Raleway=Raleway";
        }
        try {
            $AC = anyC::get("Vorlage");
            $AC->addAssocV3("VorlageNewFonts", "!=", "");
            while ($V = $AC->n()) {
                $newFonts = json_decode($V->A("VorlageNewFonts"));
                foreach ($newFonts as $f) {
                    if (!file_exists(FileStorage::getFilesDir() . $f->file)) {
                        continue;
                    }
                    if (strpos($fonts, $f->name) !== false) {
                        continue;
                    }
                    $fonts .= ";" . $f->name . "=" . $f->name;
                }
            }
        } catch (ClassNotFoundException $e) {
        }
        return '
			$j("#' . $tinyMCEID . '").tinymce({
				menubar: false,
				statusbar: false,
				toolbar1: "' . $buttons . '",
				plugins: [
					"lists link image print preview hr",
					"code fullscreen noneditable",
					"save table",
					"paste textcolor"
				],
				style_formats:[
					{
						title: "Headers",
						items: [
							{title: "Header 1",format: "h1"},
							{title: "Header 2",format: "h2"},
							{title: "Header 3",format: "h3"},
							{title: "Header 4",format: "h4"},
							{title: "Header 5",format: "h5"},
							{title: "Header 6",format: "h6"}
						]
					}
				],
				font_formats: "Helvetica=helvetica;Courier=courier;Times New Roman=times new roman' . $fonts . '",
				fontsize_formats: "6pt 7pt 8pt 9pt 10pt 11pt 12pt 26pt 36pt",
				paste_as_text: true,
				browser_spellcheck : true,
				content_css : "' . $css . '",
				convert_urls : false,
				extended_valid_elements : "blockquote[cite|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|type],div[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title]",
				language : "de",
				entity_encoding : "raw",
				save_onsavecallback : ' . $saveCallback . ',
				init_instance_callback: function(ed){ ' . $onInit . ' },
				setup : function(ed) {
					ed.addButton("phynximage", {
						title : "Bilder",
						onclick : function() {
							' . $B->getAction() . '
						}
					});
				}
			});';
    }
开发者ID:nemiah,项目名称:poolPi,代码行数:73,代码来源:tinyMCEGUI.class.php

示例3: control

 private function control(poolAnzeigeControl $C)
 {
     $B = new Button($C->A("poolAnzeigeControlName"), str_replace("./img/", "./poolPi/Anzeige/img/", $C->A("poolAnzeigeControlSrc")), "icon");
     $B->editInPopup("poolAnzeigeControl", $C->getID());
     if ($C->A("poolAnzeigeControlClass") == "value") {
         $smallLabel = "";
         if ($C->A("poolAnzeigeControlCaption") != "") {
             $smallLabel = "<div style=\"position: relative;margin-top: -10px;width: 180px;box-sizing: border-box;color: #999999;\">" . $C->A("poolAnzeigeControlCaption") . "</div>";
         }
         return "<div style=\"display: inline-block;vertical-align: top;padding-top:30px;padding-bottom:25px;\">{$smallLabel}<div onclick=\"" . $B->getAction() . "\" style=\"color: #aaa;cursor:pointer;width: 180px;height:120px;font-weight: bold;font-size: 4.5em;text-align: right;box-sizing: border-box;font-weight: 700;\">X</div></div>";
     }
     $smallLabel = "";
     if ($C->A("poolAnzeigeControlCaption") != "") {
         $smallLabel = "<div style=\"position: relative;height:15px;margin-top: -15px;text-align: center;width: 180px;box-sizing: border-box;color: #999999;\">" . $C->A("poolAnzeigeControlCaption") . "</div>";
     }
     $labelLabel = "";
     if ($C->A("poolAnzeigeControlLabel") != "") {
         $labelLabel = "<div style=\"height: 80px;margin-top: -80px;padding-left: 10px;padding-right: 10px;cursor: pointer;font-size: 1.8em;text-align: center;width: 180px;box-sizing: border-box;color: #999999;\">" . $C->A("poolAnzeigeControlLabel") . "</div>";
     }
     return "<div style=\"display: inline-block;vertical-align: top;\">{$smallLabel}{$B}{$labelLabel}</div>";
 }
开发者ID:nemiah,项目名称:poolPi,代码行数:21,代码来源:mpoolAnzeigeGUI.class.php


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