<!-- $o = ORM::factory('DOMAIN') -->
<table class="box-full">
	<tr>
		<td class="head" colspan="7">Schedules used in this Domain</td>
	</tr>
	<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>
		<td>Nodes</td>
	</tr>
	<?php $i=0; foreach ($o->SCHEDULE_CLIENT->find_all() as $so) { ?>
	<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
		<td class="data"><?php echo $so->display('SCHEDULE_NAME'); ?></td>
		<td class="data"><?php echo $so->display('STARTTIME'); ?></td>
		<td class="data"><?php printf('%s %s',$so->DURATION,$so->DURUNITS); ?></td>
		<td class="data"><?php printf('%s %s',$so->PERIOD,$so->PERUNITS); ?></td>
		<td class="data"><?php echo $so->display('DAYOFWEEK'); ?></td>
		<td class="data"><?php echo $so->display('PRIORITY'); ?></td>
		<td class="data"><?php echo count($so->getNodes()); ?></td>
	</tr>
	<?php } ?>
</table>
