Example #1
0
// prepare the category-select box:
$classfication_options = '';
$all_cassifications_array = $product_obj->get_all_categories();
while ($classification_array = $all_cassifications_array->FetchRow()) {
    if ($category == $classification_array[0]) {
        $classfication_options = $classfication_options . "<option selected>" . $classification_array[0] . "</option>\n";
    } else {
        $classfication_options = $classfication_options . "<option>" . $classification_array[0] . "</option>\n";
    }
}
if (!empty($keyword) || !empty($category)) {
    // We have work...
    if (empty($keyword)) {
        $keyword = "*";
    }
    $search_results = $product_obj->get_array_search_results($keyword, $category);
    $number_of_search_results = $search_results->RecordCount();
    $bg_color_change = 1;
    while ($search_element = $search_results->FetchRow()) {
        if ($bg_color_change) {
            $http_buffer .= "<tr bgcolor='#ffffaa' id='hovv'>";
            $bg_color_change = 0;
        } else {
            $http_buffer .= "<tr bgcolor='#ffffdd' id='hovv'>";
            $bg_color_change = 1;
        }
        $item_id = $search_element['item_id'];
        $part_code = $search_element['partcode'];
        $item_plausibility = $search_element['plausibility'];
        $item_description = $product_obj->get_description($item_id);
        $item_number = $product_obj->get_itemnumber($item_id);
Example #2
0
require_once $root_path . 'include/care_api_classes/class_tz_pharmacy.php';
$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>";
}
$product_obj = new Product();
//if ($mode=="search") {
if (!empty($keyword)) {
    if ($keyword == "*") {
        $search_results = $product_obj->get_all_items();
    } else {
        $search_results = $product_obj->get_array_search_results($keyword);
    }
    if ($number_of_search_results = count($rs = $diagnostic_obj->get_array_search_results($keyword))) {
        echo $diagnostic_obj->get_icd10_description_from_array($rs);
    }
}
//}
$debug = TRUE;
$debug ? $db->debug = TRUE : ($db->debug = FALSE);
require "gui/gui_assignments_step1.php";