97 |
var conurl = $(this).find('conurl').text(); |
var conurl = $(this).find('conurl').text(); |
98 |
var session = $(this).find('session').text(); |
var session = $(this).find('session').text(); |
99 |
var os = $(this).find('os').text(); |
var os = $(this).find('os').text(); |
100 |
|
var guestversion = $(this).find('guestversion').text(); |
101 |
var cpuavg = $(this).find('cpuavg').text(); |
var cpuavg = $(this).find('cpuavg').text(); |
102 |
var curmem = $(this).find('curmem').text(); |
var curmem = $(this).find('curmem').text(); |
103 |
var maxmem = $(this).find('maxmem').text(); |
var maxmem = $(this).find('maxmem').text(); |
111 |
|
|
112 |
var vm = $(id); |
var vm = $(id); |
113 |
|
|
114 |
|
if (guestversion != '') { |
115 |
|
os += ' Guest Tools: ' + guestversion; |
116 |
|
} |
117 |
|
|
118 |
if (state == "Running") { |
if (state == "Running") { |
119 |
vm.find('.state').css("background-image", "url('gfx/vps_topgreen.png')"); |
vm.find('.state').css("background-image", "url('gfx/vps_topgreen.png')"); |
120 |
vm.find('.network').show(); |
vm.find('.network').show(); |
140 |
} else { |
} else { |
141 |
vm.find('.state').css("background-image", "url('gfx/vps_topyellow.png')"); |
vm.find('.state').css("background-image", "url('gfx/vps_topyellow.png')"); |
142 |
} |
} |
143 |
|
vm.find('.os').text(''); |
144 |
|
|
145 |
vm.find('.network').hide(); |
vm.find('.network').hide(); |
146 |
vm.find('.console').hide(); |
vm.find('.console').hide(); |
147 |
vm.find('.actionstop').hide(); |
vm.find('.actionstop').hide(); |
235 |
<td colspan='4' class='small' align='right'><?php echo $namelabel . " / " . $xenversion;?><br><?php echo $license;?></td> |
<td colspan='4' class='small' align='right'><?php echo $namelabel . " / " . $xenversion;?><br><?php echo $license;?></td> |
236 |
</tr> |
</tr> |
237 |
<tr> |
<tr> |
238 |
|
<td width='150'></td> |
239 |
|
<td width='150'></td> |
240 |
<td width='150' align='right' class='small'><img src='gfx/icon-cpu.png'> |
<td width='150' align='right' class='small'><img src='gfx/icon-cpu.png'> |
241 |
<img id='server_cpu_usage' src='usagebar.php?usage=12' width='102' height='16' title='static dummy data'><div id='server_cpu_usage_txt'>12%</div></td> |
<img id='server_cpu_usage' src='usagebar.php?usage=12' width='102' height='16' title='static dummy data'><div id='server_cpu_usage_txt'>12%</div></td> |
242 |
|
|
243 |
<td width='150' align='right' class='small'><img src='gfx/icon-memory.png'> |
<td width='150' align='right' class='small'><img src='gfx/icon-memory.png'> |
244 |
<img id='server_memory_usage' src='usagebar.php?usage=1' width='102' height='16' title='static dummy data'><div id='server_memory_usage_txt'>0/4 MB</div></td> |
<img id='server_memory_usage' src='usagebar.php?usage=1' width='102' height='16' title='static dummy data'><div id='server_memory_usage_txt'>0/4 MB</div></td> |
245 |
|
<!-- |
246 |
<td width='150' align='right' class='small'><img src='gfx/icon-network.png'> |
<td width='150' align='right' class='small'><img src='gfx/icon-network.png'> |
247 |
<img id='server_net_usage' src='usagebar.php?usage=41' width='102' height='16' title='static dummy data'><div id='server_net_usage_txt'>1%</div></td> |
<img id='server_net_usage' src='usagebar.php?usage=41' width='102' height='16' title='static dummy data'><div id='server_net_usage_txt'>1%</div></td> |
248 |
<td width='150' align='right' class='small'><img src='gfx/icon-disk.png'> |
<td width='150' align='right' class='small'><img src='gfx/icon-disk.png'> |
249 |
<img id='server_disk_usage' src='usagebar.php?usage=41' width='102' height='16' title='static dummy data'><div id='server_memory_usage_txt'>89.3/405.5 GB</div></td> |
<img id='server_disk_usage' src='usagebar.php?usage=41' width='102' height='16' title='static dummy data'><div id='server_memory_usage_txt'>89.3/405.5 GB</div></td> |
|
|
|
250 |
</td> |
</td> |
251 |
|
--> |
252 |
</tr></table> |
</tr></table> |
253 |
|
|
254 |
|
|
261 |
} |
} |
262 |
|
|
263 |
$name = $vm["name_label"]; |
$name = $vm["name_label"]; |
264 |
|
$description = $vm["name_description"]; |
265 |
$uuid = $vm["uuid"]; |
$uuid = $vm["uuid"]; |
266 |
$state = $vm["power_state"] ; |
$state = $vm["power_state"] ; |
267 |
$memory = $vm['memory_target']; |
$memory = $vm['memory_target']; |
287 |
<table width='99%' cellpadding='3' cellspacing='0' border='0' class='vps' id='vm_<?php echo $clean_name;?>'> |
<table width='99%' cellpadding='3' cellspacing='0' border='0' class='vps' id='vm_<?php echo $clean_name;?>'> |
288 |
<tr background='gfx/vps_topbg.png' > |
<tr background='gfx/vps_topbg.png' > |
289 |
<td width='10' class='small state'> </td> |
<td width='10' class='small state'> </td> |
290 |
<td colspan='2' class='small'><b><?php echo $name; ?></b><span class='os'></span></td> |
<td colspan='3' class='small' title='<?php echo $description;?>'><b><?php echo $name; ?></b><span class='os'></span></td> |
291 |
<td colspan='2' class='small' align='right'> |
<td colspan='1' class='small' align='right'> |
292 |
<span class='network'></span> |
<span class='network'></span> |
293 |
<a href='#' style='display:none;' class='console'> |
<a href='#' style='display:none;' class='console'> |
294 |
<img src='gfx/icon-terminal.png' style='vertical-align: middle;'> |
<img src='gfx/icon-terminal.png' style='vertical-align: middle;'> |
330 |
<span id='vps_net_usage_txt_UID'>na</span> |
<span id='vps_net_usage_txt_UID'>na</span> |
331 |
</td> |
</td> |
332 |
--> |
--> |
333 |
<td width='100' align='right' class='small' valign='top'> |
<td width='100' align='right' class='small' valign='bottom'> |
334 |
<img src='gfx/icon-disk.png' style='vertical-align: middle;'> |
<img src='gfx/icon-disk.png' style='vertical-align: middle;'> |
335 |
<span id='vps_disk_usage_txt_UID'><?php echo format_storage($harddrive_size); ?></span> |
<span id='vps_disk_usage_txt_UID'><?php echo format_storage($harddrive_size); ?></span> |
336 |
</td> |
</td> |