Beispiel #1
0
if ($true) {
    $s = new StudentManagement($_SESSION['id']);
    if (date('n') == 9 or date('n') == 10 or date('n') == 11 or date('n') == 12) {
        $currentYear = date("Y");
    } else {
        $currentYear = date("Y") - 1;
    }
    require_once "header.php";
    $color = $s->getMisses() > 10 ? "style='background: #e74c3c;'" : "";
    ?>

    <div class="panel panel-default" id="container">
        <div class="panel-body">
            <h3>Online napló</h3>
            <?php 
    echo $s->getStudentInfo();
    ?>
            <div id="makrs">

                <?php 
    $s->getStudentMarks($currentYear);
    ?>

            </div>



            <ul class="list-group avg">
                <li class="list-group-item">Tanulói átlag: <?php 
    echo $s->getMarksAvg($currentYear);
    ?>