Exemplo n.º 1
0
        $pagen->setMaxCount($GLOBAL_CONFIG['pagin_patient_search_max_block_rows']);
    }
    $encounter =& $lab_obj->searchPatientWithPendingRadResults($keyword, $pagen->MaxCount(), $pgx, $oitem, $odir);
    //echo $lab_obj->getLastQuery()."<p>";
    # Get the resulting record count
    if ($linecount = $lab_obj->LastRecordCount()) {
        if ($mode != 'paginate') {
            $_SESSION['sess_searchkey'] = $keyword;
        }
        $pagen->setTotalBlockCount($linecount);
        # Count total available data
        if (isset($totalcount) && $totalcount) {
            $pagen->setTotalDataCount($totalcount);
        } else {
            if ($editmode) {
                @$lab_obj->searchEncounterRadiologyInfo($keyword);
            } else {
                @$lab_obj->searchEncounterRadResults($keyword);
            }
            $totalcount = $lab_obj->LastRecordCount();
            $pagen->setTotalDataCount($totalcount);
        }
        $pagen->setSortItem($oitem);
        $pagen->setSortDirection($odir);
    }
}
?>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN" "html.dtd">
<?php 
html_rtl($lang);
?>