42 lines
1.7 KiB
PHP
42 lines
1.7 KiB
PHP
<!-- $o = ORM::factory('DOMAIN') -->
|
|
<table class="box-full">
|
|
<tr>
|
|
<td class="head" colspan="5">Nodes in this Domain</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="spacer"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td>Node</td>
|
|
<td>Version</td>
|
|
<td>OS</td>
|
|
<td>Last Access</td>
|
|
<td>Last IP Addr</td>
|
|
<td>Client Opt</td>
|
|
<?php foreach (Kohana::$config->load('config')->tsmdatatypes as $btype => $ctype) { ?>
|
|
<td><?php echo substr($ctype,0,1); ?></td>
|
|
<?php } ?>
|
|
<?php foreach (Kohana::$config->load('config')->tsmpooltypes as $type) { ?>
|
|
<td colspan="3" class="right"><?php echo $type; ?>(Vol/Fil/Dat)</td>
|
|
<?php } ?>
|
|
</tr>
|
|
<?php $i=0; foreach ($o->nodes() as $no) { ?>
|
|
<tr class="<?php echo $i++%2 ? 'odd' : 'even'; ?>">
|
|
<td class="data"><abbr title="<?php printf('%s (%s)',$no->display('CONTACT'),$no->display('EMAIL_ADDRESS')); ?>"><?php echo HTML::anchor('node/detail/'.$no->NODE_NAME,$no->NODE_NAME); ?></abbr></td>
|
|
<td class="data"><?php echo $no->version(); ?></td>
|
|
<td class="data"><?php echo $no->platform(); ?></td>
|
|
<td class="data"><?php echo $no->display('LASTACC_TIME'); ?></td>
|
|
<td class="data"><?php echo $no->display('TCP_ADDRESS'); ?></td>
|
|
<td class="data"><?php echo $no->display('OPTION_SET'); ?></td>
|
|
<?php foreach (Kohana::$config->load('config')->tsmdatatypes as $btype => $ctype) { ?>
|
|
<td class="data"><?php echo $no->hasData($ctype) ? 'Y' : 'N'; ?></td>
|
|
<?php } ?>
|
|
<?php foreach (Kohana::$config->load('config')->tsmpooltypes as $type) { ?>
|
|
<td class="data-right"><?php echo count($no->vols_byptype($type)); ?></td>
|
|
<td class="data-right"><?php echo number_format($no->file_byptype($type),0); ?></td>
|
|
<td class="data-right"><?php echo number_format($no->logmb_byptype($type),0); ?></td>
|
|
<?php } ?>
|
|
</tr>
|
|
<?php } ?>
|
|
</table>
|