require_once $root_path . 'include/inc_front_chain_lang.php'; if ($ward_nr == '') { $ward_nr = $_POST['nr']; } $thisfile = basename($_SERVER['PHP_SELF']); /* Load the ward object */ require_once $root_path . 'include/care_api_classes/class_ward.php'; $ward_obj = new Ward($ward_nr); $rows = 0; //$db->debug=1; /* Load the date formatter */ include_once $root_path . 'include/inc_date_format_functions.php'; switch ($mode) { case 'show': if ($ward =& $ward_obj->getWardInfo($ward_nr)) { $rooms =& $ward_obj->getAllActiveRoomsInfo(); $roomsTemp =& $rooms; $rows = true; extract($ward); // Get all medical departments /* Load the dept object */ /* if($edit){ include_once($root_path.'include/care_api_classes/class_department.php'); $dept=new Department; $depts=&$dept->getAllMedical(); } */ } else { header('location:nursing-station-info.php' . URL_REDIRECT_APPEND); exit; }