| 1234567891011121314151617181920212223242526272829303132 |
- <?php
- require_once("util.php");
- $tax = new Tax();
- if($action == "new")
- $tax->create(var_post("tax_name", ""), var_post("tax_rate", ""));
- elseif($action == "edit")
- $tax->update(var_post("tax_id", ""), array(var_post("tax_name", ""), var_post("tax_rate", "")));
- elseif($action == "delete")
- $tax->delete(var_get("tax_id", ""));
- $tax_box = new NTKVBox("tax_box", 0, 0, False);
- $label = new NTKLabel("tax_label", "<h3>Steuersätze</h3>");
- $tax_box->add($label);
- $taxlist = $tax->get('');
- for($i = 0; $i < count($taxlist); $i++)
- {
- $tax_box->add(new NTKETax($taxlist[$i][0], $taxlist[$i][1], $taxlist[$i][2]));
- }
- $label = new NTKLabel("tax_label", "<h4>neuer Steuersatz</h4>");
- $tax_box->add($label);
- $tax_box->add(new NTKETax("", "", "", True), -1);
- $main_box->add($tax_box, -1, -1, "background-color: #dfe7f3; vertical-align: top;");
- ?>
|