$group = new Group();
$priceset = new Priceset();
$category = new Category();
$product = new Product();
$price = new Price();
$tax = new Tax();
$assistant = new Assistant();
$bill = new Bill();
echo getHead();
$toolbar_box = new NTKVBox("toolbar_box", 5, 0, True);
$product_id = var_post("product_id", "");
$date_from = var_post("date_from", "");
$date_to = var_post("date_to", "");
if ($product_id != "" && $date_from != "" && $date_to != "") {
    $product_amount = $product->getAmountByDate($product_id, $date_from, $date_to, 1);
    $bill_data = $product->getBillsByDate($product_id, $date_from, $date_to, 1);
    $customer_data = $product->getCustomersByDate($product_id, $date_from, $date_to, 1);
    $result_box = new NTKTable("result_box", 4, 2, False);
    $result_box->setStyle("background-color: #F8FF77;");
    $result_box->add(new NTKLabel("", "Produktnummer:"), 0, 0);
    $result_box->add(new NTKLabel("", "<b>" . $product_id . "</b>"), 0, 1);
    $result_box->add(new NTKLabel("", "Zeitraum:"), 1, 0);
    $result_box->add(new NTKLabel("", "von <b>" . $date_from . "</b> bis <b>" . $date_to . "</b>"), 1, 1);
    $result_box->add(new NTKLabel("", "Menge:"), 1, 0);
    $result_box->add(new NTKLabel("", "<b>" . round($product_amount, 2) . "</b>"), 1, 1);
    $result_box->add(new NTKLabel("", "In Rechnungen (Menge):"), 2, 0);
    $bills = "";
    for ($i = 0; $i < count($bill_data); $i++) {
        $bills = $bills . " " . $bill_data[$i][0] . " (";
        $bills = $bills . " " . $bill_data[$i][1] . ") ; ";
    }