$true = false;
}
if ($true) {
    $year = $_POST['year'];
    $class = $_POST['class'];
    $students = TeacherManagement::getStudentsFromClass($year, $class);
    //var_dump($students);
    if ($students[0] == 'none') {
        echo 'Ebben az osztályban nincs diák!';
    } else {
        echo '<table class="table table-striped table-bordered">';
        echo '<thead>';
        echo '<tr style="text-align: center;">';
        echo '<td><strong>Diák neve</strong></td>';
        echo '<td><strong>Hiányzott órák száma</strong></td>';
        echo '<td><strong>Plusz egy hiányzás</strong></td>';
        echo '<td><strong>Minusz egy hiányzás</strong></td>';
        echo '</tr>';
        echo '</thead>';
        for ($i = 0; $i < count($students); $i++) {
            $s = new StudentManagement($students[$i]['id']);
            echo '<tr>';
            echo '<td>' . $s->getName() . '</td>';
            echo '<td style="text-align: center;">' . $s->getMisses() . ' óra </td>';
            echo '<td style="text-align: center; cursor: pointer;" onclick="addMiss(' . $s->getId() . ',1)"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></td>';
            echo '<td style="text-align: center; cursor: pointer;" onclick="addMiss(' . $s->getId() . ',-1)"><span class="glyphicon glyphicon-minus" aria-hidden="true"></span></td>';
            echo '</tr>';
        }
        echo '</table>';
    }
}