bill_product_id = $bill_product_id; $this->bill_id = $bill_id; $this->details = $details; $this->new = $new; } function getHtml() { $html .= "
\n"; $html .= "
bill_product_id."\" action=\"bill.php\" method=\"POST\">\n"; $html .= "bill_product_id."\">\n"; $html .= "bill_id."\">\n"; $html .= "\n"; $html .= "\n"; $html .= "\n"; $html .= "\n"; $html .= "\n"; if(!$this->new) { global $PHP_SELF; $html .= "\n"; $html .= "\n"; } $html .= "\n"; $html .= "\n"; if($this->new) { $html .= "\n"; $html .= "\n"; } else { $html .= "\n"; $html .= "\n"; $html .= "\n"; } $html .= "\n"; $html .= "
bill_id."&bill_product_id=".$this->bill_product_id."&db_action=move_down\">bill_id."&bill_product_id=".$this->bill_product_id."&db_action=move_up\">\n"; $label = new NTKLabel("details_label", "Textzeile"); $html .= $label->getHtml(); $html .= "\n"; $entry = new NTKEntry("details", $this->details, "width: 200px;"); $html .= $entry->getHtml(); $html .= "\n"; $button = new NTKButton("button_new", "hinzufügen", "document.forms['bill_details_form_".$this->bill_product_id."'].submit();"); $html .= $button->getHtml(); $html .= "\n"; $button = new NTKButton("button_edit", "ok", "document.forms['bill_details_form_".$this->bill_product_id."'].submit();"); $html .= $button->getHtml(); $html .= "\n"; $button = new NTKButton("button_delete", "löschen", "location.href = 'bill.php?action=edit&bill_id=".$this->bill_id."&db_action=position_delete&bill_product_id=".$this->bill_product_id."';"); $html .= $button->getHtml(); $html .= "
\n"; $html .= "
\n"; $html .= "
\n"; return $html; } } ?>