Horizontal oil-fired and gas-fired hot water boiler