当前位置: 首页>>代码示例>>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;未经允许,请勿转载。