header("location:nursing-station-info.php" . URL_REDIRECT_APPEND);
            exit;
        }
    default:
        if ($wards =& $ward_obj->getAllActiveWards()) {
            # Count wards
            $rows = $wards->RecordCount();
            if ($rows == 1) {
                # If only one ward, fetch the ward
                $ward = $wards->FetchRow();
                # globalize ward values
                extract($ward);
                # Get ward�s active rooms info
                $rooms =& $ward_obj->getAllActiveRoomsInfo($ward['nr']);
            } else {
                $rooms = $ward_obj->countCreatedRooms();
            }
        } else {
            //echo $ward_obj->getLastQuery()."<br>$LDDbNoRead";
        }
        $breakfile = 'nursing-station-manage.php?sid=' . $sid . '&lang=' . $lang;
}
# End of switch($mode)
# Start the smarty templating
/**
 * LOAD Smarty
 */
# Note: it is advisable to load this after the inc_front_chain_lang.php so
# that the smarty script can use the user configured template theme
require_once $root_path . 'gui/smarty_template/smarty_care.class.php';
$smarty = new smarty_care('nursing');