A Florida high school teacher who had sex with a 17-year-old student on campus was sentenced to seven years in prison and 15 years of probation on Thursday.