aboutsummaryrefslogtreecommitdiff
path: root/app/views/shared/download/mhb.php
blob: 3b5057b5765e149052ee420015d4ce2cf6ec9167 (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
64
65
66
67
68
69
70
71
72
<? if (!empty($Stgteile)): ?>
    <div style="page-break-after:always;">
    <h1><?= $_('Übersicht') ?> <?= $semName ?></h1>
    <br>
    <? foreach ($Stgteile as $abs => $teile) :
        $abs_kat =AbschlussKategorie::getEnriched($abs);?>
        <section class="contentbox" style="page-break-after:always;">
            <header>
                <h2><?= $abs_kat->getDisplayName() ?></h2>
            </header>
            <? foreach ($teile as $id => $content) :
                $stgtv =StgteilVersion::getEnriched($id); ?>
                <section class="contentbox">
                    <header>
                        <h2><?= $stgtv->getDisplayName() ?></h2>
                    </header>
                    <? foreach ($content as $id_teil_abschnitt => $modulinfolist) :
                        $teilabschnitt = StgteilAbschnitt::getEnriched($id_teil_abschnitt); ?>
                        <section class="contentbox"  style="margin-left: 10pt;">
                            <header><b><?= $teilabschnitt->getDisplayName() ?></b></p></header>
                            <? foreach ($teilabschnitt->getChildren() as $modul) : ?>
                            	<? if (empty($module->find($modul->id))): ?>
                                    <? $module[] = $modul; ?>
                                <? endif; ?>
                                <p>
                                    <a href="#modref_<?= $modul->id; ?>" style="margin-left: 10pt;" >
                                        <?= $modul->getDisplayName(); ?>
                                    </a>
                                </p>
                            <? endforeach; ?>
                        </section>
                    <? endforeach; ?>
                </section>
            <? endforeach; ?>
        </section>
    <? endforeach; ?>
</div>
<br>
<? endif; ?>
<? if ($language == 'DE'): ?>
	<h3 style="text-align: center">
        <?= sprintf(_('Modulhandbuch %s'), $StgteilVersion->studiengangteil->getDisplayName())?>
    </h3>
    <h5 style="text-align: right"><?= sprintf(_('Datum %s'), strftime('%x', time()))?></h5>
<? else: ?>
    <h3>Modules for <?= $StgteilVersion->studiengangteil->getDisplayName() ?></h3>
    <h6 style="text-align: right">Date <?= strftime('%x', time())?></h6>
<? endif; ?>
<? foreach($module as $part_id =>  $values) : ?>
    <h1><?= $values['part']->getDisplayName() ?></h1>
    <? foreach($values['modules'] as $mod_id => $modul) : ?>
        <? $modul_desc = ModulDeskriptor::findOneBySQL('modul_id =?', array($modul->id)); ?>
        <h3 id="modref_<?= $modul->id ?>"><?= !empty($modul_desc) ? $modul['code'] . ' - ' . $modul_desc['bezeichnung'] : $modul->getDisplayName() ?></h3>
        <div style="page-break-after:always;">
            <div>
                <?= $archiv->getMVVPluginModulDescription($modul, $language); ?>
            </div>
            <? if (is_array($modulseminare) && in_array($modul->id, array_keys($modulseminare)) ) : ?>
                <br>
                <div><p><b><?= _('dem Modul zugoerdnete Veranstaltungen') ?>:</b></p>
                    <? foreach($modulseminare[$modul->id] as $modulteilName => $modulteil): ?><?= $modulteilName ?>
                        <ul>
                            <? foreach($modulteil as $name => $id): ?>
                                <li><a href="#semref_<?= $id ?>"><?= $name ?></a></li>
                            <? endforeach; ?>
                        </ul>
                    <? endforeach; ?>
                </div>
            <? endif; ?>
        </div>
    <?endforeach; ?>
<? endforeach; ?>