Пример #1
0
 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;
 }
Пример #2
0
 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>";
 }