aboutsummaryrefslogtreecommitdiff
path: root/app/views/admin/overlapping/planer.php
blob: bf71e73341195513d2cb0c051390857faac7a598 (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
<?php
/**
 * @var Studip\Fullcalendar $fullcalendar
 * @var array $selections
 */
?>
<?= $fullcalendar ?>
<? if (count($selections) > 0) : ?>
    <ul class="map-key-list">
        <? $color_index = 1 ?>
        <li class="map-key">
            <span style="background-color:<?= Config::get()->PERS_TERMIN_KAT[$color_index++]['bgcolor'] ?>">
                &nbsp;
            </span>
            <?= htmlReady($selections[0]->base_version->getDisplayName()) ?>
        </li>
    <? foreach ($selections as $selection) : ?>
        <? if ($selection->base_version->id !== $selection->comp_version->id) : ?>
            <li class="map-key">
                <span style="background-color:<?= Config::get()->PERS_TERMIN_KAT[$color_index++]['bgcolor'] ?>"></span>
                <?= htmlReady($selection->comp_version->getDisplayName()) ?>
            </li>
        <? endif ?>
    <? endforeach ?>
    </ul>
<? endif ?>