55 |
$('.console').click( function() { |
$('.console').click( function() { |
56 |
var session = $(this).data('session'); |
var session = $(this).data('session'); |
57 |
var conurl = $(this).data('conurl'); |
var conurl = $(this).data('conurl'); |
58 |
console(conurl,session); |
var name = $(this).data('name'); |
59 |
|
console(conurl,session,name); |
60 |
}); |
}); |
61 |
|
|
62 |
$('#logo').click( function() { |
$('#logo').click( function() { |
123 |
vm.find('.console').show(); |
vm.find('.console').show(); |
124 |
vm.find('.console').data('conurl', conurl); |
vm.find('.console').data('conurl', conurl); |
125 |
vm.find('.console').data('session', session); |
vm.find('.console').data('session', session); |
126 |
|
vm.find('.console').data('name', name); |
127 |
vm.find('.actionstop').show(); |
vm.find('.actionstop').show(); |
128 |
vm.find('.actionstart').hide(); |
vm.find('.actionstart').hide(); |
129 |
vm.find('.os').text(' - ' + os); |
vm.find('.os').text(' - ' + os); |
176 |
}); |
}); |
177 |
} |
} |
178 |
|
|
179 |
function console(url, session) { |
function console(url, session, name) { |
180 |
if (url == '') |
if (url == '') |
181 |
return; |
return; |
182 |
|
|
184 |
if (key == "" || key == null) { |
if (key == "" || key == null) { |
185 |
return; |
return; |
186 |
} |
} |
187 |
var url = "console.php?url=" + url + "&session=" + session + "&key=" + key; |
var url = "console.php?url=" + url + "&session=" + session + "&key=" + key + "&name=" + name; |
188 |
|
|
189 |
//window.location = url; |
//window.location = url; |
190 |
//$('#mainwindow').load(url); |
//$('#mainwindow').load(url); |
237 |
<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> |
238 |
</tr> |
</tr> |
239 |
<tr> |
<tr> |
240 |
|
<td width='150'></td> |
241 |
|
<td width='150'></td> |
242 |
<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'> |
243 |
<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> |
244 |
|
|
245 |
<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'> |
246 |
<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> |
247 |
|
<!-- |
248 |
<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'> |
249 |
<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> |
250 |
<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'> |
251 |
<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> |
|
|
|
252 |
</td> |
</td> |
253 |
|
--> |
254 |
</tr></table> |
</tr></table> |
255 |
|
|
256 |
|
|