* See the file "copy_notice.txt" for the licence notice
*/
require_once $root_path . 'include/care_api_classes/class_tz_diagnostics.php';
require_once $root_path . 'include/care_api_classes/class_tz_stock.php';
$debug = FALSE;
$debug ? $db->debug = TRUE : ($db->debug = FALSE);
$diagnostic_obj = new Diagnostics();
if ($debug) {
    echo $mode . "<br>";
}
if ($debug) {
    echo $keyword . "<br>";
}
if ($debug) {
    echo $show . "<br>";
}
if ($debug) {
    echo $search_mode . "<br>";
}
$stock_obj = new Stock_tz();
//if ($mode=="search") {
if (!empty($keyword)) {
    if ($keyword == "*") {
        $search_results = $stock_obj->get_all_items();
    } else {
        $result_filter = 'stock';
        $search_results = $stock_obj->get_array_search_results($keyword, $result_filter);
    }
}
//}
require "gui/gui_purchase_items_step1.php";