<!-- $o = ORM::factory('STGPOOL') -->
<table class="box-full">
	<tr>
		<td class="head" colspan="5">Management classes that directly store here</td>
	</tr>
	<tr>
		<td class="spacer">&nbsp;</td>
	</tr>
	<tr>
		<td class="head" colspan="5">Backup Management Classes</td>
	</tr>
	<tr>
		<td>Domain</td>
		<td>MgmtClass</td>
		<td>Copy Group</td>
	</tr>
	<?php $i=0; foreach ($o->COPYGROUP_BU->where('SET_NAME','=','ACTIVE')->find_all() as $cgo) { ?>
	<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
		<td class="data"><?php echo HTML::anchor('domain/detail/'.$cgo->DOMAIN_NAME,$cgo->display('DOMAIN_NAME')); ?></td>
		<td class="data"><?php echo $cgo->display('CLASS_NAME'); ?></td>
		<td class="data"><?php echo $cgo->display('COPYGROUP_NAME'); ?></td>
	</tr>
	<?php } ?>
	<tr>
		<td class="spacer">&nbsp;</td>
	</tr>
	<tr>
		<td class="head" colspan="5">Archive Management Classes</td>
	</tr>
	<tr>
		<td>Domain</td>
		<td>MgmtClass</td>
		<td>Copy Group</td>
	</tr>
	<?php $i=0; foreach ($o->COPYGROUP_AR->where('SET_NAME','=','ACTIVE')->find_all() as $cgo) { ?>
	<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
		<td class="data"><?php echo $cgo->display('DOMAIN_NAME'); ?></td>
		<td class="data"><?php echo $cgo->display('CLASS_NAME'); ?></td>
		<td class="data"><?php echo $cgo->display('COPYGROUP_NAME'); ?></td>
	</tr>
	<?php } ?>
	<tr>
		<td class="spacer">&nbsp;</td>
	</tr>
	<tr>
		<td class="head" colspan="5">HSM Management Classes</td>
	</tr>
	<tr>
		<td>Domain</td>
		<td>MgmtClass</td>
	</tr>
	<?php $i=0; foreach ($o->MGMTCLASS->where('SET_NAME','=','ACTIVE')->find_all() as $mo) { ?>
	<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
		<td class="data"><?php echo $mo->display('DOMAIN_NAME'); ?></td>
		<td class="data"><?php echo $mo->display('CLASS_NAME'); ?><?php echo $mo->DEFAULTMC == 'Yes' ? '*' : ''; ?></td>
	</tr>
	<?php } ?>
</table>
