toolbar.php 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. $spacer = new NTKSpacer();
  3. $toolbar_box = new NTKHBox("toolbar_box", 5, 0, False);
  4. if($page == "customer") $style = "background-color: #dfe7f3;";
  5. else $style = "";
  6. $customer_button = new NTKImageButton("customer_button", "Icons/customer.png", "Kunden", "location.replace('customer.php');", "Kunden");
  7. $toolbar_box->add($customer_button, 60, 60, $style);
  8. if($page == "bill") $style = "background-color: #dfe7f3;";
  9. else $style = "";
  10. $bill_button = new NTKImageButton("bill_button", "Icons/bill.png", "Rechnungen", "location.replace('bill.php');", "Rechnungen");
  11. $toolbar_box->add($bill_button, 60, 60, $style);
  12. if($page == "tour") $style = "background-color: #dfe7f3;";
  13. else $style = "";
  14. $tour_button = new NTKImageButton("tour_button", "Icons/tour.png", "Touren", "location.replace('tour.php');", "Touren");
  15. $toolbar_box->add($tour_button, 60, 60, $style);
  16. if($page == "product") $style = "background-color: #dfe7f3;";
  17. else $style = "";
  18. $product_button = new NTKImageButton("product_button", "Icons/product.png", "Produkte", "location.replace('product.php');", "Produkte");
  19. $toolbar_box->add($product_button, 60, 60, $style);
  20. if($page == "category") $style = "background-color: #dfe7f3;";
  21. else $style = "";
  22. $category_button = new NTKImageButton("category_button", "Icons/category.png", "Kategorien", "location.replace('category.php');", "Kategorien");
  23. $toolbar_box->add($category_button, 60, 60, $style);
  24. if($page == "assistant") $style = "background-color: #dfe7f3;";
  25. else $style = "";
  26. $assistant_button = new NTKImageButton("assistant_button", "Icons/assistant.png", "Mitarbeiter", "location.replace('assistant.php');", "Mitarbeiter");
  27. $toolbar_box->add($assistant_button, 60, 60, $style);
  28. $toolbar_box->add($spacer);
  29. if($page == "stat") $style = "background-color: #dfe7f3;";
  30. else $style = "";
  31. $sync_button = new NTKImageButton("stat_button", "Icons/stat.png", "Auswertungen", "parent.location.replace('stat.php');", "Auswertungen");
  32. $toolbar_box->add($sync_button, 60, 60, $style);
  33. if($printfile != "")
  34. {
  35. $print_button = new NTKImageButton("print_button", "Icons/print.png", "Drucken", "window.open('".$printfile."', '', '');", "aktuelle Seite drucken");
  36. $toolbar_box->add($print_button, 60, 60, "background-color: #dfe7f3;");
  37. }
  38. else
  39. {
  40. // $print_button = new NTKImageButton("print_button", "Icons/print.png", "Drucken", "window.open('print.php', '', '');", "Druckerdialog");
  41. // $toolbar_box->add($print_button, 60, 60);
  42. }
  43. if($page == "sync") $style = "background-color: #dfe7f3;";
  44. else $style = "";
  45. $sync_button = new NTKImageButton("sync_button", "Icons/backup.png", "Datensicherung", "location.replace('backup.php');", "Datensicherung");
  46. $toolbar_box->add($sync_button, 60, 60, $style);
  47. if($page == "configuration") $style = "background-color: #dfe7f3;";
  48. else $style = "";
  49. $configuration_button = new NTKImageButton("configuration_button", "Icons/configuration.png", "Einstellungen", "location.replace('configuration.php');", "Einstellungen");
  50. $toolbar_box->add($configuration_button, 60, 60, $style);
  51. $toolbar_box->add($spacer);
  52. if($page == "websync") $style = "background-color: #dfe7f3;";
  53. else $style = "";
  54. $configuration_button = new NTKImageButton("websync_button", "Icons/sync.png", "Internet Synchronisation", "location.replace('websync.php');", "Internet Synchronisation");
  55. $toolbar_box->add($configuration_button, 60, 60, $style);
  56. $main_box->add($toolbar_box, True, False);
  57. ?>