function getHtml() { $html = ""; $html .= "<div width=\"100%\" height=\"100%\">\n"; $html .= "<form name=\"priceset_form_" . $this->priceset_id . "\" action=\"configuration.php\" method=\"POST\">\n"; $html .= "<input type=\"hidden\" name=\"page\" value=\"priceset\">\n"; $html .= "<input type=\"hidden\" name=\"priceset_id\" value=\"" . $this->priceset_id . "\">\n"; $html .= "<table width=\"100%\" height=\"100%\">\n"; $html .= "<tr>\n"; $html .= "<td>\n"; $label = new NTKLabel("priceset_name_label", "Bezeichnung"); $html .= $label->getHtml(); $html .= "</td>\n"; $html .= "<td>\n"; $entry = new NTKEntry("priceset_name", $this->name); $html .= $entry->getHtml(); $html .= "</td>\n"; $html .= "<td>\n"; $label = new NTKLabel("priceset_netto_label", "Netto"); $html .= $label->getHtml(); $html .= "</td>\n"; $html .= "<td>\n"; $entry = new NTKCheckbox("priceset_netto", 1, $this->netto); $html .= $entry->getHtml(); $html .= "</td>\n"; if ($this->new) { $html .= "<td colspan=\"2\">\n"; $button = new NTKButton("button_delete", "hinzufügen", "document.forms['priceset_form_" . $this->priceset_id . "'].submit();"); $html .= $button->getHtml(); $html .= "</td>\n"; $html .= "<input type=\"hidden\" name=\"action\" value=\"new\">\n"; } else { $html .= "<td>\n"; $button = new NTKButton("button_edit", "ok", "document.forms['priceset_form_" . $this->priceset_id . "'].submit();"); $html .= $button->getHtml(); $html .= "</td>\n"; $html .= "<input type=\"hidden\" name=\"action\" value=\"edit\">\n"; $html .= "<td>\n"; $button = new NTKButton("button_delete", "löschen", "location.href = 'configuration.php?page=priceset&action=delete&priceset_id=" . $this->priceset_id . "';"); $html .= $button->getHtml(); $html .= "</td>\n"; } $html .= "</tr>\n"; $html .= "</table>\n"; $html .= "</form>\n"; $html .= "</div>\n"; return $html; }
function getHtml() { $html .= "<div width=\"100%\" height=\"100%\">\n"; $html .= "<form name=\"bill_details_form_" . $this->bill_product_id . "\" action=\"bill.php\" method=\"POST\">\n"; $html .= "<input type=\"hidden\" name=\"bill_product_id\" value=\"" . $this->bill_product_id . "\">\n"; $html .= "<input type=\"hidden\" name=\"bill_id\" value=\"" . $this->bill_id . "\">\n"; $html .= "<input type=\"hidden\" name=\"product_id\" value=\"-1\">\n"; $html .= "<input type=\"hidden\" name=\"amount\" value=\"0\">\n"; $html .= "<input type=\"hidden\" name=\"action\" value=\"edit\">\n"; $html .= "<table width=\"100%\" height=\"100%\" border=1>\n"; $html .= "<tr>\n"; if (!$this->new) { global $PHP_SELF; $html .= "<td width=\"32\"><a href=\"" . $PHP_SELF . "?action=edit&bill_id=" . $this->bill_id . "&bill_product_id=" . $this->bill_product_id . "&db_action=move_down\"><img src=\"Icons/down.png\" border=\"0\"></a></td>\n"; $html .= "<td width=\"32\"><a href=\"" . $PHP_SELF . "?action=edit&bill_id=" . $this->bill_id . "&bill_product_id=" . $this->bill_product_id . "&db_action=move_up\"><img src=\"Icons/up.png\" border=\"0\"></a></td>\n"; } $html .= "<td align=right>\n"; $label = new NTKLabel("details_label", "Textzeile"); $html .= $label->getHtml(); $html .= "</td>\n"; $html .= "<td width=\"200px\">\n"; $entry = new NTKEntry("details", $this->details, "width: 200px;"); $html .= $entry->getHtml(); $html .= "</td>\n"; if ($this->new) { $html .= "<td colspan=\"2\">\n"; $button = new NTKButton("button_new", "hinzufügen", "document.forms['bill_details_form_" . $this->bill_product_id . "'].submit();"); $html .= $button->getHtml(); $html .= "</td>\n"; $html .= "<input type=\"hidden\" name=\"db_action\" value=\"position_add\">\n"; } else { $html .= "<td>\n"; $button = new NTKButton("button_edit", "ok", "document.forms['bill_details_form_" . $this->bill_product_id . "'].submit();"); $html .= $button->getHtml(); $html .= "</td>\n"; $html .= "<input type=\"hidden\" name=\"db_action\" value=\"position_edit\">\n"; $html .= "<td>\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 .= "</td>\n"; } $html .= "</tr>\n"; $html .= "</table>\n"; $html .= "</form>\n"; $html .= "</div>\n"; return $html; }
function getHtml() { $html .= "<div width=\"100%\" height=\"100%\">\n"; $html .= "<form name=\"bill_product_form_" . $this->bill_product_id . "\" action=\"bill.php\" method=\"POST\">\n"; $html .= "<input type=\"hidden\" name=\"bill_product_id\" value=\"" . $this->bill_product_id . "\">\n"; $html .= "<input type=\"hidden\" name=\"bill_id\" value=\"" . $this->bill_id . "\">\n"; $html .= "<input type=\"hidden\" name=\"product_id\" value=\"" . $this->product_id . "\">\n"; $html .= "<input type=\"hidden\" name=\"action\" value=\"edit\">\n"; $html .= "<table width=\"100%\" height=\"100%\" border=0>\n"; $html .= "<tr>\n"; $html .= "<td align=right width=1>\n"; $label = new NTKLabel("product_label", "Produktnummer"); $html .= $label->getHtml(); $html .= "</td>\n"; $html .= "<td width=1>\n"; $entry = new NTKEntry("product_id", $this->product_id, "width: 100px;"); $html .= $entry->getHtml(); $html .= "</td>\n"; $html .= "<td align=left>\n"; $label = new NTKLabel("product_name", "(" . $this->product_name . ")"); $html .= $label->getHtml(); $html .= "</td>\n"; $html .= "<td align=right width=1>\n"; $label = new NTKLabel("amount_label", "Stückzahl"); $html .= $label->getHtml(); $html .= "</td>\n"; $html .= "<td>\n"; $entry = new NTKEntry("amount", $this->amount, "width: 50px;"); $html .= $entry->getHtml(); $html .= "</td>\n"; $html .= "<td align=right width=1>\n"; $label = new NTKLabel("details_label", "Anmerkung"); $html .= $label->getHtml(); $html .= "</td>\n"; $html .= "<td>\n"; $entry = new NTKEntry("details", $this->details, "width: 100%;"); $html .= $entry->getHtml(); $html .= "</td>\n"; $html .= "<td align=right width=1>\n"; $label = new NTKLabel("rabatt_label", "Rabatt"); $html .= $label->getHtml(); $html .= "</td>\n"; $html .= "<td>\n"; $entry = new NTKEntry("rabatt", $this->rabatt, "width: 50px;"); $html .= $entry->getHtml(); $html .= "</td>\n"; if ($this->new) { $html .= "<td colspan=\"2\">\n"; $button = new NTKButton("button_delete", "hinzufügen", "document.forms['bill_product_form_" . $this->bill_product_id . "'].submit();"); $html .= $button->getHtml(); $html .= "</td>\n"; $html .= "<input type=\"hidden\" name=\"db_action\" value=\"position_add\">\n"; } else { $html .= "<td>\n"; $button = new NTKButton("button_edit", "ok", "document.forms['bill_product_form_" . $this->bill_product_id . "'].submit();"); $html .= $button->getHtml(); $html .= "</td>\n"; $html .= "<td>\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 .= "</td>\n"; $html .= "<input type=\"hidden\" name=\"db_action\" value=\"position_edit\">\n"; } $html .= "</tr>\n"; $html .= "</table>\n"; $html .= "</form>\n"; $html .= "</div>\n"; return $html; }