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>"; }
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() . ' } }); } });'; }
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>"; }