83 |
openConsole(conurl,session,name); |
openConsole(conurl,session,name); |
84 |
}); |
}); |
85 |
|
|
86 |
$('#server_memory_usage').progressbar( ); |
$('.bar').progressbar( ); |
|
$('#server_cpu_usage').progressbar( ); |
|
87 |
|
|
88 |
$('#logo').click( function() { |
$('#logo').click( function() { |
89 |
refreshData(); |
refreshData(); |
282 |
} |
} |
283 |
vm.find('.os').text(' - ' + os); |
vm.find('.os').text(' - ' + os); |
284 |
|
|
285 |
|
cpuavg = cpuavg * 1; |
286 |
vm.find('.cpu_graph').show(); |
vm.find('.cpu_graph').show(); |
287 |
vm.find('.cpu_graph').attr('src', 'usagebar.php?usage=' + cpuavg); |
//vm.find('.cpu_graph').attr('src', 'usagebar.php?usage=' + cpuavg); |
288 |
|
vm.find('.cpu_graph').progressbar( "value", cpuavg ); |
289 |
vm.find('.cpu_graph').attr('title', cpuavg + '%'); |
vm.find('.cpu_graph').attr('title', cpuavg + '%'); |
290 |
|
|
291 |
vm.find('.mem_graph').show(); |
vm.find('.mem_graph').show(); |
292 |
vm.find('.mem_graph').attr('src', 'usagebar.php?usage=' + mempercent); |
//vm.find('.mem_graph').attr('src', 'usagebar.php?usage=' + mempercent); |
293 |
|
vm.find('.mem_graph').progressbar( "value", mempercent ); |
294 |
vm.find('.mem_graph').attr('title', curmem + ' / ' + maxmem + ' MB' ); |
vm.find('.mem_graph').attr('title', curmem + ' / ' + maxmem + ' MB' ); |
295 |
} else { |
} else { |
296 |
if (state == "Halted") { |
if (state == "Halted") { |
418 |
background: #61B4F3; |
background: #61B4F3; |
419 |
} |
} |
420 |
|
|
421 |
|
.ui-progressbar { |
422 |
|
border-style:solid; |
423 |
|
border-width:1px; |
424 |
|
border-color: #666666; |
425 |
|
} |
426 |
|
|
427 |
.bar { |
.bar { |
428 |
width: 102px; |
width: 102px; |
429 |
height: 16px; |
height: 16px; |
538 |
</td> |
</td> |
539 |
|
|
540 |
<td width='100' align='right' class='small' valign='top'> |
<td width='100' align='right' class='small' valign='top'> |
541 |
<img src='usagebar.php?usage=1' width='102' height='16' title='static dummy data' class='cpu_graph'><br> |
<div class='cpu_graph bar'></div> |
542 |
<img src='gfx/icon-cpu.png' style='vertical-align: middle;'> |
<img src='gfx/icon-cpu.png' style='vertical-align: middle;'> |
543 |
<span class='vps_cpu_usage_txt_UID'><?php echo $cpu_count; ?> VCPU</span> |
<span class='vps_cpu_usage_txt_UID'><?php echo $cpu_count; ?> VCPU</span> |
544 |
</td> |
</td> |
545 |
<td width='100' align='right' class='small'> |
<td width='100' align='right' class='small'> |
546 |
<img src='usagebar.php?usage=1' width='102' height='16' title='static dummy data' class='mem_graph'><br> |
<div class='mem_graph bar'></div> |
547 |
<img src='gfx/icon-memory.png' style='vertical-align: middle;'> |
<img src='gfx/icon-memory.png' style='vertical-align: middle;'> |
548 |
<span class='vps_memory_usage_txt_UID'><?php echo format_memory($memory); ?></span> |
<span class='vps_memory_usage_txt_UID'><?php echo format_memory($memory); ?></span> |
549 |
</td> |
</td> |