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/library/drives.php

35 lines
1.1 KiB
PHP
Raw Normal View History

2012-11-29 22:58:15 +00:00
<!-- $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) { ?>
2012-11-29 22:58:15 +00:00
<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>