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/detail_filesystem.php

148 lines
5.7 KiB
PHP
Raw Normal View History

2011-04-07 05:03:05 +00:00
<table width="100%">
<tr>
<td style="width: 50%; vertical-align: top;">
<table class="box-full">
<tr>
<td class="head" colspan="2">Backup Information</td>
</tr>
<?php if ($node->getStoragePools('Bkup')) { ?>
2011-04-07 05:03:05 +00:00
<tr>
<td class="spacer">&nbsp;</td>
</tr>
<tr>
<td>File Space</td>
<td>Last Date</td>
2011-05-27 11:08:44 +00:00
<td class="right">Utilisation</td>
2012-11-26 05:57:18 +00:00
<?php foreach (Kohana::$config->load('config')->tsmpooltypes as $type)
if (count($pools = $node->getStoragePoolsType('Bkup',$type)))
2011-04-07 05:03:05 +00:00
foreach ($pools as $pool_name) { ?>
2011-05-27 11:08:44 +00:00
<td class="right"><?php echo $pool_name; ?> <span style="vertical-align: super; font-size: 60%;"><?echo $type; ?></span></td>
2011-04-07 05:03:05 +00:00
<?php } ?>
</tr>
2011-04-08 05:34:04 +00:00
<?php $i=0;foreach ($node->FILESPACE->find_all() as $fso) { ?>
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
2011-05-27 11:08:44 +00:00
<td class="data"><?php echo $fso->display('FILESPACE_NAME'); ?></td>
<td class="data"><?php echo $fso->display('BACKUP_END'); ?></td>
<td class="data-right"><?php echo number_format($fso->utilsation(),2); ?></td>
2012-11-26 05:57:18 +00:00
<?php foreach (Kohana::$config->load('config')->tsmpooltypes as $type)
if (count($pools = $node->getStoragePoolsType('Bkup',$type)))
2011-04-07 05:03:05 +00:00
foreach ($pools as $pool_name) { ?>
2011-05-27 11:08:44 +00:00
<td class="data-right"><?php echo number_format($fso->pool_logical_util($pool_name,'Bkup'),2); ?> (<?php echo $fso->pool_numvols($pool_name,'BACKUP'); ?>)</td>
2011-04-07 05:03:05 +00:00
<?php } ?>
</tr>
<?php } ?>
2011-04-08 05:34:04 +00:00
<?php } else { ?>
<tr><td>There is NO Backup Data for this Node.</td></tr>
<?php } ?>
2011-04-07 05:03:05 +00:00
</table>
</td>
<td style="width: 50%; vertical-align: top;" rowspan="2">
<table class="box-full">
<tr>
<td class="head" colspan="2">Storage Summary</td>
</tr>
<tr>
<td class="spacer">&nbsp;</td>
</tr>
<tr>
2011-05-29 01:41:36 +00:00
<td colspan="2">Storage Type</td>
<td class="right">Vols</td>
2011-05-27 11:08:44 +00:00
<td class="right">Files</td>
<td class="right">MB</td>
</tr>
2012-11-26 05:57:18 +00:00
<?php $i=0; foreach (Kohana::$config->load('config')->tsmpooltypes as $type) { ?>
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
2011-05-29 01:41:36 +00:00
<td class="data" colspan="2"><?php echo $type; ?></td>
2011-05-30 09:27:08 +00:00
<td class="data-right"><?php echo count($node->getStorageTypeVols($type)); ?></td>
2011-05-27 11:08:44 +00:00
<td class="data-right"><?php echo $node->getStorageTypeFiles($type); ?></td>
<td class="data-right"><?php echo $node->getStorageTypeData($type); ?></td>
</tr>
2011-05-29 01:41:36 +00:00
<?php foreach ($node->getAllStoragePoolsType($type) as $spo) { ?>
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
<td>&nbsp;</td>
<td><?php echo $spo; ?></td>
2011-05-30 09:27:08 +00:00
<td class="right"><?php echo count($node->getStorageTypeVols($type,$spo)); ?></td>
2011-05-29 01:41:36 +00:00
<td class="right"><?php echo $node->getStorageTypeFiles($type,$spo); ?></td>
<td class="right"><?php echo $node->getStorageTypeData($type,$spo); ?></td>
</tr>
<?php } ?>
<?php } ?>
</table>
2011-04-07 05:03:05 +00:00
</td>
</tr>
<tr>
<td style="width: 50%; vertical-align: top;">
<table class="box-full">
<tr>
2011-04-08 05:34:04 +00:00
<td class="head" colspan="2">Archive Information</td>
2011-04-07 05:03:05 +00:00
</tr>
<?php if ($node->getStoragePools('Arch')) { ?>
2011-04-07 05:03:05 +00:00
<tr>
<td class="spacer">&nbsp;</td>
</tr>
<tr>
<td>File Space</td>
2012-11-26 05:57:18 +00:00
<?php foreach (Kohana::$config->load('config')->tsmpooltypes as $type)
if (count($pools = $node->getStoragePoolsType('Arch',$type)))
2011-04-07 05:03:05 +00:00
foreach ($pools as $pool_name) { ?>
2011-05-27 11:08:44 +00:00
<td class="right"><?php echo $pool_name; ?> <span style="vertical-align: super; font-size: 60%;"><?echo $type; ?></span></td>
2011-04-07 05:03:05 +00:00
<?php } ?>
</tr>
2011-04-08 05:34:04 +00:00
<?php $i=0;foreach ($node->FILESPACE->find_all() as $fso) { ?>
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
2011-05-27 11:08:44 +00:00
<td class="data"><?php echo $fso->display('FILESPACE_NAME'); ?></td>
2012-11-26 05:57:18 +00:00
<?php foreach (Kohana::$config->load('config')->tsmpooltypes as $type)
if (count($pools = $node->getStoragePoolsType('Arch',$type)))
2011-04-07 05:03:05 +00:00
foreach ($pools as $pool_name) { ?>
2011-05-27 11:08:44 +00:00
<td class="data-right"><?php echo number_format($fso->pool_logical_util($pool_name,'Arch'),2); ?> (<?php echo $fso->pool_numvols($pool_name,'ARCHIVE'); ?>)</td>
2011-04-07 05:03:05 +00:00
<?php } ?>
</tr>
<?php } ?>
2011-04-08 05:34:04 +00:00
<?php } else { ?>
<tr><td>There is NO Archive Data for this Node.</td></tr>
<?php } ?>
2011-04-07 05:03:05 +00:00
</table>
</td>
<td style="width: 50%; vertical-align: top;">
&nbsp;
</td>
</tr>
2012-11-28 02:34:39 +00:00
<tr>
<td style="width: 50%; vertical-align: top;">
<table class="box-full">
<tr>
<td class="head" colspan="2">HSM Information</td>
</tr>
<?php if ($node->getStoragePools('SpMg')) { ?>
<tr>
<td class="spacer">&nbsp;</td>
</tr>
<tr>
<td>File Space</td>
<?php foreach (Kohana::$config->load('config')->tsmpooltypes as $type)
if (count($pools = $node->getStoragePoolsType('SpMg',$type)))
foreach ($pools as $pool_name) { ?>
<td class="right"><?php echo $pool_name; ?> <span style="vertical-align: super; font-size: 60%;"><?echo $type; ?></span></td>
<?php } ?>
</tr>
<?php $i=0;foreach ($node->FILESPACE->find_all() as $fso) { ?>
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
<td class="data"><?php echo $fso->display('FILESPACE_NAME'); ?></td>
<?php foreach (Kohana::$config->load('config')->tsmpooltypes as $type)
if (count($pools = $node->getStoragePoolsType('SpMg',$type)))
foreach ($pools as $pool_name) { ?>
<td class="data-right"><?php echo number_format($fso->pool_logical_util($pool_name,'SpMg'),2); ?> (<?php echo $fso->pool_numvols($pool_name,'SPACE MANAGED'); ?>)</td>
<?php } ?>
</tr>
<?php } ?>
<?php } else { ?>
<tr><td>There is NO HSM Data for this Node.</td></tr>
<?php } ?>
</table>
</td>
<td style="width: 50%; vertical-align: top;">
&nbsp;
</td>
</tr>
2011-04-07 05:03:05 +00:00
</table>