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/domain/policy.php

51 lines
2.0 KiB
PHP
Raw Normal View History

2012-11-29 22:58:15 +00:00
<!-- $o = ORM::factory('DOMAIN') -->
2011-05-31 14:51:15 +00:00
<table class="box-full">
<tr>
<td class="head" colspan="2">Policy Settings</td>
</tr>
<tr>
<td class="spacer">&nbsp;</td>
</tr>
<tr>
<td class="head" colspan="2">Backup Settings</td>
</tr>
<tr>
<td>MGMT Class</td>
<td>HSM Pool</td>
<td>1st Backup Pool</td>
<td>Next Backup Pool</td>
2011-05-31 14:51:15 +00:00
<td>Ver Exist</td>
<td>Ver Del</td>
<td>Frequency</td>
</tr>
2012-11-29 22:58:15 +00:00
<?php $i=0; foreach ($o->MGMTCLASS->where('SET_NAME','=','ACTIVE')->find_all() as $mco) { ?>
2011-05-31 14:51:15 +00:00
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
<td class="data"><?php echo $mco->display('CLASS_NAME'); ?><?php echo $mco->DEFAULTMC=='Yes' ? ' <sup>*</sup>' : ''; ?></td>
<td class="data"><?php echo $mco->display('MIGDESTINATION'); ?></td>
<td class="data"><?php echo HTML::anchor('stgpool/detail/'.$mco->COPYGROUP_BU->DESTINATION,$mco->COPYGROUP_BU->display('DESTINATION')); ?></td>
<td class="data"><?php echo HTML::anchor('stgpool/detail/'.$mco->COPYGROUP_BU->STGPOOL->NEXTSTGPOOL,$mco->COPYGROUP_BU->STGPOOL->display('NEXTSTGPOOL')); ?></td>
2011-05-31 14:51:15 +00:00
<td class="data"><?php printf('%s/%s',$mco->COPYGROUP_BU->display('VEREXISTS'),$mco->COPYGROUP_BU->display('RETEXTRA')); ?></td>
<td class="data"><?php printf('%s/%s',$mco->COPYGROUP_BU->display('VERDELETED'),$mco->COPYGROUP_BU->display('RETONLY')); ?></td>
<td class="data"><?php echo $mco->COPYGROUP_BU->display('FREQUENCY'); ?></td>
</tr>
<?php } ?>
<tr>
<td class="spacer">&nbsp;</td>
</tr>
<tr>
<td class="head" colspan="2">Archive Settings</td>
</tr>
<tr>
<td>MGMT Class</td>
<td>Destination</td>
<td>Retain</td>
</tr>
2012-11-29 22:58:15 +00:00
<?php $i=0; foreach ($o->MGMTCLASS->where('SET_NAME','=','ACTIVE')->find_all() as $mco) { ?>
2011-05-31 14:51:15 +00:00
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
<td class="data"><?php echo $mco->display('CLASS_NAME'); ?><?php echo $mco->DEFAULTMC=='Yes' ? ' <sup>*</sup>' : ''; ?></td>
<td class="data"><?php echo $mco->COPYGROUP_AR->display('DESTINATION'); ?></td>
<td class="data"><?php echo $mco->COPYGROUP_AR->display('RETVER'); ?></td>
</tr>
<?php } ?>
</table>