46 lines
1.9 KiB
PHP
46 lines
1.9 KiB
PHP
|
<!-- $o = ORM::factory('NODE') -->
|
||
|
<table width="100%">
|
||
|
<tr>
|
||
|
<td style="width: 50%; vertical-align: top;">
|
||
|
<?php foreach (Kohana::$config->load('config')->tsmdatatypes as $btype => $ctype) { ?>
|
||
|
<table class="box-full">
|
||
|
<tr>
|
||
|
<td class="head" colspan="2"><?php echo $ctype; ?> Information</td>
|
||
|
</tr>
|
||
|
<?php if ($o->getStoragePools($btype)) { ?>
|
||
|
<tr>
|
||
|
<td class="spacer"> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>File Space</td>
|
||
|
<td><?php echo ($btype == 'Bkup') ? 'Last Date' : ' '; ?></td>
|
||
|
<td class="right">Utilisation</td>
|
||
|
<?php foreach (Kohana::$config->load('config')->tsmpooltypes as $type)
|
||
|
if (count($pools = $o->getStoragePoolsType($btype,$type)))
|
||
|
foreach ($pools as $pool_name) { ?>
|
||
|
<td class="right"><?php echo $pool_name; ?> <span style="vertical-align: super; font-size: 60%;"><?echo $type; ?></span></td>
|
||
|
<?php } ?>
|
||
|
</tr>
|
||
|
<?php $i=0;foreach ($o->FILESPACE->find_all() as $fso) { ?>
|
||
|
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
||
|
<td class="data"><?php echo $fso->display('FILESPACE_NAME'); ?></td>
|
||
|
<td class="data"><?php echo ($btype == 'Bkup') ? $fso->display('BACKUP_END') : ' '; ?></td>
|
||
|
<td class="data-right"><?php echo number_format($fso->utilsation(),2); ?></td>
|
||
|
<?php foreach (Kohana::$config->load('config')->tsmpooltypes as $type)
|
||
|
if (count($pools = $o->getStoragePoolsType($btype,$type)))
|
||
|
foreach ($pools as $pool_name) { ?>
|
||
|
<td class="data-right"><?php echo number_format($fso->pool_logical_util($pool_name,$btype),2); ?> (<?php echo $fso->pool_numvols($pool_name,$ctype); ?>)</td>
|
||
|
<?php } ?>
|
||
|
</tr>
|
||
|
<?php } ?>
|
||
|
<?php } else { ?>
|
||
|
<tr><td>There is no <?php echo $ctype; ?> Data for this Node.</td></tr>
|
||
|
<?php } ?>
|
||
|
</table>
|
||
|
<br/>
|
||
|
<?php } ?>
|
||
|
</td>
|
||
|
<td style="width: 50%; vertical-align: top;" rowspan="2"><?php echo View::factory('node/stgpool_summary')->set('o',$o); ?></td>
|
||
|
</tr>
|
||
|
</table>
|