add($customer_button, 60, 60, $style); if($page == "bill") $style = "background-color: #dfe7f3;"; else $style = ""; $bill_button = new NTKImageButton("bill_button", "Icons/bill.png", "Rechnungen", "location.replace('bill.php');", "Rechnungen"); $toolbar_box->add($bill_button, 60, 60, $style); if($page == "tour") $style = "background-color: #dfe7f3;"; else $style = ""; $tour_button = new NTKImageButton("tour_button", "Icons/tour.png", "Touren", "location.replace('tour.php');", "Touren"); $toolbar_box->add($tour_button, 60, 60, $style); if($page == "product") $style = "background-color: #dfe7f3;"; else $style = ""; $product_button = new NTKImageButton("product_button", "Icons/product.png", "Produkte", "location.replace('product.php');", "Produkte"); $toolbar_box->add($product_button, 60, 60, $style); if($page == "category") $style = "background-color: #dfe7f3;"; else $style = ""; $category_button = new NTKImageButton("category_button", "Icons/category.png", "Kategorien", "location.replace('category.php');", "Kategorien"); $toolbar_box->add($category_button, 60, 60, $style); if($page == "assistant") $style = "background-color: #dfe7f3;"; else $style = ""; $assistant_button = new NTKImageButton("assistant_button", "Icons/assistant.png", "Mitarbeiter", "location.replace('assistant.php');", "Mitarbeiter"); $toolbar_box->add($assistant_button, 60, 60, $style); $toolbar_box->add($spacer); if($page == "stat") $style = "background-color: #dfe7f3;"; else $style = ""; $sync_button = new NTKImageButton("stat_button", "Icons/stat.png", "Auswertungen", "parent.location.replace('stat.php');", "Auswertungen"); $toolbar_box->add($sync_button, 60, 60, $style); if($printfile != "") { $print_button = new NTKImageButton("print_button", "Icons/print.png", "Drucken", "window.open('".$printfile."', '', '');", "aktuelle Seite drucken"); $toolbar_box->add($print_button, 60, 60, "background-color: #dfe7f3;"); } else { // $print_button = new NTKImageButton("print_button", "Icons/print.png", "Drucken", "window.open('print.php', '', '');", "Druckerdialog"); // $toolbar_box->add($print_button, 60, 60); } if($page == "configuration") $style = "background-color: #dfe7f3;"; else $style = ""; $configuration_button = new NTKImageButton("configuration_button", "Icons/configuration.png", "Einstellungen", "location.replace('configuration.php');", "Einstellungen"); $toolbar_box->add($configuration_button, 60, 60, $style); $main_box->add($toolbar_box, True, False); ?>