コード例 #1
0
    public function display()
    {
        parent::display();
        $classOptionList = "";
        foreach ($this->vars['classList'] as $klasse) {
            $classOptionList .= "<option value=\"" . $klasse->getId() . "\">" . $klasse->getName() . "</option>";
        }
        echo <<<EVALUATIONCLASSVIEW
    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
    <script type="text/javascript" src="/js/evaluation-student-comparison.js"></script>
    <h1>Vergleich Studenten</h1>
    <form class="form-inline">
        <div class="form-group">
            <label for="schoolclass">Klasse</label>
            <select class="form-control" name="schoolclass">
              {$classOptionList}
            </select>
        </div>
        <div class="form-group">
            <label class="checkbox"><input type="checkbox" name="toggleAll" value=""\\> Alle selektieren</label>
        </div>
        <div class="form-group" id="studentInputs">
        </div>
    </form>
    <div id="chart_div"></div>

EVALUATIONCLASSVIEW;
    }
コード例 #2
0
    public function display()
    {
        parent::display();
        $classesInput = "";
        foreach ($this->vars['classList'] as $klasse) {
            $classesInput .= "<label class=\"checkbox-inline\"><input type=\"checkbox\" name=\"class\" value=\"" . $klasse->getId() . "\"\\>" . $klasse->getName() . "</label>";
        }
        $subjectsInput = "";
        foreach ($this->vars['subjectList'] as $subject) {
            $subjectsInput .= "<label class=\"checkbox-inline\"><input type=\"checkbox\" name=\"subject\" value=\"" . $subject->getId() . "\"\\>" . $subject->getSubjectName() . "</label>";
        }
        echo <<<EVALUATIONCLASSVIEW
    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
    <script type="text/javascript" src="/js/evaluation-comparison.js"></script>
    <h1>Vergleich</h1>
    <p>Der "Notenschnitt gesamt" ist der Schnitt über alle Noten der Klasse im Fach und nicht der Schnitt der Notenschnitte.</p>
    <form>
        <div class="form-group">
            {$classesInput}
        </div>
        <div class="form-group">
            {$subjectsInput}
        </div>
    </form>
    <div id="chart_div"></div>

EVALUATIONCLASSVIEW;
    }
コード例 #3
0
 protected function index()
 {
     if (preg_match("@/distribution@", $_SERVER['REQUEST_URI'])) {
         $view = new EvaluationScoreDistributionView();
         $view->assign1("classList", $this->mysqlAdapter->getSchoolclasses());
         $view->display();
     } else {
         if (preg_match("@/average@", $_SERVER['REQUEST_URI'])) {
             $view = new EvaluationScoreAverageView();
             $view->assign1("classList", $this->mysqlAdapter->getSchoolclasses());
             $view->display();
         } else {
             if (preg_match("@/comparison@", $_SERVER['REQUEST_URI'])) {
                 $view = new EvaluationScoreComparisonView();
                 $view->assign1("classList", $this->mysqlAdapter->getSchoolclasses());
                 $view->assign1("subjectList", $this->mysqlAdapter->getSchoolSubjects());
                 $view->display();
             } else {
                 if (preg_match("@/studentScores@", $_SERVER['REQUEST_URI'])) {
                     $view = new EvaluationStudentScoreView();
                     $view->assign1("studentList", $this->mysqlAdapter->getStudents());
                     $view->assign1("subjectList", $this->mysqlAdapter->getSchoolSubjects());
                     $view->display();
                 } else {
                     if (preg_match("@/studentComparison@", $_SERVER['REQUEST_URI'])) {
                         $view = new EvaluationStudentComparisonView();
                         $view->assign1("classList", $this->mysqlAdapter->getSchoolclasses());
                         $view->display();
                     } else {
                         $view = new EvaluationView();
                         $view->display();
                     }
                 }
             }
         }
     }
 }
コード例 #4
0
    public function display()
    {
        parent::display();
        $classOptionList = "";
        foreach ($this->vars['classList'] as $klasse) {
            $classOptionList .= "<option value=\"" . $klasse->getId() . "\">" . $klasse->getName() . "</option>";
        }
        echo <<<EVALUATIONCLASSVIEW
    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
    <script type="text/javascript" src="/js/evaluation-grading.js"></script>
    <h1>Notenverteilung</h1>
    <form class="form-inline">
        <div class="form-group">
            <label for="schoolclass">Klasse</label>
            <select class="form-control" name="schoolclass">
              {$classOptionList}
            </select>
        </div>
        <div class="form-group">
            <label for="schoolclass">Runden auf</label>
            <select class="form-control" name="roundFactor">
              <option value="1">1</option>
              <option value="2">0.5</option>
              <option value="4">0.25</option>
              <option value="10">0.1</option>
            </select>
        </div>
    </form>
    <div id="chart_div"></div>
    <h1>Noten</h1>
    <table class="table" id="scoreTable">
    <thead>
        <th>Note</th>
        <th>Student</th>
        <th>Datum</th>
        <th>Fach</th>
    </thead>
    <tbody>
    </tbod>
    </table>

EVALUATIONCLASSVIEW;
    }
コード例 #5
0
    public function display()
    {
        parent::display();
        $subjectsInput = "";
        foreach ($this->vars['subjectList'] as $subject) {
            $subjectsInput .= "<label class=\"checkbox-inline\"><input type=\"checkbox\" name=\"subject\" value=\"" . $subject->getId() . "\"\\>" . $subject->getSubjectName() . "</label>";
        }
        $studentsOptionHtml = "";
        foreach ($this->vars['studentList'] as $student) {
            $studentsOptionHtml .= "<option value=\"{$student->getId()}\">{$student->getLastName()} {$student->getFirstName()}</option>)";
        }
        echo <<<EVALUATIONCLASSVIEW
    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
    <script type="text/javascript" src="/js/evaluation-student-average.js"></script>
    <h1>Noten Student</h1>
    <form>
        <div class="form-group">
            <label class="control-label" for="schoolClass">Schüler</label>
            <select class="form-control" name="studentId" id="studentId">
                {$studentsOptionHtml}
            </select>
        </div>
        <div class="form-group">
            {$subjectsInput}
        </div>
    </form>
    <div id="chart_div"></div>
    <h1>Alle Noten</h1>
    <table class="table" id="scoreTable">
    <thead>
        <th>Note</th>
        <th>Datum</th>
        <th>Fach</th>
    </thead>
    <tbody>
    </tbod>
    </table>

EVALUATIONCLASSVIEW;
    }
コード例 #6
0
    public function display()
    {
        parent::display();
        $classOptionList = "";
        foreach ($this->vars['classList'] as $klasse) {
            $classOptionList .= "<option value=\"" . $klasse->getId() . "\">" . $klasse->getName() . "</option>";
        }
        echo <<<EVALUATIONCLASSVIEW
    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
    <script type="text/javascript" src="/js/evaluation-average.js"></script>
    <h1>Entwicklung Notendurchschnitt</h1>
    <form class="form-inline">
        <div class="form-group">
            <label for="schoolclass">Klasse</label>
            <select class="form-control" name="schoolclass">
              {$classOptionList}
            </select>
        </div>
    </form>
    <div id="chart_div"></div>

EVALUATIONCLASSVIEW;
    }