2012-11-29 22:58:15 +00:00
|
|
|
<!-- $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) { ?>
|
2012-12-04 00:52:10 +00:00
|
|
|
<td><?php echo substr($ctype,0,1); ?></td>
|
2012-11-29 22:58:15 +00:00
|
|
|
<?php } ?>
|
|
|
|
<?php foreach (Kohana::$config->load('config')->tsmpooltypes as $type) { ?>
|
|
|
|
<td colspan="3" class="right"><?php echo $type; ?>(Vol/Fil/Dat)</td>
|
|
|
|
<?php } ?>
|
|
|
|
</tr>
|
2012-12-04 00:52:10 +00:00
|
|
|
<?php $i=0; foreach ($o->nodes() as $no) { ?>
|
2012-11-29 22:58:15 +00:00
|
|
|
<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>
|
2012-12-04 00:52:10 +00:00
|
|
|
<td class="data"><?php echo $no->version(); ?></td>
|
2012-11-29 22:58:15 +00:00
|
|
|
<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) { ?>
|
2012-12-04 00:52:10 +00:00
|
|
|
<td class="data"><?php echo $no->hasData($ctype) ? 'Y' : 'N'; ?></td>
|
2012-11-29 22:58:15 +00:00
|
|
|
<?php } ?>
|
|
|
|
<?php foreach (Kohana::$config->load('config')->tsmpooltypes as $type) { ?>
|
2012-12-04 00:52:10 +00:00
|
|
|
<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>
|
2012-11-29 22:58:15 +00:00
|
|
|
<?php } ?>
|
|
|
|
</tr>
|
|
|
|
<?php } ?>
|
|
|
|
</table>
|