| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <?php
- $spacer = new NTKSpacer();
- $toolbar_box = new NTKHBox("toolbar_box", 5, 0, False);
- if($page == "customer") $style = "background-color: #dfe7f3;";
- else $style = "";
- $customer_button = new NTKImageButton("customer_button", "Icons/customer.png", "Kunden", "location.replace('customer.php');", "Kunden");
- $toolbar_box->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);
- $toolbar_box->add($spacer);
- if($page == "websync") $style = "background-color: #dfe7f3;";
- else $style = "";
- $configuration_button = new NTKImageButton("websync_button", "Icons/sync.png", "Internet Synchronisation", "location.replace('websync.php');", "Internet Synchronisation");
- $toolbar_box->add($configuration_button, 60, 60, $style);
- $main_box->add($toolbar_box, True, False);
- ?>
|