37 lines
1.4 KiB
PHP
37 lines
1.4 KiB
PHP
|
<!-- $o = ORM::factory('DOMAIN') -->
|
||
|
<table class="box-full">
|
||
|
<tr>
|
||
|
<td class="head" colspan="15">Storage By Pools Summary for Nodes in this Domain</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="spacer"> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td colspan="2">Storage Pool and Type</td>
|
||
|
<td class="right">Scr Use</td>
|
||
|
<td class="right">Scr Avl</td>
|
||
|
<td class="right">Nodes</td>
|
||
|
<td class="right">Vols</td>
|
||
|
<td class="right">Files</td>
|
||
|
<td class="right">MB</td>
|
||
|
</tr>
|
||
|
<?php $i=0; foreach ($o->stgpooltypes() as $type) { ?>
|
||
|
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
||
|
<td colspan="8" class="data"><?php echo $type; ?></td>
|
||
|
</tr>
|
||
|
<?php foreach ($o->stgpools_byptype($type) as $spo) { ?>
|
||
|
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
||
|
<td> </td>
|
||
|
<td class="data"><?php echo HTML::anchor('stgpool/detail/'.$spo->STGPOOL_NAME,$spo->display('STGPOOL_NAME')); ?></td>
|
||
|
<td class="data-right"><?php echo $spo->display('NUMSCRATCHUSED'); ?></td>
|
||
|
<td class="data-right"><?php echo $spo->display('MAXSCRATCH'); ?></td>
|
||
|
<td class="data-right"><?php echo count($o->nodes_bypool($spo)); ?></td>
|
||
|
<td class="data-right"><?php echo count($o->vols_bypool($spo)); ?></td>
|
||
|
<td class="data-right"><?php echo number_format($o->file_bypool($spo),0); ?></td>
|
||
|
<td class="data-right"><?php echo number_format($o->logmb_bypool($spo),0); ?></td>
|
||
|
</tr>
|
||
|
<?php } ?>
|
||
|
<?php } ?>
|
||
|
</table>
|
||
|
|