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


PHP OnEvent::closePopup方法代码示例

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


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

示例1: getHTML

 function getHTML($id)
 {
     $B = new Button("Element\nlöschen", "trash", "icon");
     $B->rmePCR("poolAnzeigeControl", $this->getID(), "deleteMe", "", OnEvent::closePopup("poolAnzeigeControl") . OnEvent::reload("Screen"));
     $B->style("margin:10px;");
     $gui = new HTMLGUIX($this);
     $gui->name("Element");
     $gui->displayMode("popupS");
     $gui->attributes(array("poolAnzeigeControlCaption", "poolAnzeigeControlLabel", "poolAnzeigeControlNewLine", "poolAnzeigeControlClass", "poolAnzeigeControlSrc", "poolAnzeigeControlServer", "poolAnzeigeControlMaster", "poolAnzeigeControlValue", "poolAnzeigeControlUpdate", "poolAnzeigeControlGroup", "poolAnzeigeControlGroupDelay", "poolAnzeigeControlGroupDelayIf"));
     $gui->label("poolAnzeigeControlNewLine", "Neue Zeile");
     $gui->label("poolAnzeigeControlCaption", "Überschrift");
     $gui->label("poolAnzeigeControlLabel", "Beschriftung");
     $gui->label("poolAnzeigeControlOrder", "Reihenfolge");
     $gui->label("poolAnzeigeControlClass", "Klasse");
     $gui->label("poolAnzeigeControlSrc", "Bild");
     $gui->label("poolAnzeigeControlServer", "Steuerung");
     $gui->label("poolAnzeigeControlGroupDelay", "Verzögerung in s");
     $gui->label("poolAnzeigeControlGroup", "Eigene Gruppe");
     $gui->label("poolAnzeigeControlUpdate", "Update Gruppe(n)");
     $gui->label("poolAnzeigeControlGroupDelayIf", "Wenn");
     $gui->type("poolAnzeigeControlNewLine", "checkbox");
     $gui->type("poolAnzeigeControlServer", "readonly");
     $gui->type("poolAnzeigeControlClass", "select", array("manual" => "Statisch", "load" => "Laden", "value" => "Wert"));
     $gui->type("poolAnzeigeControlGroupDelayIf", "select", array("" => "ohne", "on" => "Ein"));
     if ($this->A("poolAnzeigeControlMasterValues") != "") {
         $gui->type("poolAnzeigeControlMaster", "select", poolAnzeigeControl::values($this->A("poolAnzeigeControlMasterValues")));
     }
     $gui->descriptionField("poolAnzeigeControlUpdate", "Mehrere Gruppen durch Komma trennen");
     $gui->descriptionField("poolAnzeigeControlNewLine", "Fügt eine neue Zeile vor dem Element ein");
     $gui->space("poolAnzeigeControlClass");
     $gui->space("poolAnzeigeControlServer");
     $gui->space("poolAnzeigeControlUpdate");
     return $B . $gui->getEditHTML();
 }
开发者ID:nemiah,项目名称:poolPi,代码行数:34,代码来源:poolAnzeigeControlGUI.class.php

示例2: sendEmail

 public static function sendEmail($subject, $body, $recipient)
 {
     $S = new SupportGUI();
     $data = $S->getEMailData();
     $mailfrom = $data["fromAddress"];
     $mailto = $data["recipients"][$recipient][1];
     $mimeMail2 = new PHPMailer(false, substr($mailfrom, stripos($mailfrom, "@") + 1));
     $mimeMail2->CharSet = "UTF-8";
     $mimeMail2->Subject = $subject;
     $mimeMail2->From = $mailfrom;
     $mimeMail2->Sender = $mailfrom;
     $mimeMail2->FromName = $data["fromName"];
     $mimeMail2->Body = wordwrap($body, 80);
     $mimeMail2->AddAddress($mailto);
     $B = new Button("Danke!", "./images/big/thanks.png", "icon");
     $B->style("float:left;margin-right:10px;margin-bottom:20px;");
     $BOK = new Button("OK", "bestaetigung");
     $BOK->onclick(OnEvent::closePopup("Support"));
     $BOK->style("float:right;margin:10px;");
     if ($mimeMail2->Send()) {
         echo "<h1>{$B} Danke für Ihre Unterstützung!</h1><p>Sie erhalten in Kürze eine Antwort per E-Mail.</p>{$BOK}<div style=\"clear:both;\"></div>";
     } else {
         echo "<p style=\"padding:5px;color:red;\">Fehler beim Senden der E-Mail. Bitte überprüfen Sie Ihre Server-Einstellungen im Admin-Bereich.</p><p>Nachfolgend wird Ihre Nachricht angezeigt, falls Sie sie in die Zwischenablage kopieren (Strg + c) und manuell an <b>{$mailto}</b> möchten.</p><pre style=\"color:grey;max-height:300px;font-size:10px;padding:5px;width:590px;overflow:auto;\">" . wordwrap(stripslashes($body), 80) . "</pre>{$BOK}<div style=\"clear:both;\"></div>";
     }
 }
开发者ID:nemiah,项目名称:poolPi,代码行数:25,代码来源:SupportGUI.class.php

示例3: searchNow

 public function searchNow($filename)
 {
     $AC = anyC::get("UPnP", "UPnPDefaultDownloadsServer", "1");
     $S = $AC->getNextEntry();
     echo "<p class=\"prettyTitle\">Abspielen auf</p>";
     if ($S == null) {
         die("<p>Es wurde kein Downloads-Server definiert</p>");
     }
     echo "<div style=\"padding-bottom:10px;\">";
     $result = $S->Search($S->A("UPnPDefaultDownloadsDirectory"), "(dc:title contains \"{$filename}\")", "");
     $xml = new SimpleXMLElement($result["Result"]);
     if (count($xml->item) == 0) {
         die("<p>Die Datei wurde nicht gefunden</p>");
     }
     $item = $xml->item[0];
     $AC = anyC::get("UPnP");
     $AC->addAssocV3("UPnPAVTransport", "=", "1");
     while ($U = $AC->getNextEntry()) {
         $B = new Button($U->A("UPnPName"), "arrow_right", "touch");
         $B->rmePCR("UPnP", $S->getID(), "readSetStart", array("'" . $item->attributes()->id . "'", $U->getID()), "function(){ " . OnEvent::closePopup("mUPnP") . " " . OnEvent::popup("Steuerung", "UPnP", $U->getID(), "controls") . " }");
         echo $B;
     }
     #echo "<pre>";
     #print_r($xml);
     #echo "</pre>";
     #$L = new HTMLList();
     #foreach($xml->item AS $item){#".OnEvent::popup("", "UPnP", $this->getID(), "readSetStart", array("'".$item->attributes()->id."'"))."
     #	$L->addItem("<a href=\"#\" onclick=\"return false;\">".$item->children("http://purl.org/dc/elements/1.1/")."</a>");
     #}
     #echo $L;
     #echo $filename;
     echo "<div style=\"clear:both;\"></div></div>";
 }
开发者ID:nemiah,项目名称:fheME,代码行数:33,代码来源:mUPnPGUI.class.php

示例4: check

 public function check($touch = false)
 {
     $mbox = $this->connection();
     #echo "<h1>Nachrichten in INBOX</h1><div style=\"overflow:auto;max-height:400px;\"><pre>";
     $MC = imap_check($mbox);
     $T = new HTMLTable(1, $touch ? "Mails" : "");
     $T->setTableStyle("font-size:11px;");
     $T->useForSelection();
     $start = $MC->Nmsgs - 10;
     if ($start < 1) {
         $start = 1;
     }
     $result = imap_fetch_overview($mbox, "{$start}:{$MC->Nmsgs}", 0);
     $result = array_reverse($result);
     foreach ($result as $overview) {
         #print_r($overview);
         $T->addRow(array("\n\t\t\t\t<small style=\"color:grey;float:right;\">" . Util::CLDateParser($overview->udate) . "</small>\n\t\t\t\t" . str_replace("\"", "", $this->decodeBlubb($overview->from)) . "<br />\n\t\t\t\t<small style=\"color:grey;\">" . substr($this->decodeBlubb($overview->subject), 0, 50) . "</small>"));
         $T->addCellEvent(1, "click", "\$j('#MailFrame').attr('src', './interface/rme.php?class=MailCheck&constructor=" . $this->getID() . "&method=showMailBody&parameters=\\'{$overview->uid}\\'');");
     }
     imap_close($mbox);
     #echo "</pre></div>";
     $BC = "";
     if ($touch) {
         $BC = new Button("Fenster\nschließen", "stop");
         $BC->style("float:right;margin:10px;");
         $BC->onclick(OnEvent::closePopup("MailCheck"));
     }
     echo "<div style=\"float:right;width:300px;\">";
     echo $BC;
     echo "<p>{$MC->Nmsgs} Nachricht" . ($MC->Nmsgs == 1 ? "" : "en") . "</p><div style=\"clear:both;\"></div>";
     echo $T;
     echo "</div>";
     echo "\n\t\t\t<div style=\"border-right-style:solid;border-right-width:1px;width:699px;\" class=\"borderColor1\">\n\t\t\t\t<iframe id=\"MailFrame\" style=\"border:0px;width:699px;height:520px;\" src=\"./fheME/MailCheck/Home/index.html\"></iframe>\n\t\t\t</div>";
     echo "<div style=\"clear:both;\"></div>";
 }
开发者ID:nemiah,项目名称:fheME,代码行数:35,代码来源:MailCheckGUI.class.php

示例5: showMessageTimeout

 function showMessageTimeout($timeout)
 {
     echo $this->messageParser();
     if ($timeout > 0) {
         echo OnEvent::script("window.setTimeout(function(){" . OnEvent::closePopup("Nuntius") . "}, {$timeout} * 1000);");
     }
 }
开发者ID:nemiah,项目名称:fheME,代码行数:7,代码来源:NuntiusGUI.class.php

示例6: getPopupEinstellungen

 public function getPopupEinstellungen()
 {
     $F = new HTMLForm("allgemeineWerte", array("OWMApiKey"));
     $F->getTable()->setColWidth(1, 120);
     $F->setValue("OWMApiKey", mUserdata::getGlobalSettingValue("OWMApiKey", ""));
     $F->setSaveRMEPCR("Speichern", "", "mOpenWeatherMap", "-1", "saveEinstellungen", OnEvent::closePopup("mOpenWeatherMap"));
     echo $F;
 }
开发者ID:nemiah,项目名称:fheME,代码行数:8,代码来源:mOpenWeatherMapGUI.class.php

示例7: openInPopup

 public function openInPopup($className, $classID, $fieldName)
 {
     $C = new $className($classID);
     $ITA = new HTMLInput("nicEditor", "textarea");
     $ITA->id("nicEditor");
     $ITA->style("width:998px;height:300px;");
     echo $ITA;
     echo OnEvent::script("\n\$j('#nicEditor').val('" . addslashes($C->A($fieldName)) . "'.makeHTML());\n\nsetTimeout(function(){\n\tnew nicEditor({\n\t\ticonsPath : './libraries/nicEdit/nicEditorIconsTiny.gif',\n\t\tbuttonList : ['save','bold','italic','underline','hr'],\n\t\tmaxHeight : 400,\n\n\t\tonSave : function(content, id, instance) {\n\t\t\tif(content.substr(0, 3) != '<p ' && content.substr(0, 3) != '<p>')\n\t\t\t\tcontent = '<p>'+content+'</p>';\n\t\t\t\n\t\t\t" . OnEvent::rme($C, "saveMultiEditField", array("'{$fieldName}'", "content.replace(/<br>/g, '<br />')")) . "\n\n\t\t\t" . OnEvent::closePopup("nicEdit") . "\n\t\t}\n\t}).panelInstance('nicEditor');}, 100);");
 }
开发者ID:nemiah,项目名称:trinityDB,代码行数:9,代码来源:nicEditGUI.class.php

示例8: addSettingPopup

 public function addSettingPopup()
 {
     $T = new HTMLTable(2);
     $T->setColWidth(1, 20);
     $T->useForSelection(false);
     $S = new System(1);
     $B = new Button("Eintrag erstellen", "./images/i2/cart.png", "icon");
     foreach ($S->types as $k => $v) {
         $T->addRow(array($B, $v->name));
         $T->addRowEvent("click", OnEvent::rme($this, "addSettingNew", array("'{$k}'"), "function(t){ " . OnEvent::closePopup("mSystem") . OnEvent::reload("Right") . " contentManager.loadFrame('contentLeft', 'System', t.responseText); }"));
     }
     echo $T;
 }
开发者ID:nemiah,项目名称:poolPi,代码行数:13,代码来源:mSystemGUI.class.php

示例9: calc

 function calc($land, $kontonummer, $bankleitzahl, $ibanField, $bicField)
 {
     if ($kontonummer == "" or $bankleitzahl == "") {
         Red::alertD("Bitte tragen Sie Bankleitzahl und Kontonummer ein");
     }
     $url = "http://www.iban.de/iban-berechnen.html";
     $ch = curl_init();
     curl_setopt($ch, CURLOPT_HTTPHEADER, array('User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0', 'Referer: http://www.iban.de/iban-berechnen.html', 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8', 'X-Requested-With: XMLHttpRequest'));
     curl_setopt($ch, CURLOPT_URL, $url);
     curl_setopt($ch, CURLOPT_POST, 1);
     curl_setopt($ch, CURLOPT_POSTFIELDS, "ibanrechnerCountry={$land}&ibanrechnerBlz={$bankleitzahl}&ibanrechnerKonto={$kontonummer}&ibanToolkit=ibanrechner");
     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
     $result = curl_exec($ch);
     curl_close($ch);
     $I = new IBAN(trim(str_replace("Die IBAN lautet: ", "", strip_tags($result))));
     $iban = $I->MachineFormat();
     $url = "https://www.s-bausparkasse.at/portal/if_ajax.asp";
     $ch = curl_init();
     curl_setopt($ch, CURLOPT_URL, $url);
     curl_setopt($ch, CURLOPT_POST, 1);
     curl_setopt($ch, CURLOPT_POSTFIELDS, "mode=calc.ibanbic.listofbic&cuid=&alt_iban=&iban={$iban}&rechnername=IBAN%2FBIC-Rechner&currentpageid=87&berechnungsdaten=&autocalc=&getresult=&country={$land}&bank={$bankleitzahl}&account=" . str_pad($kontonummer, 10, "0", STR_PAD_LEFT));
     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
     $result = curl_exec($ch);
     curl_close($ch);
     $ex = explode("&&&", $result);
     $ex[0] = str_replace("listofbic==", "", strip_tags(trim($ex[0])));
     $ex[1] = str_replace("iban==", "", trim($ex[1]));
     $T = new HTMLTable(3, "Gefundene Ergebnisse");
     $T->weight("light");
     $T->useForSelection(false);
     $T->setColWidth(1, 20);
     $T->addHeaderRow(array("", "BIC", "IBAN"));
     foreach (explode("\n", $ex[0]) as $bic) {
         $B = new Button("Diese Kombination verwenden", "arrow_right", "iconic");
         $T->addRow(array($B, trim($bic), $ex[1]));
         $T->addRowEvent("click", "\$j('[name={$ibanField}]').val('{$ex['1']}'); \$j('[name={$bicField}]').val('" . trim($bic) . "'); " . OnEvent::closePopup("IBANCalc"));
     }
     echo $T;
     #echo "<pre>";
     #echo htmlentities(print_r($ex, true));
     #echo($result);
     #echo "</pre>";
 }
开发者ID:nemiah,项目名称:trinityDB,代码行数:43,代码来源:IBANCalcGUI.class.php

示例10: showDetailsPopup

 public function showDetailsPopup()
 {
     $BD = new Button("Gericht löschen", "trash", "icon");
     $BD->style("float:right;margin-right:10px;");
     $BD->onclick("deleteClass('Gericht','" . $this->getID() . "', function() { " . OnEvent::closePopup("Gericht") . " fheOverview.loadContent('mGerichtGUI::getOverviewContent'); },'Eintrag wirklich löschen?');");
     $BC = new Button("Popup schließen", "stop", "icon");
     $BC->style("float:right;margin-right:10px;");
     $BC->onclick(OnEvent::closePopup("Gericht"));
     $BE = new Button("Gericht bearbeiten", "edit", "icon");
     $BE->style("float:right;margin-right:10px;");
     $BE->editInPopup("Gericht", $this->getID(), "Gericht bearbeiten", "GerichtGUI;mode:popup");
     $html = "<h1>{$BC}{$BD}{$BE}" . $this->A("GerichtName") . "</h1><p>";
     if ($this->A("GerichtRezeptBuch") != "") {
         $html .= "Buch: " . $this->A("GerichtRezeptBuch") . "<br />";
         $html .= "Seite: " . $this->A("GerichtRezeptBuchSeite") . "<br />";
     }
     $html .= nl2br($this->A("GerichtRezept"));
     $html .= "</p>";
     echo $html;
 }
开发者ID:nemiah,项目名称:fheME,代码行数:20,代码来源:GerichtGUI.class.php

示例11: popupDesktop

 public function popupDesktop($DeviceID)
 {
     $O = anyC::getFirst("fheOverview", "fheOverviewDeviceID", $DeviceID);
     $d = json_decode($O->A("fheOverviewDesktop"));
     $BD = new Button("Fertig", "bestaetigung");
     $BD->onclick("fheOverview.draggableStop(); " . OnEvent::closePopup("mfheOverview"));
     $BD->style("float:right;margin:10px;");
     echo $BD . "<div style=\"clear:both;\"></div>";
     $T = new HTMLTable(2, "Plugins");
     $T->useForSelection();
     $T->weight("light");
     while ($callback = Registry::callNext("Overview")) {
         $c = $callback->className();
         $B = new Button("Plugin hinzufügen", "arrow_left", "iconic");
         $T->addRow(array($B, $callback->name()));
         $T->addRowEvent("click", OnEvent::rme("mfheOverview", "pluginLoad", array($DeviceID, "'" . $callback->className() . "'"), "function(t){  \$j('#addPlugin{$c}').hide(); \$j('#OverviewDesktop').append(t.responseText); }"));
         $T->setRowID("addPlugin{$c}");
         if (isset($d->{$c})) {
             $T->addRowStyle("display:none;");
         }
     }
     Registry::reset("Overview");
     echo $T;
     echo OnEvent::script("fheOverview.draggableStart({$DeviceID});");
     $T = new HTMLTable(1, "Hintergrundbild");
     $T->weight("light");
     $ID = new Button("Bild löschen", "trash_stroke", "iconicL");
     $ID->style("float:right;");
     $ID->rmePCR("mfheOverview", "-1", "backgroundDelete", $DeviceID, "function(t){\$j('#OverviewDesktop').append(t.responseText); }");
     $I = new HTMLInput("upload", "file", null, array("multiple" => false));
     $I->onchange(OnEvent::rme($this, "backgroudUpload", array($DeviceID, "fileName"), "function(t){\$j('#OverviewDesktop').append(t.responseText); }"));
     $T->addRow($ID . "<div style=\"margin-right:30px;\">" . $I . "</div>");
     echo $T;
 }
开发者ID:nemiah,项目名称:fheME,代码行数:34,代码来源:mfheOverviewGUI.class.php

示例12: showCurrentList

 public function showCurrentList()
 {
     $BM = new Button("Handy-Version\nanzeigen", "./fheME/Einkaufszettel/mobile.png");
     $BM->style("float:right;margin:10px;");
     $BM->onclick("window.open('" . str_replace("/interface/rme.php", "/ubiquitous/CustomerPage/?CC=Shopping&key=" . substr(Util::eK(), 0, 5), $_SERVER["SCRIPT_NAME"]) . "');");
     #$BH = new Button("Hinzufügen", "bestaetigung", "icon");
     #$BH->style("margin-left:10px;margin-top:10px;float:left;margin-top:-28px;");
     #$BH->onclick("if(\$j('input[name=EinkaufslisteNewEntry]').val() != 'Neuer Eintrag') ".OnEvent::rme($this, "addItem", array("\$j('input[name=EinkaufslisteNewEntry]').val()"), OnEvent::reloadPopup("mEinkaufszettel")));
     $I = new HTMLInput("EinkaufslisteNewEntry", "textarea", "");
     $I->placeholder("Neuer Eintrag");
     $I->style("width:390px;padding:5px;margin-left:5px;font-size:20px;float:left;font-family:monospace;max-width:390px;resize:none;height:35px;max-height:35px;");
     #$I->onfocus("if(this.value == 'Neuer Eintrag') { \$j(this).val('').css('color', 'black'); }");
     #$I->onblur("if(this.value == '') { \$j(this).val('Neuer Eintrag').css('color', 'grey'); }");
     #$I->onkeyup("var currentContent = \$j(this).val(); ".OnEvent::rme($this, "getACData", array("this.value"), "function(transport){ var json = jQuery.parseJSON(transport.responseText); if(json.length >= 1) \$j('#EinkaufslisteNewEntryAC').html(json[0].EinkaufszettelName.replace(currentContent, '<span style=\'color:white;\'>'+currentContent+'</span>')); else \$j('#EinkaufslisteNewEntryAC').html(''); }"));
     $I->onEnter(OnEvent::rme($this, "addItem", array("this.value"), "function(transport){ \$j('#currentList').html(transport.responseText); }") . " \$j(this).val('');");
     $B = new Button("Liste schließen", "stop");
     $B->onclick(OnEvent::closePopup("mEinkaufszettel"));
     $B->style("float:right;margin:10px;");
     #<div id=\"EinkaufslisteNewEntryAC\" style=\"width:390px;height:35px;padding:5px;font-size:20px;margin-top:3px;font-family:monospace;color:grey;float:left;\"></div>
     echo "\n\t\t<div style=\"width:600px;display:inline-block;vertical-align:top;\" id=\"reAddList\">\n\t\t\t" . $this->getListReAddTable() . "\n\t\t</div><div style=\"width:400px;display:inline-block;vertical-align:top;\">\n\t\t\t<div id=\"headerList\">\n\t\t\t{$B}{$BM}\n\t\t\t{$I}<div style=\"clear:both;\"></div></div>\n\t\t\t\n\t\t\t<div id=\"currentList\">" . $this->getListTable() . "</div>\n\t\t</div>\n\t\t\t" . OnEvent::script("\$j('#editDetailsContentmEinkaufszettel').css('overflow', ''); setTimeout(function(){ \$j('input[name=EinkaufslisteNewEntry]').focus(); }, 200);");
 }
开发者ID:nemiah,项目名称:fheME,代码行数:21,代码来源:mEinkaufszettelGUI.class.php

示例13: showCurrentList

 public function showCurrentList()
 {
     $B = new Button("Fenster\nschließen", "stop");
     $B->onclick(OnEvent::closePopup("mGericht"));
     $B->style("float:right;margin:10px;");
     echo "\n\t\t<div style=\"width:400px;float:right;\">\n\t\t\t{$B}\n\t\t\t<div style=\"clear:both;\"></div>\n\t\t\t<div id=\"currentList\">" . $this->getListTable() . "</div>\n\t\t</div>\n\t\t<div style=\"width:385px;\" id=\"reAddList\" style=\"overflow-y:auto;overflow-x:hidden;\">\n\t\t\t" . $this->getListReAddTable() . "\n\t\t</div>\n\t\t<div style=\"clear:both;\"></div>\n\t\t\t";
 }
开发者ID:nemiah,项目名称:fheME,代码行数:7,代码来源:mGerichtGUI.class.php

示例14: getCalendarDetails

 public static function getCalendarDetails($className, $classID, $T = null)
 {
     $K = new Kalender();
     if ($T == null) {
         $T = new Todo($classID);
     }
     $name = "";
     if ($T->A("TodoClass") == "Projekt" or $T->A("TodoClass") == "GRLBM") {
         $O = $T->getOwnerObject();
         $name = $O->getCalendarTitle();
     } else {
         $name = $T->A("TodoName");
     }
     $day = $T->A("TodoTillDay");
     if ($T->A("TodoFromDay") != "0") {
         $day = $T->A("TodoFromDay");
     }
     $time = $T->A("TodoTillTime");
     if ($T->A("TodoFromTime") != "0") {
         $time = $T->A("TodoFromTime");
     }
     $KE = new KalenderEvent($className, $classID, $K->formatDay($day), $K->formatTime($time), $name);
     #echo $T->A("TodoOrt");
     if ($T->A("TodoClass") == "WAdresse") {
         $O = $T->getOwnerObject();
         $KE->value("Kunde", $O->getHTMLFormattedAddress());
     }
     $KE->value("Typ", TodoGUI::types($T->A("TodoType")));
     $KE->value("Ort", $T->A("TodoLocation"));
     #$KE->value("Status", TodoGUI::getStatus($T->A("TodoStatus")));
     $KE->owner($T->A("TodoUserID"));
     if ($T->A("TodoClass") == "WAdresse") {
         $KE->value("Telefon", $O->A("tel"));
         $KE->value("Notiz", nl2br($O->A("bemerkung")));
         $KE->canNotify(true, $T->A("TodoNotified") == "1");
         if ($T->A("TodoType") == "1" and Session::isPluginLoaded("mAkquise")) {
             $B = new Button("Akquise", "./lightCRM/Akquise/callTel.png");
             #$B->doBefore(OnEvent::rme($T, "setStatus", array("'2'"), OnEvent::closePopup("mKalender").OnEvent::reload("Screen"))." %AFTER");
             $B->doBefore(OnEvent::closePopup("mKalender") . "contentManager.emptyFrame('contentScreen'); %AFTER");
             $B->loadFrame("contentLeft", "WAdresse", $T->A("TodoClassID"), 0, "mWAdresseGUI;Akquise:1;from:mKalender");
             #$B->popup("", "Akquise", "mAkquise", "-1", "showTelPopup", array($T->A("TodoClassID")), "", "{width: 950, top:20, hPosition:'center'}");
             $KE->addTopButton($B);
         }
     }
     $KE->allDay($T->A("TodoAllDay") == "1");
     if ($T->A("TodoClass") == "Projekt" and $O->A("ProjektKunde") != "0") {
         $Adresse = new Adresse($O->A("ProjektKunde"));
         $KE->value("Telefon", $Adresse->A("tel"));
     }
     if ($T->A("TodoClass") == "GRLBM") {
         $Auftrag = new Auftrag($O->A("AuftragID"));
         $Adresse = new Adresse($Auftrag->A("AdresseID"));
         $KE->value("Telefon", $Adresse->A("tel"));
     }
     $KE->status($T->A("TodoStatus"));
     $KE->endDay($K->formatDay($T->A("TodoTillDay")));
     $KE->endTime($K->formatTime($T->A("TodoTillTime")));
     $KE->icon(TodoGUI::typesImage($T->A("TodoType"), true));
     $KE->summary(nl2br($T->A("TodoDescription")));
     if ($T->A("TodoExceptionForID") != "0") {
         $KE->exception($T->A("TodoExceptionStarttime"), $T->A("TodoIsDeleted") == "1", $T->A("TodoExceptionForID"));
     }
     if ($T->A("TodoRemind") != "-1") {
         $KE->remind($T->A("TodoRemind") / 60, $T->A("TodoReminded"));
     }
     $editMethod = "editInPopup";
     if ($T->A("TodoOrganizer") != "") {
         $editMethod = null;
         $KE->organizer($T->A("TodoOrganizer"));
     }
     if (!$T->A("TodoDoneTime")) {
         $KE->editable($editMethod, "deleteFromCalendar");
     }
     if ($T->A("TodoOrganizer") == "" and !$T->A("TodoDoneTime")) {
         $KE->repeatable("editRepeatable");
     }
     $KE->location($T->A("TodoLocation"));
     $KE->repeat($T->A("TodoRepeat") != "", $T->A("TodoRepeat"), $T->A("TodoRepeatWeekOfMonth") * 1, $T->A("TodoRepeatDayOfWeek"), $T->A("TodoRepeatInterval"), $T->A("TodoRepeatUntil"));
     $KE->UID("TodoID" . $T->getID() . "@" . substr(Util::eK(), 0, 20));
     $KE->closeable($T->A("TodoDoneTime"), $T->A("TodoReport"));
     if (!$T->A("TodoDoneTime")) {
         $KE->canInvite();
     }
     return $KE;
 }
开发者ID:nemiah,项目名称:fheME,代码行数:85,代码来源:mTodoGUI.class.php

示例15: openInPopup

 public function openInPopup($className, $classID, $fieldName)
 {
     $C = new $className($classID);
     $tinyMCEID = "tinyMCEEditor" . rand(100, 9000000);
     $ITA = new HTMLInput("tinyMCEEditor", "textarea", $C->A($fieldName));
     $ITA->id($tinyMCEID);
     $ITA->style("width:1000px;height:300px;");
     echo "<div style=\"width:1000px;\">" . $ITA . "</div>";
     $buttons = "save | undo redo | pastetext | styleselect fontsizeselect fontselect | bold italic underline forecolor | hr code fullscreen";
     echo OnEvent::script("\n\t\t\t\$j('#{$tinyMCEID}').css('height', contentManager.maxHeight());\nsetTimeout(function(){\n\t" . $this->editorDokument($tinyMCEID, "function(content){" . OnEvent::rme($C, "saveMultiEditField", array("'{$fieldName}'", "content.getContent()")) . "" . OnEvent::closePopup("tinyMCE") . "}", $buttons) . "\n\t\t\t\n\t\t}, 100);");
 }
开发者ID:nemiah,项目名称:poolPi,代码行数:11,代码来源:tinyMCEGUI.class.php


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