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/info.php
2012-11-30 09:58:33 +11:00

58 lines
1.5 KiB
PHP

<!-- $o = ORM::factory('LIBRARY') -->
<!-- <?php $slots = $o->slots(); ?> -->
<table class="box-full">
<tr>
<td class="head" colspan="2">Information for this Library</td>
</tr>
<tr>
<td class="spacer">&nbsp;</td>
</tr>
<tr>
<td style="width: 40%;">Name</td>
<td style="width: 60%;" class="data"><?php printf('%s (%s)',$o->display('LIBRARY_NAME'),$slots->ProductId); ?></td>
</tr>
<tr>
<td>Serial Number</td>
<td class="data"><?php echo $o->display('LIBRARY_SERIAL'); ?></td>
</tr>
<tr>
<td>Type</td>
<td class="data"><?php echo $o->display('LIBRARY_TYPE'); ?></td>
</tr>
<tr>
<td>Drives</td>
<td class="data"><?php echo $slots->Drives; ?></td>
</tr>
<tr>
<td>Slots/Changers</td>
<td class="data"><?php printf('%s/%s',$slots->Slots-$slots->Changers,$slots->Changers); ?></td>
</tr>
<tr>
<td>Shared</td>
<td class="data"><?php echo $o->display('SHARED'); ?></td>
</tr>
<tr>
<td>LAN Free</td>
<td class="data"><?php echo $o->display('LANFREE'); ?></td>
</tr>
<tr>
<td>Auto Label</td>
<td class="data"><?php echo $o->display('AUTOLABEL'); ?></td>
</tr>
<tr>
<td>Paths</td>
<td>
<table style="width: 100%;">
<?php $i=0; foreach ($o->PATH->find_all() as $po) { ?>
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
<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>
</table>
</td>
</tr>
<?php } ?>
</table>