get($bill_id); $edit_action = var_get_post("edit_action", ""); include("Modules/Bill/edit_form.php"); } elseif($action == "search" && var_post("search_entry", "") != "") { $search = var_post("search_entry", ""); $list_view = new NTKListView("list_view", array('ID', 'Rechnungsnummer', 'Kunde','Tour'), "location.href = 'bill.php?action=edit&bill_id=%0%';"); $results = $bill->get('', array('bill_id', 'bill_number', 'customer.prename', 'bill.tour_id'), "customer.prename LIKE '%$search%' OR bill_number LIKE '%$search%' OR bill.customer_id LIKE'%$search%' OR bill.tour_id LIKE '%$search%'"); if(count($results) == 1) $onload = "location.href = 'bill.php?action=edit&bill_id=".$results[0][0]."';"; $list_view->addLines($results); $main_box->add($list_view, -1, -1, "background-color: #dfe7f3; vertical-align: top;"); } else { /* $list_view = new NTKListView("list_view", array('ID', 'Rechnungsnummer','Kunde','Tour'), "location.href = 'bill.php?action=edit&bill_id=%0%';"); $list_view->addLines($bill->get('', array('bill_id', 'bill_number', 'customer.prename', 'bill.tour_id'))); $main_box->add($list_view, -1, -1, "background-color: #dfe7f3; vertical-align: top;");*/ $main_box->add(new NTKSpacer(), -1, -1); } // main content //$main_box->add($spacer, -1, -1, "background-color: #dfe7f3;"); echo getHead(); echo $main_box->getHtml(); ?>