School policy announcement. どうどうと ('brazenly, openly, without shame') is a mimetic-adverbial for unashamed, bold behavior. 注意する ('to correct, to admonish, to warn') is the standard verb for a teacher's corrective intervention. ~ことになる ('it will come to pass that X, be decided that X') marks an administrative/consequential outcome. Both the students and the teachers are the subject of punishment — interesting dual accountability.