2011-04-07 05:03:05 +00:00
|
|
|
<table width="100%">
|
|
|
|
<tr>
|
|
|
|
<td style="width: 50%; vertical-align: top;">
|
|
|
|
<table class="box-full">
|
|
|
|
<tr>
|
|
|
|
<td class="head" colspan="2">Backup Information</td>
|
|
|
|
</tr>
|
2011-04-08 05:34:04 +00:00
|
|
|
<?php if ($node->storagepools('Bkup')) { ?>
|
2011-04-07 05:03:05 +00:00
|
|
|
<tr>
|
|
|
|
<td class="spacer"> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>File Space</td>
|
|
|
|
<td>Last Date</td>
|
|
|
|
<td style="text-align: right;">Utilisation</td>
|
|
|
|
<?php foreach (Kohana::config('config.tsmpooltypes') as $type)
|
2011-04-08 05:34:04 +00:00
|
|
|
if (count($pools = $node->getStoragePools('Bkup',$type)))
|
2011-04-07 05:03:05 +00:00
|
|
|
foreach ($pools as $pool_name) { ?>
|
|
|
|
<td style="text-align: right;"><?php echo $pool_name; ?> <span style="vertical-align: super; font-size: 60%;"><?echo $type; ?></span></td>
|
|
|
|
<?php } ?>
|
|
|
|
</tr>
|
2011-04-08 05:34:04 +00:00
|
|
|
<?php $i=0;foreach ($node->FILESPACE->find_all() as $fso) { ?>
|
|
|
|
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
2011-04-07 05:03:05 +00:00
|
|
|
<td class="head"><?php echo $fso->display('FILESPACE_NAME'); ?></td>
|
|
|
|
<td class="head"><?php echo $fso->display('BACKUP_END'); ?></td>
|
|
|
|
<td class="head" style="text-align: right;"><?php echo number_format($fso->utilsation(),2); ?></td>
|
|
|
|
<?php foreach (Kohana::config('config.tsmpooltypes') as $type)
|
2011-04-08 05:34:04 +00:00
|
|
|
if (count($pools = $node->getStoragePools('Bkup',$type)))
|
2011-04-07 05:03:05 +00:00
|
|
|
foreach ($pools as $pool_name) { ?>
|
2011-04-08 05:34:04 +00:00
|
|
|
<td class="head" style="text-align: right; vertical-align: top;"><?php echo number_format($fso->pool_logical_util($pool_name),2); ?> (<?php echo $fso->pool_numvols($pool_name); ?>)</td>
|
2011-04-07 05:03:05 +00:00
|
|
|
<?php } ?>
|
|
|
|
</tr>
|
|
|
|
<?php } ?>
|
2011-04-08 05:34:04 +00:00
|
|
|
<?php } else { ?>
|
|
|
|
<tr><td>There is NO Backup Data for this Node.</td></tr>
|
|
|
|
<?php } ?>
|
2011-04-07 05:03:05 +00:00
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
<td style="width: 50%; vertical-align: top;">
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td style="width: 50%; vertical-align: top;">
|
|
|
|
<table class="box-full">
|
|
|
|
<tr>
|
2011-04-08 05:34:04 +00:00
|
|
|
<td class="head" colspan="2">Archive Information</td>
|
2011-04-07 05:03:05 +00:00
|
|
|
</tr>
|
2011-04-08 05:34:04 +00:00
|
|
|
<?php if ($node->storagepools('Arch')) { ?>
|
2011-04-07 05:03:05 +00:00
|
|
|
<tr>
|
|
|
|
<td class="spacer"> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>File Space</td>
|
|
|
|
<?php foreach (Kohana::config('config.tsmpooltypes') as $type)
|
2011-04-08 05:34:04 +00:00
|
|
|
if (count($pools = $node->getStoragePools('Arch',$type)))
|
2011-04-07 05:03:05 +00:00
|
|
|
foreach ($pools as $pool_name) { ?>
|
|
|
|
<td style="text-align: right;"><?php echo $pool_name; ?> <span style="vertical-align: super; font-size: 60%;"><?echo $type; ?></span></td>
|
|
|
|
<?php } ?>
|
|
|
|
</tr>
|
2011-04-08 05:34:04 +00:00
|
|
|
<?php $i=0;foreach ($node->FILESPACE->find_all() as $fso) { ?>
|
|
|
|
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
2011-04-07 05:03:05 +00:00
|
|
|
<td class="head"><?php echo $fso->display('FILESPACE_NAME'); ?></td>
|
|
|
|
<?php foreach (Kohana::config('config.tsmpooltypes') as $type)
|
2011-04-08 05:34:04 +00:00
|
|
|
if (count($pools = $node->getStoragePools('Arch',$type)))
|
2011-04-07 05:03:05 +00:00
|
|
|
foreach ($pools as $pool_name) { ?>
|
2011-04-08 05:34:04 +00:00
|
|
|
<td class="head" style="text-align: right; vertical-align: top;"><?php echo number_format($fso->pool_logical_util($pool_name),2); ?> (<?php echo $fso->pool_numvols($pool_name); ?>)</td>
|
2011-04-07 05:03:05 +00:00
|
|
|
<?php } ?>
|
|
|
|
</tr>
|
|
|
|
<?php } ?>
|
2011-04-08 05:34:04 +00:00
|
|
|
<?php } else { ?>
|
|
|
|
<tr><td>There is NO Archive Data for this Node.</td></tr>
|
|
|
|
<?php } ?>
|
2011-04-07 05:03:05 +00:00
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
<td style="width: 50%; vertical-align: top;">
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|