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


PHP Button::editInPopup方法代碼示例

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


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

示例1: 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

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