|
@@ -3,16 +3,16 @@
|
|
|
require_once("util.php");
|
|
require_once("util.php");
|
|
|
|
|
|
|
|
$priceset = new Priceset();
|
|
$priceset = new Priceset();
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if($action == "new")
|
|
if($action == "new")
|
|
|
- $priceset->create(var_post("priceset_id", ""), array(var_post("priceset_name", ""), var_post("priceset_netto", "")));
|
|
|
|
|
|
|
+ $priceset->create(var_post("priceset_name", ""), var_post("priceset_netto", ""));
|
|
|
elseif($action == "edit")
|
|
elseif($action == "edit")
|
|
|
$priceset->update(var_post("priceset_id", ""), array(var_post("priceset_name", ""), var_post("priceset_netto", "")));
|
|
$priceset->update(var_post("priceset_id", ""), array(var_post("priceset_name", ""), var_post("priceset_netto", "")));
|
|
|
elseif($action == "delete")
|
|
elseif($action == "delete")
|
|
|
$priceset->delete(var_get("priceset_id", ""));
|
|
$priceset->delete(var_get("priceset_id", ""));
|
|
|
|
|
|
|
|
$priceset_box = new NTKVBox("priceset_box", 0, 1, False);
|
|
$priceset_box = new NTKVBox("priceset_box", 0, 1, False);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
$label = new NTKLabel("priceset_label", "<h3>Preissätze</h3>");
|
|
$label = new NTKLabel("priceset_label", "<h3>Preissätze</h3>");
|
|
|
$priceset_box->add($label);
|
|
$priceset_box->add($label);
|
|
|
|
|
|
|
@@ -21,12 +21,12 @@ require_once("util.php");
|
|
|
{
|
|
{
|
|
|
$priceset_box->add(new NTKEPriceset($priceset_list[$i][0], $priceset_list[$i][1], $priceset_list[$i][2]));
|
|
$priceset_box->add(new NTKEPriceset($priceset_list[$i][0], $priceset_list[$i][1], $priceset_list[$i][2]));
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
$label = new NTKLabel("priceset_label", "<h4>neuer Preissatz</h4>");
|
|
$label = new NTKLabel("priceset_label", "<h4>neuer Preissatz</h4>");
|
|
|
$priceset_box->add($label);
|
|
$priceset_box->add($label);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
$priceset_box->add(new NTKEPriceset("", "", 1, True), -1);
|
|
$priceset_box->add(new NTKEPriceset("", "", 1, True), -1);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
$main_box->add($priceset_box, -1, -1, "background-color: #dfe7f3; vertical-align: top;");
|
|
$main_box->add($priceset_box, -1, -1, "background-color: #dfe7f3; vertical-align: top;");
|
|
|
|
|
|
|
|
?>
|
|
?>
|