|
@@ -13,20 +13,20 @@ class NTKEBillPosition
|
|
|
$this->product_name = $product_name;
|
|
$this->product_name = $product_name;
|
|
|
$this->new = $new;
|
|
$this->new = $new;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
function getHtml()
|
|
function getHtml()
|
|
|
{
|
|
{
|
|
|
$html .= "<div width=\"100%\" height=\"100%\">\n";
|
|
$html .= "<div width=\"100%\" height=\"100%\">\n";
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
$html .= "<form name=\"bill_product_form_".$this->bill_product_id."\" action=\"bill.php\" method=\"POST\">\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_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=\"bill_id\" value=\"".$this->bill_id."\">\n";
|
|
|
$html .= "<input type=\"hidden\" name=\"product_id\" value=\"".$this->product_id."\">\n";
|
|
$html .= "<input type=\"hidden\" name=\"product_id\" value=\"".$this->product_id."\">\n";
|
|
|
$html .= "<input type=\"hidden\" name=\"action\" value=\"edit\">\n";
|
|
$html .= "<input type=\"hidden\" name=\"action\" value=\"edit\">\n";
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
$html .= "<table width=\"100%\" height=\"100%\" border=0>\n";
|
|
$html .= "<table width=\"100%\" height=\"100%\" border=0>\n";
|
|
|
$html .= "<tr>\n";
|
|
$html .= "<tr>\n";
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
$html .= "<td align=right width=1>\n";
|
|
$html .= "<td align=right width=1>\n";
|
|
|
$label = new NTKLabel("product_label", "Produktnummer");
|
|
$label = new NTKLabel("product_label", "Produktnummer");
|
|
|
$html .= $label->getHtml();
|
|
$html .= $label->getHtml();
|
|
@@ -63,7 +63,7 @@ class NTKEBillPosition
|
|
|
$entry = new NTKEntry("rabatt", $this->rabatt, "width: 50px;");
|
|
$entry = new NTKEntry("rabatt", $this->rabatt, "width: 50px;");
|
|
|
$html .= $entry->getHtml();
|
|
$html .= $entry->getHtml();
|
|
|
$html .= "</td>\n";
|
|
$html .= "</td>\n";
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if($this->new)
|
|
if($this->new)
|
|
|
{
|
|
{
|
|
|
$html .= "<td colspan=\"2\">\n";
|
|
$html .= "<td colspan=\"2\">\n";
|
|
@@ -81,17 +81,17 @@ class NTKEBillPosition
|
|
|
$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."';");
|
|
$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 .= $button->getHtml();
|
|
|
- $html .= "</td>\n";
|
|
|
|
|
|
|
+ $html .= "</td>\n";
|
|
|
$html .= "<input type=\"hidden\" name=\"db_action\" value=\"position_edit\">\n";
|
|
$html .= "<input type=\"hidden\" name=\"db_action\" value=\"position_edit\">\n";
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
$html .= "</tr>\n";
|
|
$html .= "</tr>\n";
|
|
|
$html .= "</table>\n";
|
|
$html .= "</table>\n";
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
$html .= "</form>\n";
|
|
$html .= "</form>\n";
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
$html .= "</div>\n";
|
|
$html .= "</div>\n";
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
return $html;
|
|
return $html;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|