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/detail_schedule.php

93 lines
3.2 KiB
PHP
Raw Normal View History

<table width="100%">
<tr>
<td style="width: 50%; vertical-align: top;">
<table class="box-full">
<tr>
<td class="head" colspan="2">TSM Node Schedules</td>
</tr>
<?php if ($node->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 ($node->ASSOCIATION->find_all() as $ao) { ?>
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
2011-05-27 11:08:44 +00:00
<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>
</td>
<td style="width: 50%; vertical-align: top;" rowspan="2">
<table class="box-full">
<tr>
<td class="head" colspan="2">Summary Activity</td>
</tr>
<tr>
<td class="spacer">&nbsp;</td>
</tr>
<tr>
<td>Start</td>
<td>End</td>
<td>Activity</td>
<td>Schedule</td>
<td>MB</td>
</tr>
<?php $i=0;foreach ($node->SUMMARY->find_all() as $so) { ?>
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
2011-05-27 11:08:44 +00:00
<td class="data"><?php echo $so->display('START_TIME'); ?></td>
<td class="data"><?php echo $so->display('END_TIME'); ?></td>
<td class="data"><?php echo $so->display('ACTIVITY'); ?></td>
<td class="data"><?php echo $so->display('SCHEDULE_NAME'); ?></td>
<td class="data" style="text-align: right;"><?php printf('%3.2f',round($so->display('BYTES')/1024/1024,2)); ?></td>
</tr>
<?php } ?>
</table>
</td>
</tr>
<tr>
<td style="width: 50%; vertical-align: top;">
<table class="box-full">
<tr>
<td class="head" colspan="2">Schedule Activity</td>
</tr>
<tr>
<td class="spacer">&nbsp;</td>
</tr>
<tr>
<td>Sched Start</td>
<td>Act Start</td>
<td>Schedule Name</td>
<td>Status</td>
<td>Completed</td>
<td>Result</td>
2011-05-31 14:51:15 +00:00
</tr>
<?php $i=0;foreach ($node->EVENT->find_all() as $eo) { ?>
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
2011-05-27 11:08:44 +00:00
<td class="data"><?php echo $eo->display('SCHEDULED_START'); ?></td>
<td class="data"><?php echo $eo->ACTUAL_START ? $eo->display('ACTUAL_START') : '&nbsp;'; ?></td>
<td class="data"><?php echo $eo->display('SCHEDULE_NAME'); ?></td>
<td class="data"><?php echo $eo->display('STATUS'); ?></td>
<td class="data"><?php echo $eo->COMPLETED ? $eo->display('COMPLETED') : '&nbsp;'; ?></td>
<td class="data"><?php printf('%s %s',$eo->RESULT,$eo->display('REASON')); ?></td>
</tr>
<?php } ?>
</table>
</td>
</tr>
</table>