<!-- $o = ORM::factory('LIBRARY') -->
<table class="box-full">
	<tr>
		<td class="head" colspan="5">Drives in this Library</td>
	</tr>
	<tr>
		<td class="spacer">&nbsp;</td>
	</tr>
	<tr>
		<td>Name</td>
		<td>Serial Number</td>
		<td>Online</td>
		<td>State</td>
		<td>Volume</td>
	</tr>
	<?php $i=0; foreach ($o->DRIVE->find_all() as $do) { ?>
	<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
		<td class="data"><?php echo $do->display('DRIVE_NAME'); ?></td>
		<td class="data"><?php echo $do->display('DRIVE_SERIAL'); ?></td>
		<td class="data"><?php echo $do->display('ONLINE'); ?></td>
		<td class="data"><?php echo $do->display('DRIVE_STATE'); ?></td>
		<td class="data"><?php echo $do->display('VOLUME_NAME'); ?></td>
	</tr>
	<?php foreach ($do->PATH->find_all() as $po) { ?>
	<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
		<td>&nbsp;</td>
		<td><?php echo $po->display('SOURCE_NAME'); ?></td>
		<td><?php echo $po->display('SOURCE_TYPE'); ?></td>
		<td><?php echo $po->display('DESTINATION_TYPE'); ?></td>
		<td><?php echo $po->display('DEVICE'); ?></td>
	</tr>
	<?php } ?>
	<?php } ?>
</table>
