2011-03-26 17:16:09 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if (!is_integer($i/2)) { $bg_colour = $list_colour_a; } else { $bg_colour = $list_colour_b; }
|
|
|
|
|
2011-04-06 15:25:35 +00:00
|
|
|
echo('<tr bgcolor="' . $bg_colour . '">');
|
2011-03-26 17:16:09 +00:00
|
|
|
|
2011-09-26 17:10:28 +00:00
|
|
|
echo('<td class="list">');
|
|
|
|
|
|
|
|
if (array_search($vm['vmwVmDisplayName'],array_keys($cache['devices'])))
|
|
|
|
{
|
|
|
|
echo(generate_device_link($cache['devices'][$vm['vmwVmDisplayName']]));
|
|
|
|
} else {
|
|
|
|
echo $vm['vmwVmDisplayName'];
|
|
|
|
}
|
|
|
|
|
|
|
|
echo("</td>");
|
2011-04-06 15:25:35 +00:00
|
|
|
echo('<td class="list">' . $vm['vmwVmState'] . "</td>");
|
2011-03-26 17:16:09 +00:00
|
|
|
|
2011-04-06 15:25:35 +00:00
|
|
|
if ($vm['vmwVmGuestOS'] == "E: tools not installed")
|
|
|
|
{
|
|
|
|
echo('<td class="box-desc">Unknown (VMware Tools not installed)</td>');
|
|
|
|
}
|
|
|
|
else if ($vm['vmwVmGuestOS'] == "")
|
|
|
|
{
|
|
|
|
echo('<td class="box-desc"><i>(Unknown)</i></td>');
|
2011-03-26 17:16:09 +00:00
|
|
|
} else {
|
2011-04-06 15:25:35 +00:00
|
|
|
echo('<td class="list">' . $config['vmware_guestid'][$vm['vmwVmGuestOS']] . "</td>");
|
2011-03-26 17:16:09 +00:00
|
|
|
}
|
|
|
|
|
2011-04-06 15:25:35 +00:00
|
|
|
if ($vm['vmwVmMemSize'] >= 1024)
|
|
|
|
{
|
2011-04-20 16:48:33 +00:00
|
|
|
echo("<td class=list>" . sprintf("%.2f",$vm['vmwVmMemSize']/1024) . " GB</td>");
|
2011-03-26 17:16:09 +00:00
|
|
|
} else {
|
2011-04-20 16:48:33 +00:00
|
|
|
echo("<td class=list>" . sprintf("%.2f",$vm['vmwVmMemSize']) . " MB</td>");
|
2011-03-26 17:16:09 +00:00
|
|
|
}
|
|
|
|
|
2011-04-06 15:25:35 +00:00
|
|
|
echo('<td class="list">' . $vm['vmwVmCpus'] . " CPU</td>");
|
2011-03-26 17:16:09 +00:00
|
|
|
|
|
|
|
?>
|