aboutsummaryrefslogtreecommitdiff
path: root/app/views/shared/modul/_pruefungen.php
blob: 47174e7253f68a513753fb31f9a994b94a9da8a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
/**
 * @var Modul $modul
 */
?>
<table class="mvv-modul-details default nohover">
    <thead>
        <tr>
            <th><?= _('Prüfung') ?></th>
            <th><?= _('Prüfungsvorleistung') ?></th>
            <th><?= _('Prüfungsform') ?></th>
        </tr>
    </thead>
    <tbody>
        <? foreach ($modul->modulteile as $modulteil): ?>
            <?
            $modulteil_deskriptor = $modulteil->getDeskriptor();
            // Für die Kenntlichmachung der Modulteile in Listen die Nummer des
            // Modulteils und den ausgewählten Namen verwenden.
            // Ist keine Nummer vorhanden, dann durchnummerieren und Standard-
            // Bezeichnung verwenden.
            if (trim($modulteil->nummer)) {
                $num_bezeichnung = $GLOBALS['MVV_MODULTEIL']['NUM_BEZEICHNUNG']['values'][$modulteil->num_bezeichnung]['name'];
                $name_kurz = sprintf('%s %d', $num_bezeichnung, $modulteil->nummer);
            } else {
                $num_bezeichnung_default = $GLOBALS['MVV_MODULTEIL']['NUM_BEZEICHNUNG']['default'];
                $name_kurz = $GLOBALS['MVV_MODULTEIL']['NUM_BEZEICHNUNG']['values'][$num_bezeichnung_default]['name']
                        . ' ' . $nummer_modulteil;
                $nummer_modulteil++;
            }
            ?>
            <tr data-mvv-id="<?= $modulteil->id; ?>" data-mvv-type="modulteil">
                <td style="vertical-align: top; font-weight: bold;" data-mvv-field="mvv_modulteil.num_bezeichnung mvv_modulteil.nummer"><?= htmlReady($name_kurz) ?></td>
                <td data-mvv-field="mvv_modulteil_deskriptor.pruef_vorleistung">
                    <?= formatReady($modulteil_deskriptor->getReplacedValue('pruef_vorleistung')) ?>
                </td>
                <td data-mvv-field="mvv_modulteil_deskriptor.pruef_leistung">
                    <?= formatReady($modulteil_deskriptor->getReplacedValue('pruef_leistung')) ?>
                </td>
            </tr>
        <? endforeach; ?>
        <tr data-mvv-id="<?= $modul->id; ?>" data-mvv-type="modul">
            <? $deskriptor = $modul->getDeskriptor() ?>
            <td style="vertical-align: top; font-weight: bold;">
                <?= _('Gesamtmodul') ?>
            </td>
            <td data-mvv-field="mvv_modul_deskriptor.pruef_vorleistung">
                <?= formatReady($deskriptor->getReplacedValue('pruef_vorleistung')) ?>
            </td>
            <td data-mvv-field="mvv_modul_deskriptor.pruef_leistung">
                <?= formatReady($deskriptor->getReplacedValue('pruef_leistung')) ?>
            </td>
        </tr>
        <tr>
            <td style="vertical-align: top; font-weight: bold;">
                <?= _('Wiederholungsprüfung') ?>
            </td>
            <td colspan="3">
                <?= formatReady($deskriptor->getReplacedValue('pruef_wiederholung')) ?>
            </td>
        </tr>
    </tbody>
</table>