for ($i = 1; $i <= 3; $i++) {
            $text = '&nbsp;';
            switch ($i) {
                case 1: $text = 'Jahrgangsstufe'; break;
                case 2: $text = 'Schuljahr'; break;