This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
phptsmadmin/application/views/node/schedule_list.php
2012-11-30 09:58:33 +11:00

32 lines
1.1 KiB
PHP

<!-- $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>