<div class="courses index">
	<h2><?php echo __('Courses'); ?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id'); ?></th>
			<th><?php echo $this->Paginator->sort('courseShortName'); ?></th>
			<th><?php echo $this->Paginator->sort('courseName'); ?></th>
			<th><?php echo $this->Paginator->sort('description'); ?></th>
			<th><?php echo $this->Paginator->sort('classcode'); ?></th>
			<th><?php echo $this->Paginator->sort('passcode'); ?></th>
			<th><?php echo $this->Paginator->sort('yearId'); ?></th>
			<th><?php echo $this->Paginator->sort('termId'); ?></th>
			<th><?php echo $this->Paginator->sort('programId'); ?></th>
			<th><?php echo $this->Paginator->sort('section'); ?></th>
			<th><?php echo $this->Paginator->sort('credithours'); ?></th>
			<th><?php echo $this->Paginator->sort('startDate'); ?></th>
			<th><?php echo $this->Paginator->sort('endDate'); ?></th>
			<th><?php echo $this->Paginator->sort('created'); ?></th>
			<th><?php echo $this->Paginator->sort('modified'); ?></th>
			<th><?php echo $this->Paginator->sort('status'); ?></th>
			<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($courses as $course): ?>
	<tr>
		<td><?php echo h($course['Course']['id']); ?>&nbsp;</td>
		<td><?php echo h($course['Course']['courseShortName']); ?>&nbsp;</td>
		<td><?php echo h($course['Course']['courseName']); ?>&nbsp;</td>
		<td><?php echo h($course['Course']['description']); ?>&nbsp;</td>
		<td><?php echo h($course['Course']['classcode']); ?>&nbsp;</td>
		<td><?php echo h($course['Course']['passcode']); ?>&nbsp;</td>
		<td><?php echo h($course['Course']['yearId']); ?>&nbsp;</td>
		<td><?php echo h($course['Course']['termId']); ?>&nbsp;</td>
		<td><?php echo h($course['Course']['programId']); ?>&nbsp;</td>
		<td><?php echo h($course['Course']['section']); ?>&nbsp;</td>
		<td><?php echo h($course['Course']['credithours']); ?>&nbsp;</td>
		<td><?php echo h($course['Course']['startDate']); ?>&nbsp;</td>
		<td><?php echo h($course['Course']['endDate']); ?>&nbsp;</td>
		<td><?php echo h($course['Course']['created']); ?>&nbsp;</td>
		<td><?php echo h($course['Course']['modified']); ?>&nbsp;</td>
		<td><?php echo h($course['Course']['status']); ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $course['Course']['id'])); ?>
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $course['Course']['id'])); ?>
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $course['Course']['id']), null, __('Are you sure you want to delete # %s?', $course['Course']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>
	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
