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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
<div>
<?= $this->render_partial('search/breadcrumb') ?>
</div>
<? if ($studiengangTeilName) : ?>
<? $max_fachsemester = count($fachsemesterData) ? max($fachsemesterData) : 0 ?>
<table class="mvv-modul-details default nohover">
<caption>
<?= htmlReady($studiengangTeilName) ?>
<? if ($studiengang && !empty($stgTeilBez)) : ?>
<h3>
<?= sprintf(_('%s im Studiengang %s'), htmlReady($stgTeilBez->getDisplayName()), htmlReady($studiengang->getDisplayName())) ?>
<? if (Config::get()->ENABLE_STUDYCOURSE_INFO_PAGE) : ?>
<a href="<?= $controller->link_for('search/studiengaenge/info', $studiengang->id)?>" data-dialog>
<?= Icon::create('infopage2', Icon::ROLE_CLICKABLE, ['title' => _('Informationen zum Studiengang')]) ?>
</a>
<? endif ?>
</h3>
<? endif ?>
<? $current_version = $versionen->findOneBy('id', $cur_version_id) ?>
<? if ($current_version) : ?>
<h4><?= $current_version->getDisplayName() ?></h4>
<? else : ?>
<h4><?= htmlReady($versionen->first()->getDisplayName()) ?></h4>
<? endif ?>
</caption>
<thead>
<tr >
<th rowspan="2"><?= _('Name / CP') ?></th>
<th rowspan="2"><?= _('Modul') ?></th>
<th rowspan="2"><?= _('Modulteil') ?></th>
<? if ($max_fachsemester) : ?>
<th colspan="<?= $max_fachsemester ?>" style="text-align: center"><?= _('Semester') ?></th>
<? endif ?>
</tr>
<tr>
<? for ($i = 1; $i <= $max_fachsemester; $i++) : ?>
<th><?= $i ?></th>
<? endfor ?>
</tr>
</thead>
<tbody>
<? foreach ($abschnitteData as $abschnitt_id => $abschnitt): ?>
<? $displayedAbschnittName = false ?>
<? $ueberschrift = (mb_strlen($abschnitt['zwischenUeberschrift'])) ?>
<?// if (!$ueberschrift): ?>
<? if ($ueberschrift): ?>
<tr class="table_header">
<td colspan="<?= $max_fachsemester + 3 ?>"><?= htmlReady($abschnitt['zwischenUeberschrift']) ?></td>
</tr>
<? endif ?>
<? foreach ($abschnitt['module'] as $modul_id => $modul): ?>
<? $displayedModulName = false ?>
<? foreach ($modul['modulTeile'] as $modulTeil_id => $modulTeil): ?>
<? $displayedModulTeilName = false ?>
<tr>
<? if (!$displayedAbschnittName) : ?>
<? $displayedAbschnittName = true ?>
<td rowspan="<?= $abschnitt['rowspan'] ?: 1 ?>">
<?= htmlReady($abschnitt['name']) ?><br/><?= $abschnitt['creditPoints'] ? $abschnitt['creditPoints'] . ' ' . _('CP') : '' ?>
<? if (trim($abschnitt['kommentar'])) : ?>
<a data-dialog title="<?= sprintf(_('%s (Kommentar)'), htmlReady($abschnitt['name'])) ?>" href="<?= $controller->link_for('search/studiengaenge/kommentar', $abschnitt_id) ?>">
<?= Icon::create('item', Icon::ROLE_CLICKABLE, ['title' => _('Zusatzinformationen zum Studiengangabschnitt')]) ?>
</a>
<? endif ?>
</td>
<? endif ?>
<? if (!$displayedModulName) : ?>
<? $displayedModulName = true ?>
<td rowspan="<?= count($modul['modulTeile']) ?>">
<? // Anzeige der alternativen Bezeichnung aus mvv_stgteilabschnitt_modul ?>
<? $abschnitt_modul = StgteilabschnittModul::findOneBySQL('`abschnitt_id` = ? AND `modul_id` = ?', [$abschnitt_id, $modul_id]) ?>
<a data-dialog="size=auto" title="<?= htmlReady($modul['name']) . ' (' . _('Vollständige Modulbeschreibung') . ')' ?>" href="<?= $controller->link_for('shared/modul/description/' . $modul_id, ['display_language' => ModuleManagementModel::getLanguage()]) ?>">
<?= Icon::create('log', Icon::ROLE_CLICKABLE, ['title' => _('Vollständige Modulbeschreibung')]) ?>
</a>
<? if($modul['veranstaltungen']):?>
<a data-dialog href="<?= $controller->link_for('shared/modul/overview', $modul_id, $active_sem->getId(), ['display_language' => ModuleManagementModel::getLanguage()]) ?>">
<?= htmlReady($abschnitt_modul->getDisplayName()) ?>
</a>
<? else: ?>
<?= htmlReady($abschnitt_modul->getDisplayName()) ?>
<? endif ?>
</td>
<? endif ?>
<td><?= htmlReady($modulTeil['name']) ?> </td>
<? for ($i = 1; $i <= $max_fachsemester; $i++) :
$fachsemester_typ = null;
if (isset(
$fachsemesterData[$i],
$modulTeil['fachsemester'][$fachsemesterData[$i]],
$GLOBALS['MVV_MODULTEIL_STGABSCHNITT']['STATUS']['values'][$modulTeil['fachsemester'][$fachsemesterData[$i]]]
)) {
$fachsemester_typ = $GLOBALS['MVV_MODULTEIL_STGABSCHNITT']['STATUS']['values'][$modulTeil['fachsemester'][$fachsemesterData[$i]]];
}
?>
<? if (!empty($fachsemester_typ['visible'])) : ?>
<td class="mvv-type-<?= $modulTeil['fachsemester'][$fachsemesterData[$i]] ?? '' ?>">
<span title="<? printf(_('%s Semester (%s)'), $i . ModuleManagementModel::getLocaleOrdinalNumberSuffix($i), $fachsemester_typ['name']) ?>">
<?= $fachsemester_typ['icon'] ?>
</span>
</td>
<? else : ?>
<td class="mvv-type"> </td>
<? endif ?>
<? endfor ?>
</tr>
<? endforeach ?>
<? if (!$displayedModulName): ?>
<tr>
<? if (!$displayedAbschnittName) : ?>
<? $displayedAbschnittName = true ?>
<td rowspan="<?= $abschnitt['rowspan'] ?: 1 ?>">
<?= htmlReady($abschnitt['name']) ?><br/><?= $abschnitt['creditPoints'] ? $abschnitt['creditPoints'] . ' ' . _('CP') : '' ?>
<? if (trim($abschnitt['kommentar'])) : ?>
<a data-dialog title="<?= sprintf(_('%s (Kommentar)'), htmlReady($abschnitt['name'])) ?>" href="<?= $controller->link_for('search/studiengaenge/kommentar', $abschnitt_id) ?>">
<?= Icon::create('item', Icon::ROLE_CLICKABLE, ['title' => _('Zusatzinformationen zum Studiengangabschnitt')]) ?>
</a>
<? endif ?>
</td>
<? endif ?>
<td>
<a data-dialog="size=auto" title="<?= htmlReady($modul['name']) . ' (' . _('Vollständige Modulbeschreibung') . ')' ?>" href="<?= $controller->link_for('shared/modul/description/' . $modul_id, ['display_language' => ModuleManagementModel::getLanguage()]) ?>">
<?= Icon::create('log', Icon::ROLE_CLICKABLE, ['title' => _('Vollständige Modulbeschreibung')]) ?>
</a>
<? if ($modul['veranstaltungen']): ?>
<a data-dialog href="<?= $controller->link_for('shared/modul/overview', $modul_id, $active_sem->getId(), ['display_language' => ModuleManagementModel::getLanguage()]) ?>">
<?= htmlReady($modul['name']) ?>
</a>
<? else: ?>
<?= htmlReady($modul['name']) ?>
<? endif ?>
</td>
<td>–</td>
<? for ($i = 1; $i <= $max_fachsemester; $i++) : ?>
<td class="mvv-type"> </td>
<? endfor ?>
</tr>
<? endif ?>
<? endforeach ?>
<? endforeach ?>
</tbody>
</table>
<? endif ?>
|