| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- require_once("util.php");
- require_once("NTK/NTK.php");
- require_once("DataBase/Product.php");
- ?>
- <html>
- <head>
- <title> Index </title>
-
- <?php
- echo getHead();
- $search = var_get("search", "");
- if(strlen($search) >= 3)
- {
- $product = new Product();
- $main_box = new NTKVBox("main_box", 0, 0, False);
- $list_view = new NTKListView("list_view", array('Produktnummer','Name','Beschreibung'), "parent.frames['main'].document.".var_get("form", "").".".var_get("entry", "").".value = '%0%';parent.frames['main'].document.".var_get("form", "").".".var_get("next", "").".focus();");
- $list_view->addLines($product->get('', array('product_id', 'name', 'details'), " product_id LIKE '%$search%' OR name LIKE'%$search%' OR details LIKE '%$search%'"));
- $main_box->add($list_view, -1, -1, "background-color: #dfe7f3; vertical-align: top;");
- echo $main_box->getHtml();
- }
- ?>
- </body>
- </html>
|