get($customer_id); include("Modules/Customer/edit_form.php"); } elseif($action == "search" && $search != "") { $list_view = new NTKListView("list_view", array('Kundennummer','Name','Details'), "location.href = 'customer.php?action=edit&customer_id=%0%';"); $results = $customer->get('', array('customer_id', 'prename', 'postname'), "customer_id LIKE '%$search%' OR prename LIKE'%$search%' OR postname LIKE '%$search%'"); if(count($results) == 1) $onload = "location.href = 'customer.php?action=edit&customer_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('Kundennummer','Vorname','Nachname'), "location.href = 'customer.php?action=edit&customer_id=%0%';"); $list_view->addLines($customer->get('', array('customer_id', 'prename', 'postname'))); $main_box->add($list_view, -1, -1, "background-color: #dfe7f3; vertical-align: top;");*/ $main_box->add(new NTKSpacer(), -1, -1); } echo getHead(); echo $main_box->getHtml(); ?>