2012-11-29 22:58:15 +00:00
|
|
|
<!-- $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>
|
2012-12-06 05:19:30 +00:00
|
|
|
<?php if ($o->vols_byctype($ctype)) { ?>
|
2012-11-29 22:58:15 +00:00
|
|
|
<tr>
|
|
|
|
<td class="spacer"> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>File Space</td>
|
|
|
|
<td><?php echo ($btype == 'Bkup') ? 'Last Date' : ' '; ?></td>
|
|
|
|
<td class="right">Utilisation</td>
|
2012-12-04 00:52:10 +00:00
|
|
|
<?php foreach ($o->stgpools() as $spo) { ?>
|
|
|
|
<td class="right"><?php echo $spo->display('STGPOOL_NAME'); ?> <span style="vertical-align: super; font-size: 60%;"><?php echo $spo->display('POOLTYPE'); ?></span></td>
|
2012-11-29 22:58:15 +00:00
|
|
|
<?php } ?>
|
|
|
|
</tr>
|
2012-12-06 03:50:06 +00:00
|
|
|
<?php $i=0; foreach ($o->fs() as $fso) { ?>
|
2012-11-29 22:58:15 +00:00
|
|
|
<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>
|
2012-12-06 03:50:06 +00:00
|
|
|
<?php foreach ($o->stgpools() as $spo) { ?>
|
2012-12-06 05:19:30 +00:00
|
|
|
<td class="data-right"><?php echo number_format($fso->logmb_bypoolbybtype($spo->STGPOOL_NAME,$btype),2); ?> (<?php echo count($fso->vols_bypoolbyctype($spo->STGPOOL_NAME,$ctype)); ?>)</td>
|
2012-12-06 03:50:06 +00:00
|
|
|
<?php } ?>
|
2012-11-29 22:58:15 +00:00
|
|
|
</tr>
|
2012-12-06 03:50:06 +00:00
|
|
|
<?php } ?>
|
2012-11-29 22:58:15 +00:00
|
|
|
<?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>
|