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; |
526 |
<span class="actionstop" style='display:none'> |
<span class="actionstop" style='display:none'> |
527 |
start | |
start | |
528 |
<a href='#' onclick="doAction('shutdown','<?php echo $uuid;?>','<?php echo $clean_name;?>')" >stop</a> | |
<a href='#' onclick="doAction('shutdown','<?php echo $uuid;?>','<?php echo $clean_name;?>')" >stop</a> | |
529 |
<a href='#' onclick="doAction('hardshutdown','<?php echo $uuid;?>','<?php echo $clean_name;?>')" >force shutdown</a> |
<a href='#' onclick="doAction('hardshutdown','<?php echo $uuid;?>','<?php echo $clean_name;?>')" >force shutdown</a> | |
530 |
|
<a href='#' onclick="doAction('hardreboot','<?php echo $uuid;?>','<?php echo $clean_name;?>')" >force reboot</a> |
531 |
</span> |
</span> |
532 |
|
|
533 |
<span class="actionstart" style='display:none'> |
<span class="actionstart" style='display:none'> |
539 |
</td> |
</td> |
540 |
|
|
541 |
<td width='100' align='right' class='small' valign='top'> |
<td width='100' align='right' class='small' valign='top'> |
542 |
<img src='usagebar.php?usage=1' width='102' height='16' title='static dummy data' class='cpu_graph'><br> |
<div class='cpu_graph bar'></div> |
543 |
<img src='gfx/icon-cpu.png' style='vertical-align: middle;'> |
<img src='gfx/icon-cpu.png' style='vertical-align: middle;'> |
544 |
<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> |
545 |
</td> |
</td> |
546 |
<td width='100' align='right' class='small'> |
<td width='100' align='right' class='small'> |
547 |
<img src='usagebar.php?usage=1' width='102' height='16' title='static dummy data' class='mem_graph'><br> |
<div class='mem_graph bar'></div> |
548 |
<img src='gfx/icon-memory.png' style='vertical-align: middle;'> |
<img src='gfx/icon-memory.png' style='vertical-align: middle;'> |
549 |
<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> |
550 |
</td> |
</td> |