コード例 #1
0
<?php

require_once "../NTK/NTK.php";
$spacer = new NTKSpacer();
$toolbar_box = new NTKHBox("toolbar_box", 5, 0, False);
// $style = "";
$style = "background-color: #dfe7f3;";
$customer_button = new NTKImageButton("button_product_date_count", "Icons/customer.png", "Produktzusammenfassung", "location.replace('stat_product_date_count.php');", "Produktzusammenfassung");
$toolbar_box->add($customer_button, 60, 60, $style);
$bill_button = new NTKImageButton("button_bill_merge", "Icons/bill.png", "Rechnungzusammenfassung", "location.replace('stat_bill_merge.php');", "Rechnungzusammenfassung");
$toolbar_box->add($bill_button, 60, 60, $style);
$tour_button = new NTKImageButton("button_product_list", "Icons/tour.png", "Produktliste", "location.replace('stat_product_list.php');", "Produktliste");
$toolbar_box->add($tour_button, 60, 60, $style);
$toolbar_box->add($spacer);
$nebulon_image = new NTKImage("nebulon_image", "Icons/logo.gif", "");
$toolbar_box->add($nebulon_image, 150, 60);
$main_box->add($toolbar_box, True, False);
コード例 #2
0
<?php

$small_toolbar = new NTKHBox("small_toolbar", 5, 0, False);
$download_button = new NTKButton("download_button", "Neue Rechnungen herunterladen", "location.replace('websync.php?action=download_0');");
//"location.replace('bill.php?action=new');");
$small_toolbar->add($download_button, 500);
$small_toolbar->add($spacer);
$upload_button = new NTKButton("upload_button", "Neue Produkte / Preise online stellen", "ntk_show_splash('bitte warten ...'); location.replace('websync.php?action=upload_0');");
$small_toolbar->add($upload_button, 500);
$main_box->add($small_toolbar, True, False, "background-color: #dfe7f3;");
コード例 #3
0
<?php

$small_toolbar_box = new NTKHBox("small_toolbar_box", 5, 0, False);
$customer_new_button = new NTKButton("customer_new_button", "Neuen Kunden eintragen", "location.replace('customer.php?action=new');");
$small_toolbar_box->add($customer_new_button, 230);
$small_toolbar_box->add($spacer);
$search_toolbar = new NTKHBox("search_toolbar", 2, 0, False);
$customer_search_entry = new NTKEntry("search_entry");
$search_toolbar->add($customer_search_entry, 150);
$customer_search_button = new NTKButton("customer_search_button", "Suchen", "document.forms['search'].submit();");
$search_toolbar->add($customer_search_button, 80);
$search_form = new NTKForm("search", "customer.php", $search_toolbar);
$search_form->addAttribute("action", "search");
$small_toolbar_box->add($search_form, 240);
$main_box->add($small_toolbar_box, True, False, "background-color: #dfe7f3;");
コード例 #4
0
<?php

$small_toolbar = new NTKHBox("small_toolbar", 5, 0, False);
$new_button = new NTKButton("new_button", "Neue Rechnung eintragen", "location.replace('bill.php?action=new');");
$small_toolbar->add($new_button, 230);
$small_toolbar->add($spacer);
$search_toolbar = new NTKHBox("search_toolbar", 2, 0, False);
$search_entry = new NTKEntry("search_entry");
$search_toolbar->add($search_entry, 150);
$search_button = new NTKButton("search_button", "Suchen", "document.forms['search'].submit();");
$search_toolbar->add($search_button, 80);
$search_form = new NTKForm("search", "bill.php", $search_toolbar);
$search_form->addAttribute("action", "search");
$small_toolbar->add($search_form, 240);
$main_box->add($small_toolbar, True, False, "background-color: #dfe7f3;");
コード例 #5
0
include "Modules/Tour/toolbar.php";
// main content
if ($action == "new") {
    include "Modules/Tour/new_form.php";
} elseif ($action == "edit" && $tour_id != "") {
    $data = $tour->get($tour_id);
    include "Modules/Tour/edit_form.php";
} elseif ($action == "search" && var_post("search_entry", "") != "") {
    $search = var_post("search_entry", "");
    $list_view = new NTKListView("list_view", array('Tournummer', 'Bezeichner'), "location.href = 'tour.php?action=edit&tour_id=%0%';");
    $list_view->addLines($tour->get('', array('tour_id', 'name'), "tour_id LIKE '%{$search}%' OR name LIKE'%{$search}%'"));
    $main_box->add($list_view, -1, -1, "background-color: #dfe7f3; vertical-align: top;");
} elseif ($action == "list_tour") {
    $assistant = new Assistant();
    $tour = new Tour();
    $bill_box = new NTKHBox("bill_box", 0, 0);
    $bill_box->add(new NTKLabel("", "<b>Tournummer: " . $tour_id . " - Datum: " . $datum . "</b>"), False, False, "background-color: #dfe7f3;");
    $bill_box->add(new NTKLabel("", "Kundennummer:"), 150);
    $bill_box->add(new NTKEntry("customer_id", ""), 120);
    $bill_box->add(new NTKLabel("", "Mitarbeiter:"), 120);
    $bill_box->add(new NTKComboBox("assistant_id", $assistant->get()), 120);
    $bill_box->add(new NTKLabel("", "Tour:"), 80);
    $bill_box->add(new NTKComboBox("tour_id", $tour->get()), 120);
    $bill_box->add(new NTKButton("bill_button", "Erstelle Rechnung", "document.forms['bill_form'].submit();"), 200);
    $bill_form = new NTKForm("bill_form", "tour.php", $bill_box);
    $bill_form->addAttribute("db_action", "tour_to_bill");
    $bill_form->addAttribute("date", $datum);
    $bill_form->addAttribute("current_tour_id", $tour_id);
    $main_box->add($bill_form, 0, 0, "background-color: #dfe7f3; vertical-align: top;");
    $list_view = new NTKListView("list_view", array('Rechnungsnummer', 'Kunde'), "location.href = 'bill.php?from_page=tour&fp_tour_id={$tour_id}&fp_date=" . $datum . "&action=edit&bill_id=%0%';");
    $list_view->addLines($bill->get('', array('bill_id', 'bill.customer_id'), "bill.tour_id='{$tour_id}' AND date='" . $datum . "'"));
コード例 #6
0
<?php

$small_toolbar = new NTKHBox("small_toolbar", 5, 0, False);
$new_button = new NTKButton("new_button", "Neues Produkt eintragen", "location.replace('product.php?action=new');");
$small_toolbar->add($new_button, 230);
$small_toolbar->add($spacer);
$search_toolbar = new NTKHBox("search_toolbar", 2, 0, False);
$search_label = new NTKLabel("search_label", "Suchen in/nicht in: ");
$search_toolbar->add($search_label, 160);
$search_toggle = new NTKCheckbox("search_toggle", 1);
$search_toolbar->add($search_toggle, 30);
$search_category = new NTKComboBox("search_category", $category->get());
$search_category->setMultiple(True);
$search_toolbar->add($search_category, 150);
$search_entry = new NTKEntry("search_entry");
$search_toolbar->add($search_entry, 150);
$search_button = new NTKButton("search_button", "Suchen", "document.forms['search'].submit();");
$search_toolbar->add($search_button, 80);
$search_form = new NTKForm("search", "product.php", $search_toolbar);
$search_form->addAttribute("action", "search");
$small_toolbar->add($search_form, 600);
$main_box->add($small_toolbar, True, False, "background-color: #dfe7f3;");
コード例 #7
0
<?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");
コード例 #8
0
<?php

$small_toolbar = new NTKHBox("small_toolbar", 5, 0, False);
$group_button = new NTKButton("group_button", "Gruppen", "location.replace('configuration.php?page=group');");
$small_toolbar->add($group_button, 230);
$tax_button = new NTKButton("tax_button", "Steuer", "location.replace('configuration.php?page=tax');");
$small_toolbar->add($tax_button, 230);
$priceset_button = new NTKButton("priceset_button", "Preiss&auml;tze", "location.replace('configuration.php?page=priceset');");
$small_toolbar->add($priceset_button, 230);
$small_toolbar->add($spacer);
$main_box->add($small_toolbar, True, False, "background-color: #dfe7f3;");
コード例 #9
0
<?php

require_once "NTK/NTK.php";
$spacer = new NTKSpacer();
$toolbar_box = new NTKHBox("toolbar_box", 6, 0, False);
$style = "";
// $style = "background-color: #dfe7f3;";
$back_button = new NTKImageButton("button_back", "Icons/back.png", "Zur&uuml;ck", "parent.location.replace('index.php');", "Zur&uuml;ck");
$toolbar_box->add($back_button, 60, 60, $style);
$toolbar_box->add($spacer);
$customer_button = new NTKImageButton("button_product_date_count", "Icons/date_product.png", "Produktzusammenfassung", "parent.frames['main'].location.replace('stat_product_date_count.php');", "Produktzusammenfassung");
$toolbar_box->add($customer_button, 60, 60, $style);
$tour_button = new NTKImageButton("button_product_list", "Icons/product_list.png", "Produktliste", "parent.frames['main'].location.replace('stat_product_list.php');", "Produktliste");
$toolbar_box->add($tour_button, 60, 60, $style);
$bill_button = new NTKImageButton("button_bill_merge", "Icons/bill.png", "Rechnungzusammenfassung", "parent.frames['main'].location.replace('stat_bill_merge.php');", "Rechnungzusammenfassung");
$toolbar_box->add($bill_button, 60, 60, $style);
$customer_list_button = new NTKImageButton("button_customer_list", "Icons/customer.png", "Kundenliste", "parent.frames['main'].location.replace('stat_customer_list.php');", "Kundenliste");
$toolbar_box->add($customer_list_button, 60, 60, $style);
$toolbar_box->add($spacer);
$print_button = new NTKImageButton("print_button", "Icons/print.png", "Drucken", "parent.frames['main'].print();", "Druckerdialog");
$toolbar_box->add($print_button, 60, 60);
echo getHead();
echo $toolbar_box->getHtml();