2012-11-29 22:58:15 +00:00
|
|
|
<!-- $o = ORM::factory('NODE') -->
|
|
|
|
<table class="box-full">
|
|
|
|
<tr>
|
2012-12-07 03:33:16 +00:00
|
|
|
<td class="head" colspan="5">Storage By Pool Summary</td>
|
2012-11-29 22:58:15 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="spacer"> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-12-04 00:52:10 +00:00
|
|
|
<td colspan="2">Storage Pool and Type</td>
|
2012-11-29 22:58:15 +00:00
|
|
|
<td class="right">Vols</td>
|
|
|
|
<td class="right">Files</td>
|
|
|
|
<td class="right">MB</td>
|
|
|
|
</tr>
|
2012-12-04 00:52:10 +00:00
|
|
|
<?php $i=0; foreach ($o->stgpooltypes() as $type) { ?>
|
2012-11-29 22:58:15 +00:00
|
|
|
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
|
|
|
<td class="data" colspan="2"><?php echo $type; ?></td>
|
2012-12-07 03:33:16 +00:00
|
|
|
<td class="data-right"><?php echo count($o->vols_byptype($type)); ?></td>
|
2012-12-04 00:52:10 +00:00
|
|
|
<td class="data-right"><?php echo number_format($o->file_byptype($type),0); ?></td>
|
|
|
|
<td class="data-right"><?php echo number_format($o->logmb_byptype($type),0); ?></td>
|
2012-11-29 22:58:15 +00:00
|
|
|
</tr>
|
2012-12-04 00:52:10 +00:00
|
|
|
<?php foreach ($o->stgpools_byptype($type) as $spo) { ?>
|
2012-11-29 22:58:15 +00:00
|
|
|
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
|
|
|
<td> </td>
|
2012-12-07 03:33:16 +00:00
|
|
|
<td><?php echo HTML::anchor('stgpool/detail/'.$spo->STGPOOL_NAME,$spo->display('STGPOOL_NAME')); ?></td>
|
2012-12-04 00:52:10 +00:00
|
|
|
<td class="right"><?php echo count($o->vols_bypool($spo)); ?></td>
|
|
|
|
<td class="right"><?php echo number_format($o->file_bypool($spo),0); ?></td>
|
|
|
|
<td class="right"><?php echo number_format($o->logmb_bypool($spo),0); ?></td>
|
2012-11-29 22:58:15 +00:00
|
|
|
</tr>
|
2012-12-04 00:52:10 +00:00
|
|
|
<?php } ?>
|
2012-11-29 22:58:15 +00:00
|
|
|
<?php } ?>
|
|
|
|
</table>
|