The student who violated the regulations of the school has been absent for 2 weeks from the class
That student who violated the school rule had been absent from the class for two weeks.