Example #1
0
</html>
<?php 
require './roots.php';
require $root_path . 'include/inc_environment_global.php';
$lang_tables[] = 'date_time.php';
$lang_tables[] = 'reporting.php';
require $root_path . 'include/inc_front_chain_lang.php';
require $root_path . 'language/en/lang_en_reporting.php';
require $root_path . 'language/en/lang_en_date_time.php';
require $root_path . 'include/inc_date_format_functions.php';
require_once $root_path . 'include/care_api_classes/class_tz_insurance.php';
require_once $root_path . 'include/care_api_classes/class_ward.php';
$ward_obj = new Ward();
$items = 'nr,name';
$TP_SELECT_BLOCK_IN = '';
$ward_info = $ward_obj->getAllWardsItemsObject($items);
$TP_SELECT_BLOCK_IN .= '<select name="current_ward_nr" size="1"><option value="all_ipd">all</option>';
if (!empty($ward_info) && $ward_info->RecordCount()) {
    while ($station = $ward_info->FetchRow()) {
        $TP_SELECT_BLOCK_IN .= '
								<option value="' . $station['nr'] . '" ';
        if (isset($current_ward_nr) && $current_ward_nr == $station['nr']) {
            $TP_SELECT_BLOCK .= 'selected';
        }
        $TP_SELECT_BLOCK_IN .= '>' . $station['name'] . '</option>';
    }
}
$TP_SELECT_BLOCK_IN .= '</select>';
require_once $root_path . 'include/care_api_classes/class_department.php';
$dept_obj = new Department();
$medical_depts = $dept_obj->getAllMedical();