예제 #1
0
 private function row(poolAnzeige $A)
 {
     $html = "\n\t\t\t<div style=\"height:auto;padding-top:30px;padding-bottom:25px;border-bottom: 1px solid #ddd;\">";
     $I = new HTMLInput("poolAnzeigeName", "text", $A->A("poolAnzeigeName"));
     $I->activateMultiEdit("poolAnzeige", $A->getID());
     $I->style("text-align: right;width:90%;");
     $I->placeholder("Beschriftung");
     $B = new Button("Zeile löschen", "trash_stroke", "iconicL");
     $B->style("margin-top:10px;");
     $B->doBefore("if(confirm('Die Zeile löschen?')) %AFTER");
     $B->rmePCR("poolAnzeige", $A->getID(), "deleteMe", "", OnEvent::reload("Screen"));
     $html .= "\n\t\t\t\t<div style=\"text-align: right;color: #777;font-size: 1.5em;display: inline-block;width: 195px;height: auto;vertical-align: top;margin-top: 7px;margin-right: 21px;\">\n\t\t\t\t\t{$I}{$B}\n\t\t\t\t</div>";
     $close = 0;
     $AC = anyC::get("poolAnzeigeControl", "poolAnzeigeControlpoolAnzeigeID", $A->getID());
     $AC->addOrderV3("poolAnzeigeControlOrder");
     $AC->addOrderV3("poolAnzeigeControlID");
     while ($C = $AC->n()) {
         if ($C->A("poolAnzeigeControlNewLine")) {
             $html .= "<div style=\"margin-top:15px;\">\n\t\t\t\t\t<div style=\"display: inline-block;width: 195px;height: 120px;vertical-align: top;margin-top: 7px;margin-right: 21px;\"></div>";
             $close++;
         }
         $html .= $this->control($C);
     }
     $B = new Button("Element\nhinzufügen", "new");
     $B->style("margin:10px;display:inline-block;vertical-align:top;");
     $B->popup("", "Element hinzufügen", "mpoolAnzeige", "-1", "addElementPopup", array($A->getID()));
     $html .= $B;
     for ($i = 0; $i < $close; $i++) {
         $html .= "</div>";
     }
     $html .= "</div>";
     return $html;
 }
예제 #2
0
 public static function row(poolAnzeige $A)
 {
     $html = "\n\t\t\t\n\t\t\t<div class=\"container\">";
     $html .= "\n\t\t\t\t<div class=\"rowLabel\" style=\"height:120px;\">" . $A->A("poolAnzeigeName") . "</div>";
     $close = 0;
     $AC = anyC::get("poolAnzeigeControl", "poolAnzeigeControlpoolAnzeigeID", $A->getID());
     $AC->addOrderV3("poolAnzeigeControlOrder");
     $AC->addOrderV3("poolAnzeigeControlID");
     while ($C = $AC->n()) {
         if ($C->A("poolAnzeigeControlNewLine")) {
             $html .= "<div style=\"margin-top:1em;\">\n\t\t\t\t\t<div class=\"rowLabel\">&nbsp;</div>";
             $close++;
         }
         $html .= self::control($C);
     }
     for ($i = 0; $i < $close; $i++) {
         $html .= "</div>";
     }
     $html .= "\n\t\t\t</div>";
     return $html;
 }