colors) { // $encryptedUser = $Calendar->user->id; //} else { // $encryptedUser = ""; //} if ($Calendar[0]->colors) { $Calendar_colors = json_decode($Calendar[0]->colors, true); } else { $encryptedUser = ""; } $rights = json_decode($Calendar[0]->rights, true); $colorCounter = 0; if (!is_array($Calendar_colors[$Calendar[0]->go_calendar_id])) { $Calendar_colors[$Calendar[0]->go_calendar_id]['bgcolor'] = $standardCalendarColors[$colorCounter]; $Calendar_colors[$Calendar[0]->go_calendar_id]['txtcolor'] = '#000000'; $colorCounter++; } $specialCalendars = array(999 => 'Abwesenheiten', 998 => 'Geburtstage', 997 => 'Feiertage'); foreach ($rights as $key => $right) : $CalArray[$CalendarAll[$key]->user->name] = $key; endforeach; ?>

Kalender

Kalender

Kalender

groups) : $Rights = $rights; ?>
groups, true); foreach ($groups as $group) : ?>
value="2">
$calendar): ?> user->name) ?: $specialCalendars[$calendar['calendar_id']] ?>
Persönlich
1) : foreach ($rights as $key => $right) : $CalArray[$CalendarAll[$key]->user->name] = $key; if (!is_array($Calendar_colors[$key])) { $Calendar_colors[$key]['bgcolor'] = $standardCalendarColors[$colorCounter]; $Calendar_colors[$key]['txtcolor'] = '#ffffff'; $colorCounter++; } if ($key != $Calendar[0]->go_calendar_id) : ?>
Allgemein