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/filespace_stats.php
2012-12-13 15:46:25 +11:00

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">&nbsp;</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>