40 |
|
|
41 |
$vms_array = $xenserver->VM__get_all_records(); |
$vms_array = $xenserver->VM__get_all_records(); |
42 |
|
|
43 |
|
$namelabel = $host["name_label"]; |
44 |
|
|
45 |
?> |
?> |
46 |
<html> |
<html> |
47 |
<head> |
<head> |
48 |
<title>XenServer::SERVER</title> |
<title>XenServer::<?php echo $namelabel;?></title> |
49 |
<script type='text/javascript' src="jquery-1.8.2.min.js"></script> |
<script type='text/javascript' src="jquery-1.8.2.min.js"></script> |
50 |
|
|
51 |
<script type='text/javascript'> |
<script type='text/javascript'> |
64 |
}); |
}); |
65 |
|
|
66 |
function refreshData() { |
function refreshData() { |
67 |
|
$("#logo").hide(); |
68 |
$.get('ajaxdata.php', function(xml) { |
$.get('ajaxdata.php', function(xml) { |
69 |
$(xml).find('host').each(function() { |
$(xml).find('host').each(function() { |
70 |
var memtotal = $(this).find('memtotal').text(); |
var memtotal = $(this).find('memtotal').text(); |
136 |
vm.find('.mem_graph').hide(); |
vm.find('.mem_graph').hide(); |
137 |
} |
} |
138 |
|
|
139 |
}) |
}); |
140 |
|
$('#logo').show(); |
141 |
}); |
}); |
142 |
} |
} |
143 |
|
|
218 |
<table width='100%' background='gfx/topbg.png' cellpadding='3' cellspacing='0' border='0' class='toptable'> |
<table width='100%' background='gfx/topbg.png' cellpadding='3' cellspacing='0' border='0' class='toptable'> |
219 |
<tr> |
<tr> |
220 |
<td rowspan='2' width='160'><img src='gfx/citrix-logo.png' id='logo'></td> |
<td rowspan='2' width='160'><img src='gfx/citrix-logo.png' id='logo'></td> |
221 |
<td colspan='4' class='small' align='right'><?php echo $xenversion;?><br><?php echo $license;?></td> |
<td colspan='4' class='small' align='right'><?php echo $namelabel . " / " . $xenversion;?><br><?php echo $license;?></td> |
222 |
</tr> |
</tr> |
223 |
<tr> |
<tr> |
224 |
<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'> |