<!-- $o = ORM::factory('NODE') -->
<table class="box-full">
	<tr>
		<td class="head" colspan="2">TSM Node Schedules</td>
	</tr>
	<?php if ($o->ASSOCIATION->find_all()) { ?>
	<tr>
		<td class="spacer">&nbsp;</td>
	</tr>
	<tr>
		<td>Schedule</td>
		<td>Start Time</td>
		<td>Duration</td>
		<td>Repeat</td>
		<td>Valid Day</td>
		<td>Priority</td>
	</tr>
	<?php $i=0;foreach ($o->ASSOCIATION->find_all() as $ao) { ?>
	<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
		<td class="data"><?php echo $ao->display('SCHEDULE_NAME'); ?></td>
		<td class="data"><?php echo $ao->SCHEDULE_CLIENT->display('STARTTIME'); ?></td>
		<td class="data"><?php printf('%s %s',$ao->SCHEDULE_CLIENT->DURATION,$ao->SCHEDULE_CLIENT->DURUNITS); ?></td>
		<td class="data"><?php printf('%s %s',$ao->SCHEDULE_CLIENT->PERIOD,$ao->SCHEDULE_CLIENT->PERUNITS); ?></td>
		<td class="data"><?php echo $ao->SCHEDULE_CLIENT->display('DAYOFWEEK'); ?></td>
		<td class="data"><?php echo $ao->SCHEDULE_CLIENT->display('PRIORITY'); ?></td>
	</tr>
	<?php } ?>
	<?php } else { ?>
		<tr><td>There are no TSM schedules define for this Node.</td></tr>
	<?php } ?>
</table>