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/domain/schedules.php
2012-11-30 09:58:33 +11:00

30 lines
964 B
PHP

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