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
|
<? $link_notset = true ?>
<? $atime_new = $calendar->getStart() + $i * $step ?>
<? if (!$em['term'][$row]) : ?>
<? if ($calendar->havePermission(Calendar::PERMISSION_WRITABLE)) : ?>
<td class="calendar-day-edit <?= $class_cell ?>" <?= ($em['max_cols'] > 0 ? ' colspan="' . ($em['max_cols'] + 1) . '"' : '') ?>>
<a title="<?= strftime(_('Neuer Termin am %x, %R Uhr'), $atime_new) ?>" href="<?= $controller->url_for('calendar/single/edit/' . $calendar->getRangeId(), ['atime' => $atime_new]) ?>">+</a>
</td>
<? else : ?>
<td class="calendar-day-edit <?= $class_cell ?>" <?= ($em['max_cols'] > 0 ? ' colspan="' . ($em['max_cols'] + 1) . '"' : '') ?>>
</td>
<? endif; ?>
<? $link_notset = false ?>
<? else : ?>
<? for ($j = 0; $j < $em['colsp'][$row]; $j++) : ?>
<? $event = $em['term'][$row][$j]; ?>
<? $mapped_event = $calendar->events[$em['mapping'][$row][$j]]; ?>
<? if (is_object($event)) : ?>
<td data-tooltip<?= ($em['cspan'][$row][$j] > 1 ? ' colspan="' . $em['cspan'][$row][$j] . '"' : '') ?><?= ($em['rows'][$row][$j] > 1 ? ' rowspan="' . $em['rows'][$row][$j] . '"' : '') ?> class="<?= $event instanceof CourseEvent ? 'calendar-course-category' : 'calendar-category' ?><?= $event->getCategory() ?> calendar-day-event">
<? if ($em['rows'][$row][$j] > 1) : ?>
<div>
<?= date('H.i-', $mapped_event->getStart()) . date('H.i', $mapped_event->getEnd()) ?>
</div>
<? endif ?>
<div class="calendar-day-event-title">
<a title="<?= _('Termin bearbeiten') ?>" href="<?= $controller->url_for('calendar/single/edit/' . $calendar->getRangeId() . '/' . $event->event_id, ['atime' => $atime_new, 'evtype' => $event->getType()]) ?>"><?= htmlReady($event->getTitle()) ?></a>
<?= $this->render_partial('calendar/single/_tooltip', ['event' => $mapped_event]) ?>
</div>
</td>
<? elseif ($event == '#') : ?>
<td class="<?= $class_cell ?>"<?= ($em['cspan'][$row][$j] > 1 ? ' colspan="' . $em['cspan'][$row][$j] . '"' : '') ?>>
<span class="inday"> </span>
</td>
<? elseif ($event == '') : ?>
<? if ($calendar->havePermission(Calendar::PERMISSION_WRITABLE)) : ?>
<td class="calendar-day-edit <?= $class_cell ?>"<?= ($em['cspan'][$row][$j] > 1 ? ' colspan="' . $em['cspan'][$row][$j] . '"' : '') ?>>
<a title="<?= strftime(_('Neuer Termin am %x, %R Uhr'), $atime_new) ?>" href="<?= $controller->url_for('calendar/single/edit/' . $calendar->getRangeId(), ['atime' => $atime_new]) ?>">+</a>
</td>
<? else : ?>
<td class="calendar-day-edit <?= $class_cell ?>"<?= ($em['cspan'][$row][$j] > 1 ? ' colspan="' . $em['cspan'][$row][$j] . '"' : '') ?>></td>
<? endif ?>
<? $link_notset = false; ?>
<? break; ?>
<? endif ?>
<? endfor ?>
<? endif ?>
<? if ($link_notset) : ?>
<? if ($calendar->havePermission(Calendar::PERMISSION_WRITABLE)) : ?>
<td class="calendar-day-edit <?= $class_cell ?>">
<a title="<?= strftime(_('Neuer Termin am %x, %R Uhr'), $atime_new) ?>" href="<?= $controller->url_for('calendar/single/edit/' . $calendar->getRangeId(), ['atime' => $atime_new]) ?>">+</a>
</td>
<? else : ?>
<td class="calendar-day-edit <?= $class_cell ?>"></td>
<? endif; ?>
<? endif ?>
|