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/sessions.php
2012-12-07 17:06:57 +11:00

56 lines
2.1 KiB
PHP

<!-- $o = ORM::factory('NODE') -->
<table width="100%">
<?php foreach ($o->btypes() as $btype) { ?>
<tr>
<td style="width: 100%; vertical-align: top;">
<table class="box-full">
<tr>
<td class="head" colspan="2"><?php echo $btype.' '._('Sessions'); ?></td>
</tr>
<?php if ($o->act_bybtype($btype)) { ?>
<tr>
<td class="spacer">&nbsp;</td>
</tr>
<tr>
<td>Start</td>
<td>End</td>
<td>Comm</td>
<td>Schedule</td>
<td class="right">Session</td>
<td class="right">Examined</td>
<td class="right">Backed Up</td>
<td class="right">Failed</td>
<td class="right">MB</td>
<td class="right">Idle</td>
<td class="right">Media Wait</td>
<td class="right">Comm Wait</td>
<td class="right">Process</td>
<td class="right">Success</td>
</tr>
<?php $i=0; foreach ($o->act_bybtype($btype) as $ao) { ?>
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
<td class="data"><?php echo $ao->display('START_TIME'); ?></td>
<td class="data"><?php echo $ao->display('END_TIME'); ?></td>
<td class="data"><?php echo $ao->display('COMMMETH'); ?></td>
<td class="data"><?php echo $ao->display('SCHEDULE_NAME'); ?></td>
<td class="data-right"><?php echo $ao->display('NUMBER'); ?></td>
<td class="data-right"><?php echo $ao->display('EXAMINED'); ?></td>
<td class="data-right"><?php echo $ao->display('AFFECTED'); ?></td>
<td class="data-right"><?php echo $ao->display('FAILED'); ?></td>
<td class="data-right"><?php echo $ao->bytes(); ?></td>
<td class="data-right"><?php echo $ao->display('IDLE'); ?></td>
<td class="data-right"><?php echo $ao->display('MEDIAW'); ?></td>
<td class="data-right"><?php echo $ao->display('COMM_WAIT'); ?></td>
<td class="data-right"><?php echo $ao->display('PROCESSES'); ?></td>
<td class="data-right"><?php echo $ao->display('SUCCESSFUL'); ?></td>
</tr>
<?php } ?>
<?php } else { ?>
<tr><td><?php echo _('There is NO activity for this Node.'); ?></td></tr>
<?php } ?>
</table>
</td>
</tr>
<?php } ?>
</table>