Skip to content
Snippets Groups Projects
Select Git revision
  • c5303ffdf175d3c902f9953ce514d5657a1d0873
  • master default protected
  • 288-php8-warnungen
  • vips-1.9 protected
  • issue-255
  • vips-1.8 protected
  • 1.9.9
  • 1.9.8
  • 1.9.7
  • 1.9.6
  • 1.9.5
  • 1.9.4
  • 1.9.3
  • 1.9.2
  • 1.9.1
  • 1.9
  • 1.8.8
  • 1.8.7
  • 1.8.6
  • 1.8.5
  • 1.8.4
  • 1.8.3
  • 1.8.2
  • 1.8.1
  • 1.8
25 results

assignment_solutions.php

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    assignment_solutions.php 17.02 KiB
    <? setlocale(LC_NUMERIC, $_SESSION['_language'] . '.UTF-8') ?>
    
    <h1>
        <?= sprintf(_vips('Aufgabenblatt &bdquo;%s&ldquo;'), htmlReady($assignment->test->title)) ?>
    </h1>
    
    <? if ($overall_uncorrected_solutions > 0) : ?>
        <p style="font-weight: bold;">
            <a href="<?= $controller->link_for('solutions/edit_solution', ['assignment_id' => $assignment_id, 'exercise_id' => $first_uncorrected_solution['exercise_id'], 'solver_id' => $first_uncorrected_solution['solver_id'], 'view' => $view]) ?>">
                <?= sprintf(n_vips('Es muss noch %d Lösung korrigiert werden.', 'Es müssen noch %d Lösungen korrigiert werden.', $overall_uncorrected_solutions), $overall_uncorrected_solutions) ?>
            </a>
        </p>
    <? endif ?>
    
    <?= _vips('Klicken Sie auf die Schaltfläche &bdquo;Autokorrektur starten&ldquo;, um alle Aufgaben automatisch korrigieren zu lassen.') ?>
    
    <div>
        <?= Studip\LinkButton::create(_vips('Autokorrektur starten'), $controller->url_for('solutions/autocorrect_dialog', compact('assignment_id', 'expand', 'view')), ['data-dialog' => 'size=auto']) ?>
    </div>
    
    <form action="<?= $controller->link_for('solutions/assignment_solutions') ?>">
        <input type="hidden" name="cid" value="<?= $assignment->course_id ?>">
        <input type="hidden" name="assignment_id" value="<?= $assignment_id ?>">
    
        <table class="default dynamic_list">
            <caption>
                <?= _vips('Lösungen der Teilnehmer') ?>
    
                <span class="actions">
                    <label>
                        <?= _vips('Anzeigefilter:') ?>
    
                        <select name="view" onchange="this.form.submit();">
                            <? if ($assignment->type !== 'exam') : ?>
                                <option value="" <?= !$view ? 'selected' : '' ?>>
                                    <?= _vips('Studierende mit abgegebenen Lösungen') ?>
                                </option>
                                <option value="todo" <?= $view == 'todo' ? 'selected' : '' ?>>
                                    <?= _vips('Studierende mit unkorrigierten Lösungen') ?>
                                </option>
                                <option value="all" <?= $view == 'all' ? 'selected' : '' ?>>
                                    <?= _vips('alle Studierende') ?>
                                </option>
                            <? else : ?>
                                <option value="" <?= !$view ? 'selected' : '' ?>>
                                    <?= _vips('beendete Klausuren') ?>
                                </option>
                                <option value="working" <?= $view == 'working' ? 'selected' : '' ?>>
                                    <?= _vips('laufende Klausuren') ?>
                                </option>
                                <option value="pending" <?= $view == 'pending' ? 'selected' : '' ?>>
                                    <?= _vips('noch nicht begonnene Klausuren') ?>
                                </option>
                            <? endif ?>
                        </select>
                    </label>
                </span>
            </caption>
    
            <thead>
                <tr>
                    <th style="width: 20px;">
                        <input type="checkbox" data-proxyfor=".batch_select" data-activates=".batch_action" title="<?= _vips('Alle Teilnehmer auswählen') ?>">
                    </th>
                    <th style="width: 1em;"></th>
                    <th>
                        <a href="#" class="solution-toggle">
                            <?= Icon::create('arr_1right', 'clickable', ['class' => 'arrow_all', 'title' => _vips('Aufgaben aller Teilnehmer anzeigen')]) ?>
                            <?= Icon::create('arr_1down', 'clickable', ['class' => 'arrow_all', 'title' => _vips('Aufgaben aller Teilnehmer verstecken'), 'style' => 'display: none;']) ?>
                            <?= _vips('Teilnehmer') ?>