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
|
<table class="default">
<colgroup>
<col style="width: 15%">
<col style="width: 45%">
<col>
</colgroup>
<caption>
<?= sprintf(_('Veranstaltungen mit regelmäßigen Zeiten am %s, %s Uhr'), htmlReady($day), htmlReady($timespan)) ?>
</caption>
<thead>
<tr>
<th><?= _('Nummer') ?></th>
<th><?= _('Name') ?></th>
<th></th>
</tr>
</thead>
<tbody>
<? foreach ($seminars as $seminar) : ?>
<tr>
<td><?= htmlReady($seminar->getNumber()) ?></td>
<td>
<a href="<?= URLHelper::getLink('dispatch.php/course/details/', ['sem_id' => $seminar->getId()]) ?>">
<?= Icon::create('link-intern') ?>
<?= htmlReady($seminar->getName()) ?>
</a>
</td>
<td class="schedule-adminbind">
<? $cycles = CalendarScheduleModel::getSeminarCycleId($seminar, $start, $end, $day) ?>
<? foreach ($cycles as $cycle) : ?>
<span><?= $cycle->toString() ?></span>
<? $visible = CalendarScheduleModel::isSeminarVisible($seminar->getId(), $cycle->getMetadateId()) ?>
<?= Studip\LinkButton::create(
_('Ausblenden'),
$controller->url_for('calendar/schedule/adminbind/' . $seminar->getId() . '/' . $cycle->getMetadateId() . '/0'),
[
'id' => $seminar->getId() . '_' . $cycle->getMetadateId() . '_hide',
'onclick' => "STUDIP.Schedule.instSemUnbind('" . $seminar->getId() . "','" . $cycle->getMetadateId() . "'); return false;",
'style' => ($visible ? '' : 'display: none')
]) ?>
<?= Studip\LinkButton::create(
_('Einblenden'),
$controller->url_for('calendar/schedule/adminbind/' . $seminar->getId() . '/' . $cycle->getMetadateId() . '/1'),
[
'id' => $seminar->getId() . '_' . $cycle->getMetadateId() . '_show',
'onclick' => "STUDIP.Schedule.instSemBind('" . $seminar->getId() . "','" . $cycle->getMetadateId() . "'); return false;",
'style' => ($visible ? 'display: none' : '')
]) ?>
<br>
<? endforeach ?>
</td>
</tr>
<? endforeach ?>
</tbody>
</table>
<br>
|