<div class="calendars view">
<h2><?php  echo __('Calendar'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($calendar['Calendar']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Course'); ?></dt>
		<dd>
			<?php echo $this->Html->link($calendar['Course']['id'], array('controller' => 'courses', 'action' => 'view', $calendar['Course']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Profile'); ?></dt>
		<dd>
			<?php echo $this->Html->link($calendar['Profile']['id'], array('controller' => 'profiles', 'action' => 'view', $calendar['Profile']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Title'); ?></dt>
		<dd>
			<?php echo h($calendar['Calendar']['title']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('FromDt'); ?></dt>
		<dd>
			<?php echo h($calendar['Calendar']['fromDt']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('FromTm'); ?></dt>
		<dd>
			<?php echo h($calendar['Calendar']['fromTm']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('ToDt'); ?></dt>
		<dd>
			<?php echo h($calendar['Calendar']['toDt']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('ToTm'); ?></dt>
		<dd>
			<?php echo h($calendar['Calendar']['toTm']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Location'); ?></dt>
		<dd>
			<?php echo h($calendar['Calendar']['location']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Description'); ?></dt>
		<dd>
			<?php echo h($calendar['Calendar']['description']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Color'); ?></dt>
		<dd>
			<?php echo h($calendar['Calendar']['color']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Privacy'); ?></dt>
		<dd>
			<?php echo h($calendar['Calendar']['privacy']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Calendar'), array('action' => 'edit', $calendar['Calendar']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Calendar'), array('action' => 'delete', $calendar['Calendar']['id']), null, __('Are you sure you want to delete # %s?', $calendar['Calendar']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Calendars'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Calendar'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Courses'), array('controller' => 'courses', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Course'), array('controller' => 'courses', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Profiles'), array('controller' => 'profiles', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Profile'), array('controller' => 'profiles', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Calendarepeats'), array('controller' => 'calendarepeats', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Calendarepeat'), array('controller' => 'calendarepeats', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Reminders'), array('controller' => 'reminders', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Reminder'), array('controller' => 'reminders', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Calendarepeats'); ?></h3>
	<?php if (!empty($calendar['Calendarepeat'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Calendar Id'); ?></th>
		<th><?php echo __('Type'); ?></th>
		<th><?php echo __('Repeatduration'); ?></th>
		<th><?php echo __('Start'); ?></th>
		<th><?php echo __('EndType'); ?></th>
		<th><?php echo __('Endvalue'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($calendar['Calendarepeat'] as $calendarepeat): ?>
		<tr>
			<td><?php echo $calendarepeat['id']; ?></td>
			<td><?php echo $calendarepeat['calendar_id']; ?></td>
			<td><?php echo $calendarepeat['type']; ?></td>
			<td><?php echo $calendarepeat['repeatduration']; ?></td>
			<td><?php echo $calendarepeat['start']; ?></td>
			<td><?php echo $calendarepeat['endType']; ?></td>
			<td><?php echo $calendarepeat['endvalue']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'calendarepeats', 'action' => 'view', $calendarepeat['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'calendarepeats', 'action' => 'edit', $calendarepeat['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'calendarepeats', 'action' => 'delete', $calendarepeat['id']), null, __('Are you sure you want to delete # %s?', $calendarepeat['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Calendarepeat'), array('controller' => 'calendarepeats', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Reminders'); ?></h3>
	<?php if (!empty($calendar['Reminder'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Calendar Id'); ?></th>
		<th><?php echo __('Type'); ?></th>
		<th><?php echo __('Duration'); ?></th>
		<th><?php echo __('ReminderType'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($calendar['Reminder'] as $reminder): ?>
		<tr>
			<td><?php echo $reminder['id']; ?></td>
			<td><?php echo $reminder['calendar_id']; ?></td>
			<td><?php echo $reminder['type']; ?></td>
			<td><?php echo $reminder['duration']; ?></td>
			<td><?php echo $reminder['reminderType']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'reminders', 'action' => 'view', $reminder['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'reminders', 'action' => 'edit', $reminder['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'reminders', 'action' => 'delete', $reminder['id']), null, __('Are you sure you want to delete # %s?', $reminder['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Reminder'), array('controller' => 'reminders', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
