本文整理汇总了PHP中OnEvent::popup方法的典型用法代码示例。如果您正苦于以下问题:PHP OnEvent::popup方法的具体用法?PHP OnEvent::popup怎么用?PHP OnEvent::popup使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OnEvent
的用法示例。
在下文中一共展示了OnEvent::popup方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getOverviewContent
public function getOverviewContent()
{
$html = "<div class=\"touchHeader\"><span class=\"lastUpdate\" id=\"lastUpdatemGerichtGUI\"></span><p>MailCheck</p></div>\n\t\t\t<div style=\"padding:10px;overflow:auto;\">";
$BU = new Button("", "./fheME/Gericht/update.png", "icon");
$BU->style("float:right;");
$BU->onclick("fheOverview.loadContent('mGerichtGUI::getOverviewContent');");
$AC = anyC::get("MailCheck");
while ($MC = $AC->getNextEntry()) {
$B = new Button("Mails abholen", "mail", "iconicL");
$html .= "\n\t\t\t<div class=\"touchButton\" onclick=\"Overlay.showDark();" . OnEvent::popup("Mails abholen", "MailCheck", $MC->getID(), "check", "1", "", "{width:1000, top:20, left:20, hPosition:'center'}") . "\">\n\t\t\t\t" . $B . "\n\t\t\t\t<div class=\"label\">" . $MC->A("MailCheckName") . "</div>\n\t\t\t\t<div style=\"clear:both;\"></div>\n\t\t\t</div>";
}
$html .= "</div>";
echo $html;
}
示例2: getActions
public function getActions()
{
$DBFilePath = Util::getRootPath() . "system/DBData/Installation.pfdb.php";
$File = new File($DBFilePath);
$File->loadMe();
$ASetup = "contentManager.loadPlugin('contentRight', 'mInstallation');";
$B = new Button("Erneut prüfen", "./plugins/Installation/recheck.png", "icon");
$B->onclick($ASetup);
$B->id("recheckButton");
$hasDBConnection = false;
try {
$Version = mUserdata::getGlobalSettingValue("DBVersion", false);
$hasDBConnection = true;
} catch (Exception $e) {
}
if (!$File->A("FileIsWritable") and !$hasDBConnection) {
$message = "<p style=\"padding:20px;font-size:20px;color:#555;text-align:center;\">" . $_SESSION["applications"]->getActiveApplication() . " ist auf diesem Server noch nicht installiert.</p>";
$html = "<div style=\"width:600px;margin:auto;line-height:1.5;\">\n\t\t\t\t<p>\n\t\t\t\t<img src=\"./images/navi/restrictions.png\" style=\"float:left;margin-right:10px;\"/>\n\t\t\t\tDie Datei <code>/system/DBData/Installation.pfdb.php</code> ist <b>nicht beschreibbar</b>.</p>\n\t\t\t\t\n\t\t\t\t<p style=\"margin-top:20px;\">Machen Sie die Datei mit einem FTP-Programm beschreibbar.<br />\n\t\t\t\tKlicken Sie dazu mit der rechten Maustaste auf die Datei auf dem Server, wählen Sie <b>\"Eigenschaften\"</b>, und geben Sie den Modus <b>666</b> an, damit sie durch den Besitzer, die Gruppe und alle Anderen les- und beschreibbar ist.</p>\n\t\t\t\t<div style=\"width:350px;margin:auto;padding-top:20px;padding-bottom:20px;\">\n\t\t\t\t" . $this->box($B, $ASetup, "Erneut<br />prüfen") . "\n\t\t\t\t</div>\n\t\t\t</div>";
die($message . $html);
}
$containers = 0;
$message = "";
$html = "";
$hidden = "<a class=\"hiddenLink\" href=\"#\" onclick=\"" . OnEvent::popup("Fehlerausgabe", "mInstallation", "-1", "updateAllTables", array("'1'")) . "return false;\"> </a>";
try {
$Version = mUserdata::getGlobalSettingValue("DBVersion", false);
if ($Version !== false and $Version == Phynx::build()) {
$message = "<p style=\"padding:20px;font-size:20px;color:#555;text-align:center;\">Ihre Datenbank ist auf dem aktuellen Stand.{$hidden}</p>";
}
if ($Version === false or $Version != Phynx::build()) {
$message = "<p style=\"padding:10px;font-size:20px;color:#555;margin-bottom:40px;text-align:center;\">Ihre Datenbank muss aktualisiert werden.</p>";
$ASetup = "\$j('#updateButton').attr('src', './plugins/Installation/bigLoader.png'); " . OnEvent::rme($this, "updateAllTables", "", "function(transport){ contentManager.contentBelow(transport.responseText); }");
$B = new Button("Datenbank aktualisieren", "./plugins/Installation/aktualisieren.png", "icon");
$B->onclick($ASetup);
$B->id("updateButton");
$html = $this->box($B, $ASetup, "Die Datenbank<br />aktualisieren", "", $hidden);
$html = "<div style=\"width:350px;margin:auto;padding-bottom:40px;\">" . $html . "</div>";
}
} catch (NoDBUserDataException $e) {
$message = "<p style=\"padding:10px;font-size:20px;color:#555;text-align:center;color:red;\">Mit den angegebenen Datenbank-Zugangsdaten kann keine Verbindung aufgebaut werden.</p>";
echo OnEvent::script("contentManager.loadFrame('contentLeft','Installation','1');");
if (PHYNX_MAIN_STORAGE == "MySQL") {
try {
$DB1 = new DBStorageU();
$BN = new Button("Hinweis", "notice", "icon");
$BN->style("float:left;margin-right:10px;");
$File = new File(Util::getRootPath() . "system/connect.php");
$B = new Button("Verbindungsart umstellen", "./plugins/Installation/changedb.png", "icon");
$B->onclick($A);
$B->id("changedbButton");
$A = OnEvent::rme($this, "switchDBToMySQLo", "", "function(){ Installation.reloadApp(); }");
$BR = "<p style=\"margin-top:20px;\">Verwenden Sie den Knopf unten, um die Verbindungsart auf die ältere Version umzustellen.<br />\n\t\t\t\t\t\tSie müssen sich anschließend erneut anmelden.</p>\n\t\t\t\t\t\t<div style=\"width:350px;margin:auto;padding-top:20px;padding-bottom:20px;\">" . $this->box($B, $A, "Verbindungsart<br />umstellen") . "</div>";
$A = "contentManager.loadPlugin('contentRight', 'mInstallation');";
$B = new Button("Erneut prüfen", "./plugins/Installation/recheck.png", "icon");
$B->onclick($A);
$B->id("recheckButton");
if (!$File->A("FileIsWritable")) {
$BR = "<p style=\"margin-top:20px;\">Bitte machen Sie die Datei /system/connect.php für den Webserver beschreibbar, damit phynx auf die ältere Verbindungsart umstellen kann.<br /><br />Verwenden Sie dazu Ihr FTP-Programm. Klicken Sie mit der rechten Maustaste auf die Datei auf dem Server, wählen Sie \"Eigenschaften\", und geben Sie den Modus 666 an, damit sie durch den Besitzer, die Gruppe und alle Anderen les- und schreibbar ist.\n\t\t\t\t\t\t\t</p><div style=\"width:350px;margin:auto;padding-top:20px;padding-bottom:20px;\">" . $this->box($B, $A, "Erneut<br />prüfen") . "</div>";
}
$html = "<p style=\"margin-top:30px;\">{$BN} Möglicherweise ist die MySQLi-Erweiterung auf Ihrem Server nicht korrekt konfiguriert.</p>{$BR}";
$html = "<div style=\"width:700px;margin:auto;padding-bottom:40px;\">" . $html . "</div>";
} catch (Exception $e) {
#echo "MySQL geht auch nicht!";
}
}
} catch (DatabaseNotFoundException $e) {
$message = "<p style=\"padding:10px;font-size:20px;color:#555;text-align:center;color:red;\">Die angegebene Datenbank konnte nicht gefunden werden.</p>";
echo OnEvent::script("contentManager.loadFrame('contentLeft','Installation','1');");
} catch (TableDoesNotExistException $e) {
$message = "<p style=\"padding:10px;font-size:20px;color:#555;margin-bottom:40px;text-align:center;\">Ihre Datenbank hat derzeit noch keinen Inhalt.</p>";
$ASetup = "\$j('#setupButton').attr('src', './plugins/Installation/bigLoader.png'); " . OnEvent::rme($this, "setupAllTables", "", "function(transport){ contentManager.contentBelow(transport.responseText); }");
$BSetup = new Button("Datenbank einrichten", "./plugins/Installation/setup.png", "icon");
$BSetup->onclick($ASetup);
$BSetup->id("setupButton");
$hidden = "<a class=\"hiddenLink\" href=\"#\" onclick=\"" . OnEvent::popup("Fehlerausgabe", "mInstallation", "-1", "setupAllTables", array("'1'")) . "return false;\"> </a>";
$html = $this->box($BSetup, $ASetup, "Die Datenbank<br />einrichten", "", $hidden);
$containers = 1;
$BM = new BackupManagerGUI();
$list = $BM->getBackupsList();
$ARestore = OnEvent::popup("Backup-Manager", "BackupManager", "-1", "inPopup");
$BRestore = new Button("Datenbank wiederherstellen", "./plugins/Installation/restore.png", "icon");
$BRestore->onclick($ARestore);
$BRestore->id("setupButton");
$html .= $this->box($BRestore, $ARestore, "Eine Sicherung<br />wiederherstellen", count($list) == 0 ? "color:grey;" : "");
$containers++;
$html = "<div style=\"width:" . $containers * 360 . "px;margin:auto;padding-bottom:40px;\">" . $html . "</div>";
}
echo "{$message}{$html}";
}
示例3: __construct
function __construct()
{
$this->onClick = OnEvent::popup("Event", "mKalender", -1, "getInfo", array("'%%CLASSNAME%%'", "'%%CLASSID%%'", "'%%TIME%%'"), "", "Kalender.popupOptions");
}
示例4: discover
public function discover($reloadWhat = null)
{
echo "<p>Starte Suche. Das könnte etwas dauern...</p>";
echo OnEvent::script(OnEvent::popup("", "mUPnP", "-1", "discoverNow", array("'{$reloadWhat}'")));
}
示例5: getHTML
function getHTML($id)
{
$this->addOrderV3("PatchID");
$this->lCV3($id);
$gui = new HTMLGUI();
$gui->setName("Updates");
$gui->setAttributes($this->collector);
$gui->setCollectionOf($this->collectionOf, "Update");
$gui->setShowAttributes(array("PatchDescription", "PatchExecuted"));
$gui->setParser("PatchExecuted", "Util::catchParser");
$gui->setParser("PatchDescription", "mPatchGUI::descriptionParser");
#$gui->setIsDisplayMode(true);
#$gui->setEditInDisplayMode(true,"contentLeft");
#$gui->setDeleteInDisplayMode(false);
$BXML = new Button("XML\nerzeugen", "empty");
$BXML->style("float:right;");
$BXML->windowRme("mPatch", "-1", "getXML", "");
if (strpos($_SERVER["SCRIPT_FILENAME"], "/nemiah") === false) {
$BXML = "";
}
$BU = new Button("Updates\naktualisieren", "refresh");
$BU->rmePCR("mPatch", "-1", "update", "", "function(transport){ if(transport.responseText != 'error') " . OnEvent::reload("Right") . " else new Effect.BlindDown('errorMessage'); }");
$T = new HTMLTable(1, "Einzelne Aktualisierungen");
$T->addRow(array($BU . $BXML . "\n\t\t\t\t\t<div id=\"errorMessage\" style=\"display:none;color:red;\">Es konnte keine Verbindung zum Updates-Server hergestellt werden.<br />Bitte stellen Sie folgende Voraussetzungen sicher:\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li>Der Server mit Ihrer Installation kann eine Verbindung ins Internet aufbauen.</li>\n\t\t\t\t\t\t<li>Sie benutzen die aktuellste Version des Update-Plugins.</li>\n\t\t\t\t\t</ul></div>"));
$html = OnEvent::script("var Patch = { popup: { 'width':600, 'hPosition': 'center', hasX: false } }") . $T;
/*"
<table>
<colgroup>
<col class=\"backgroundColor3\" />
</colgroup>
<tr>
<td>
".(strpos($_SERVER["SCRIPT_FILENAME"], "/nemiah") !== false ? "<input
style=\"float:right;\"
onclick=\"windowWithRme('mPatch','','getXML','');\"
type=\"button\"
class=\"bigButton backgroundColor2\"
value=\"XML\nerzeugen\"
/>" : "")."
<input
style=\"background-image:url(./images/navi/refresh.png);\"
onclick=\"rme('mPatch','','update','','if(transport.responseText != \'error\') contentManager.reloadFrameRight(); else new Effect.BlindDown(\'errorMessage\');');\"
type=\"button\"
class=\"bigButton backgroundColor2\"
value=\"Updates\naktualisieren\"
/>
</td>
</tr>
</table>";*/
#else
# $html = "";
$F = new HTMLForm("updateForm", array("file"), "Die Anwendung aktualisieren");
$F->getTable()->setColWidth(1, 120);
$F->setType("file", "file");
$F->setLabel("file", "Paket");
$F->addJSEvent("file", "onChange", "Overlay.showDark(0.1, 0.8); " . OnEvent::popup("Anwendungsaktualisierung", "mPatch", "-1", "processUpdate", array("fileName"), "", "Patch.popup"));
$F->setDescriptionField("file", "Hier aktualisieren Sie Ihre komplette Anwendung mit einem neuen Paket, das Sie von Furtmeier Hard- und Software erhalten haben.<br /><br />Sie können damit sowohl neue Versionen (Update) einspielen als auch eine mit Plugins erweiterte Version (Upgrade) einrichten.<br /><br />Alle Dateien werden vorher gesichert und alle eingetragenen Daten bleiben erhalten.");
try {
return ($id == -1 ? $F . "<div style=\"height:30px;\"></div>" . $html : "") . $gui->getBrowserHTML($id);
} catch (Exception $e) {
}
return $html;
}
示例6: rightCol
public function rightCol($return = false)
{
$useDir = realpath(FileStorage::getFilesDir());
$path = BPS::getProperty("mFileGUI", "path", false);
if ($path) {
$path = preg_replace("/^([A-Z])%/", "\\1:", $path);
if (strpos($path, realpath(FileStorage::getFilesDir())) === 0) {
$useDir = $path;
}
}
$writable = is_writable($useDir);
$readable = is_readable($useDir);
$this->setDir($useDir);
$this->loadMultiPageMode(-1, 0, 10000);
$showPath = str_replace(realpath(FileStorage::getFilesDir()), "", $useDir);
$BH = new Button("Root", "home", "iconicL");
$BH->onclick($this->pather(FileStorage::getFilesDir()));
$BH->style("float:left;");
$way = realpath(FileStorage::getFilesDir());
$bread = "<div style=\"vertical-align:top;display:inline-block;border-right:1px solid #aaa;\" class=\"isFolder\" data-path=\"{$way}\">{$BH} </div>";
foreach (explode(DIRECTORY_SEPARATOR, $showPath) as $k => $v) {
if ($k == 0) {
continue;
}
$way .= DIRECTORY_SEPARATOR . "{$v}";
$bread .= "<div class=\"selectionRow isFolder\" data-path=\"{$way}\" onclick=\"" . $this->pather($way) . "\" style=\"padding:8px;cursor:pointer;border-right:1px solid #aaa;color:#555;vertical-align:top;display:inline-block;padding-left:20px;padding-right:20px;border-bottom:0px;\">{$v}</div>";
}
$I = new HTMLInput("upload", "file", null, array("path" => $way, "class" => "File"));
$I->style("width:250px;");
$I->onchange($this->pather($way));
$IN = new HTMLInput("newDir", "text");
$IN->placeholder("Neues Verzeichnis");
$IN->style("width:250px;margin-right:20px;");
$IN->onEnter(OnEvent::rme($this, "makeDir", array("'{$way}'", "\$j(this).val()"), "function(){ " . $this->pather($way) . " }"));
$ISA = new HTMLInput("selectAll", "checkbox");
$ISA->onchange("console.log(\$j(this).prop('checked')); \$j('.selectFile').prop('checked', \$j(this).prop('checked'));");
if (!$writable or !$readable) {
$I = "";
$IN = "";
}
$html = "\n\t\t\t<div style=\"background-color:#F7F7F7;border-bottom:1px solid #ddd;\">\n\t\t\t\t{$bread}\n\t\t\t\t<div style=\"display:inline-block;margin-top:2px;float:right;\">{$IN}</div>\n\t\t\t\t<div style=\"display:inline-block;margin-top:1px;float:right;\">{$I}</div>\n\t\t\t</div>\n\t\t\t\n\t\t\t<div id=\"filesFrame\" style=\"overflow:auto;\">\n\t\t\t<form id=\"dlFiles\">\n\t\t\t<div style=\"border-bottom:1px solid #ddd;color:#777;\">\n\t\t\t\t<div style=\"display:inline-block;float:right;padding:5px;\">\n\t\t\t\t\tGröße\n\t\t\t\t\t<div style=\"display:inline-block;width:64px;\"> </div>\n\t\t\t\t</div>\n\t\t\t\t<!--<div style=\"display:inline-block;width:57px;float:left;padding-left:5px;\">{$ISA}</div>-->\n\t\t\t\t<div style=\"display:inline-block;width:26px;float:left;padding-left:5px;\"> </div>\n\t\t\t\t<div style=\"padding:5px;\">Dateiname</div>\n\t\t\t</div>";
if (!$readable) {
$html .= "<div style=\"padding:5px;\" class=\"highlight\">Das Verzeichnis <code>{$useDir}</code> ist nicht lesbar.</div>";
return $html;
}
if (!$writable) {
$html .= "<div style=\"padding:5px;\" class=\"highlight\">Das Verzeichnis {$useDir} ist nicht beschreibbar.<br />\n\t\t\t\tEs können keine Unterverzeichnisse angelegt oder Dateien hochgeladen werden.<br />\n\t\t\t\tBitte machen Sie das Verzeichnis mit <code>chmod 777 " . basename($useDir) . "</code> durch den Webserver beschreibbar.</div>";
}
$i = 0;
while ($F = $this->getNextEntry()) {
if ($F->A("FileName") == "." or $F->A("FileName") == "..") {
continue;
}
$ext = Util::ext($F->A("FileName"));
$B = "";
if ($F->A("FileIsDir")) {
$B = new Button("Verzeichnis öffnen", "./plugins/Files/icons/folder.png", "icon");
$B->style("margin-right:5px;margin-top:2px;");
} elseif (!$F->A("FileIsDir") and file_exists(dirname(__FILE__) . "/icons/file_extension_{$ext}.png")) {
$B = new Button("", "./plugins/Files/icons/file_extension_{$ext}.png", "icon");
$B->style("margin-right:5px;margin-top:2px;");
} elseif (!$F->A("FileIsDir") and !file_exists(dirname(__FILE__) . "/icons/file_extension_{$ext}.png")) {
$B = new Button("", "./plugins/Files/icons/file_extension_unknown.png", "icon");
$B->style("margin-right:5px;margin-top:2px;");
}
$BDL = new Button("Datei herunterladen", "download", "iconic");
$BDL->style("margin-right:10px;");
$BDL->windowRme("File", $F->getID(), "download");
$size = "<div style=\"display:inline-block;margin-right:20px;color:grey;width:60px;text-align:right;\"></div>";
if ($F->A("FileIsDir")) {
$onclick = $this->pather($F->getID());
$BDL = "";
} else {
$onclick = OnEvent::popup("Vorschau", "File", $F->getID(), "previewWindow", "", "", "{width:600, hPosition: 'center'}");
$size = "<div style=\"display:inline-block;margin-right:20px;color:grey;width:60px;text-align:right;\">" . Util::formatByte($F->A("FileSize")) . "</div>";
}
$onRename = OnEvent::rme($F, "rename", array("\$j('input[name=renameFile{$i}]').val()"), "function(t){ \$j('.fileName{$i}').html(t.responseText); \$j('#default{$i}').show(); \$j('#rename{$i}').hide(); }");
$BD = new Button("Element löschen", "trash_stroke", "iconic");
#$BD->style("float:right;");
$BD->onclick("deleteClass('File','" . $F->getID() . "', function() { " . $this->pather(realpath(dirname($F->getID()))) . " },'Element wirklich löschen?');");
$BR = new Button("Element umbenennen", "pen_alt2", "iconic");
$BR->style("margin-right:10px;");
$BR->onclick("\$j('.fileDefault').show(); \$j('.fileRename, #default{$i}').hide(); \$j('#rename{$i}').show();");
$IR = new HTMLInput("renameFile{$i}", "text", $F->A("FileName"));
$IR->style("width:350px;");
$IR->onEnter($onRename);
$BC = new Button("Umbenennen abbrechen", "x", "iconic");
$BC->onclick("\$j('#default{$i}').show(); \$j('#rename{$i}').hide();");
$BC->style("margin-left:10px;");
$BO = new Button("Umbenennen abschließen", "check", "iconic");
$BO->onclick($onRename);
$BO->style("margin-left:10px;");
$IC = new HTMLInput("select{$i}", "checkbox");
$IC->setClass("selectFile");
$IC->style("margin-top:2px;margin-right:10px;display:none;");
$html .= "\n\t\t\t<div data-path=\"" . $F->getID() . "\" class=\"selectionRow " . ($F->A("FileIsDir") ? "isFolder" : "") . "\" style=\"\">\n\t\t\t\t<div class=\"selectionRowHeightSetter\" style=\"display:inline-block;float:left;\">{$IC}{$B}</div>\n\t\t\t\t<div class=\"selectionRowHeightSetter\" style=\"display:inline-block;float:right;\">{$BDL}{$BR}{$size}{$BD}</div>\n\t\t\t\t\t\n\t\t\t\t<div id=\"rename{$i}\" class=\"fileRename selectionRowHeightSetter\" style=\"display:none;margin-bottom:-3px;\">{$IR}{$BC}{$BO}</div>\n\t\t\t\t<div id=\"default{$i}\" class=\"selectionRowHeightSetter fileDefault\" onclick=\"" . $onclick . "\" style=\"padding:5px;padding-top:9px;cursor:pointer;\">\n\t\t\t\t\t<span class=\"fileName{$i}\">" . str_replace(".{$ext}", "<span style=\"color:grey;\">.{$ext}</span>", $F->A("FileName")) . "</span>\n\t\t\t\t\t\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div style=\"clear:both;\"></div>\n\t\t\t</div>";
$i++;
}
$html .= "</form></div>" . OnEvent::script("\n\$j('.selectionRow').draggable({\n\trevert: true,\n\thelper: function(v){\n\t\tvar newE = \$j(v.target).closest('.selectionRow').clone();\n\t\tnewE.css('width', '400px').css('opacity', '0.7').addClass('selectionRow');\n\t\tnewE.find('.iconic').remove();\n\t\treturn newE;\n\t}/*,\n\tstart: function (event, ui) {\n\t\t \$j(ui.helper).css('margin-left', event.clientX - \$j(event.target).offset().left + 10);\n\t\t \$j(ui.helper).css('margin-top', event.clientY - \$j(event.target).offset().top + 10);\n\t }*/\n});\n\n\$j('.isFolder').droppable({\n\thoverClass: 'highlight',\n\taccept: '.selectionRow',\n\ttolerance: 'pointer',\n\tdrop: function(event, ui) {\n\t\tvar newE = ui.helper.clone();\n\t\tui.helper.remove();\n\t\t" . OnEvent::rme($this, "moveFile", array("\$j(ui.draggable).data('path')", "\$j(this).data('path')"), "function(){ \n\t\t\t\$j(ui.draggable).fadeOut(400, function(){ \$j(this).remove(); }); \n\t\t\t\$j('body').append(newE);\n\t\t\t\$j(newE).fadeOut(400, function(){ \$j(this).remove(); }); \n\t\t}") . "\n\t}\n});\n");
if (!$return) {
//.........这里部分代码省略.........
示例7: readSetStart
public function readSetStart($ObjectID, $targetUPnPID)
{
$B = new Button("Reload", "refresh");
$B->onclick(OnEvent::popup("", "UPnP", $this->getID(), "readSetStart", array("'" . $ObjectID . "'")));
$B->style("margin:10px;");
$result = $this->Browse($ObjectID, "BrowseMetadata", "*");
echo $B;
echo "<pre style=\"max-height:300px;overflow:auto;padding:5px;\">";
#$this->prettyfy($result["Result"]);
$xml = new SimpleXMLElement($result["Result"]);
print_r($xml->item[0]->res[0] . "");
$U = new UPnP($targetUPnPID);
$U->SetAVTransportURI(0, $xml->item[0]->res[0] . "");
$U->Play();
echo "</pre>";
}
示例8: editInPopup
function editInPopup($id, $date = null, $targetClass = null, $targetClassID = null, $time = null, $description = null, $location = null)
{
if ($date != null) {
BPS::setProperty("TodoGUI", "TodoTillDay", Util::CLDateParser($date));
}
if ($time != null) {
BPS::setProperty("TodoGUI", "TodoFromTime", $time);
}
if ($description != null) {
BPS::setProperty("TodoGUI", "TodoDescription", $description);
}
if ($location != null) {
BPS::setProperty("TodoGUI", "TodoLocation", $location);
}
$T = new TodoGUI($id);
$T->GUI = new HTMLGUIX($T);
$T->GUI->displayMode("popupS");
$T->GUI->requestFocus("TodoName");
#if($id == -1)
$T->GUI->addToEvent("onSave", OnEvent::popup("Event", "mKalender", "-1", "getInfo", array("'mTodoGUI'", "transport.responseText", "'{$date}'")));
if ($targetClass != null) {
BPS::setProperty("mTodoGUI", "ownerClass", $targetClass);
BPS::setProperty("mTodoGUI", "ownerClassID", $targetClassID);
}
$T->getHTML($id);
#if($T->A("TodoClass") == "Kalender" OR $T->A("TodoClass") == "DBMail")
$T->GUI->insertAttribute("after", "TodoClassID", "TodoName");
if (BPS::getProperty("TodoGUI", "overview")) {
$T->GUI->addFieldEvent("TodoUserID", "onChange", OnEvent::rme($this, "getBusyList", array("this.value", "1"), "function(t){ \$j('#busyList').html(t.responseText); }"));
$gui = $T->GUI->getEditHTML();
$html = "<div id=\"busyList\" style=\"display:inline-block;width:400px;vertical-align:top;max-height:450px;overflow:auto;\">" . $this->getBusyList(Session::currentUser()->getID(), false) . "</div><div style=\"display:inline-block;width:400px;vertical-align:top;\">{$gui}</div>";
BPS::unsetProperty("TodoGUI", "overview");
die($html);
}
echo $T->GUI->getEditHTML();
#.OnEvent::script("\$j('#editTodoGUI input[name=TodoName]').trigger('focus');");
}