26 lines
928 B
PHP
26 lines
928 B
PHP
|
<!-- $o = ORM::factory('NODE') -->
|
||
|
<table class="box-full">
|
||
|
<tr>
|
||
|
<td class="head" colspan="2">Filespace Stats</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="spacer"> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>File Space</td>
|
||
|
<td class="right">Data</td>
|
||
|
<td class="right">Backed Up</td>
|
||
|
<td class="right">Stored</td>
|
||
|
<td class="right">Ratio</td>
|
||
|
</tr>
|
||
|
<?php $i=0; foreach ($o->fs() as $fso) { ?>
|
||
|
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
||
|
<td class="data"><?php echo $fso->display('FILESPACE_NAME'); ?></td>
|
||
|
<td class="data-right"><?php echo number_format($fso->utilsation(),0,'',''); ?></td>
|
||
|
<td class="data-right"><?php echo number_format($fso->data_physical(),0,'',''); ?></td>
|
||
|
<td class="data-right"><?php echo number_format($fso->data_logical(),0,'',''); ?></td>
|
||
|
<td class="data-right"><?php echo $fso->utilsation() ? number_format($fso->data_logical()/$fso->utilsation(),2) : 'N/A'; ?></td>
|
||
|
</tr>
|
||
|
<?php } ?>
|
||
|
</table>
|