function putEvent($event) { putTitle('Details for event: ' . $event['summary']); putBlock('This event has status ' . $event['status']); putBlock('It was created at ' . date('Y-m-d H:m', strtotime($event['created'])) . ' and last updated at ' . date('Y-m-d H:m', strtotime($event['updated'])) . '.'); putBlock('For this event you have to <strong>' . $event['summary'] . '</strong>.'); }
function printEventDetails($client) { foreach (retrieveEvents($client, $_GET['calendarId']) as $event) { if ($event['id'] == $_GET['showThisEvent']) { putTitle('Details for event: ' . $event['summary']); putBlock('This event has status ' . $event['status']); putBlock('It was created at ' . date('Y-m-d H:m', strtotime($event['created'])) . ' and last updated at ' . date('Y-m-d H:m', strtotime($event['updated'])) . '.'); putBlock('For this event you have to <strong>' . $event['summary'] . '</strong>.'); } } }