/[projects]/misc/xenconsole/index.php
ViewVC logotype

Diff of /misc/xenconsole/index.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1880 by torben, Fri Nov 30 08:55:07 2012 UTC revision 2028 by torben, Tue Jul 23 15:30:12 2013 UTC
# Line 1  Line 1 
1  <?php  <?php
2  include("config.php");  require("config.php");
3    
4  function format_memory($size) {  function format_memory($size) {
5    if (1024 > $size) {    if (1024 > $size) {
# Line 28  include('xenapi.php'); Line 28  include('xenapi.php');
28  /* Establish session with Xenserver */  /* Establish session with Xenserver */
29  $xenserver = new XenApi($url, $login, $password);  $xenserver = new XenApi($url, $login, $password);
30    
31    $hosts_array = $xenserver->host__get_all();
32    $host = $xenserver->host__get_record($hosts_array[0]);
33    $host_metrics = $xenserver->host_metrics__get_record($host["metrics"]);
34    
35    $xenversion = $host["software_version"]["product_brand"] . " " . $host["software_version"]["product_version"];
36    $xenversion .= " / Linux:" . $host["software_version"]["linux"] . " / xen: " . $host["software_version"]["xen"] . " / xapi: " . $host["software_version"]["xapi"] ;
37    
38    $expire = split('T', $host["license_params"]["expiry"]);
39    $license = "License: " . $host["license_params"]["sku_type"] . ", expires " . $expire[0] ;
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>  
50    <link rel="stylesheet" type="text/css" href="jquery/theme/jquery-ui.css">
51    <style>
52    .ui-menu {
53            width: 200px;
54    }
55    </style>
56    <script type='text/javascript' src="jquery/jquery-1.9.1.min.js"></script>
57    <script type='text/javascript' src="jquery/jquery-ui-1.10.2.min.js"></script>
58    
59  <script type='text/javascript'>  <script type='text/javascript'>
60    var menu = 0;
61    var menu_uuid = '';
62    
63    var user = "";
64    var password = "";
65    var loggedin = false;
66    
67    function isLoggedIn() {
68            if (loggedin == false) {
69                    alert("You need to login to perform this operation");
70            }
71            return loggedin;
72    }
73    
74    
75  $(document).ready( function() {  $(document).ready( function() {
76          loadServer();          $("#menu").hide();
77            setInterval(refreshData, 60000);        
78            refreshData();
79            $('.console').click( function() {
80                    var session = $(this).data('session');
81                    var conurl = $(this).data('conurl');
82                    var name = $(this).data('name');
83                    openConsole(conurl,session,name);
84            });
85    
86            $('#logo').click( function() {
87                    refreshData();
88            });
89    
90            $('.settings').click( function(event) {
91                    menu_uuid = $(this).attr('uuid');
92    
93                    $('#menu').menu( {
94                            select: function(event2,ui) {
95                                            var action = $(ui.item).attr("action");
96                                            if (action == "memory") {
97                                                    doAction("setMemory", menu_uuid, "");  
98                                            }
99                                            if (action == "cpu") {
100                                                    doAction("setCPU", menu_uuid, "");      
101                                            }
102                                    },
103                            create: function(event3,ui) {
104                                    menu = 1;
105                                    }
106                            /*position: {
107                                    my: "left", of: event
108                            }*/
109                    });
110                    $('#menu').show().position( {my: "left top", of: event} );
111                    event.stopPropagation();
112            });
113    
114            $('.cd').click( function(event) {
115                    var uuid = $(this).attr('uuid');
116                    cdSelectorDialog(uuid);
117            });
118            $('#loginlink').click( function(event) {
119                    loginDialog();
120            });
121    
122            $(document).click( function(event) {
123                    closeMenu();
124            });
125            $('#dialog-login').keypress(function(e) {
126            if (e.keyCode == $.ui.keyCode.ENTER) {
127                            loginDialogSubmit();
128            }
129            });
130  });  });
131    
132  function doAction(action, uuid) {  function loginDialog() {
133          var key = prompt("Key");          $('#dialog-login').dialog({
134          if (key == "" || key == null) {                  modal: true,
135                    height: 210,
136                    width: 350,
137                    buttons: {
138                            Login: loginDialogSubmit
139                    }
140            });
141    }
142    function loginDialogSubmit() {
143            var params = $('#loginform').serialize();
144    
145            $.get('login.php?' + params, function(data) {
146                    if (data == "OK") {
147                            loggedin = true;
148                            username = $('#username').val();
149                            password = $('#password').val();
150    
151                            $('#login').html("Logged in as <i>" + username + "</i>");
152                            refreshData();
153                    } else {
154                            alert(data);
155                    }
156                    $("#dialog-login").dialog( "close" );
157            });
158    }
159    
160    function cdSelectorDialog(uuid) {
161            if (isLoggedIn() == false)
162                  return;                  return;
163    
164            $('#cdselector').html('');
165            $('#cdselector').load( 'getisolist.php' );
166            var cddata;
167    
168            $.getJSON('getcdinfo.php?uuid=' + uuid, function(data) {
169                    cddata = data;
170                    if (data.ISO != '') {
171                            $('#cdcurrent').html(  data.ISO );
172                            $(":button:contains('Mount')").prop("disabled", true).addClass("ui-state-disabled");
173                    } else {
174                            $('#cdcurrent').html('<i>No ISO currently mounted</i>');
175                            $(":button:contains('Eject')").prop("disabled", true).addClass("ui-state-disabled");
176                    }
177            });
178            
179            $('#dialog-cd').dialog({
180                    modal: true,
181                    width: 800,
182                    height: 300,
183                    buttons: {
184                            Mount: function() {
185                                    $( this ).dialog( "close" );
186                                    var vdi = $("#cdselector").val();
187                                    cdAction("mount", cddata.VBD, vdi);
188                            },
189                            Eject: function() {
190                                    $( this ).dialog( "close" );
191                                    cdAction("eject", cddata.VBD, "");
192                            },
193                            Cancel: function() {
194                                    $( this ).dialog( "close" );
195                            }
196                            
197                    }
198            });
199    }
200    
201    function closeMenu() {
202            if (menu > 0) {
203                    $("#menu").menu("destroy").hide();
204                    menu = 0;
205          }          }
206    }
207    
208    function refreshData() {
209            $("#logo").hide();      
210            $.get('ajaxdata.php', function(xml) {
211                    $(xml).find('host').each(function() {
212                            var memtotal = $(this).find('memtotal').text();
213                            var memfree = $(this).find('memfree').text();  
214                            var cpuavg = $(this).find('cpuavg').text();
215    
216                            memtotal = Math.round ( memtotal / (1024*1024) );
217                            memfree = Math.round ( memfree / (1024*1024) );
218                            var memused = memtotal - memfree;
219                            var mem_percentage = Math.round( (memused/memtotal) * 100);
220    
221                            //alert(memused + ' ' + mem_percentage);
222    
223                            $('#server_memory_usage').attr('src', 'usagebar.php?usage=' + mem_percentage);
224                            $('#server_memory_usage').attr('alt', mem_percentage + '%');
225                            $('#server_memory_usage').attr('title', mem_percentage + '%');
226                            $('#server_memory_usage_txt').text( memused + '/' + memtotal + 'MB');
227    
228    
229                            $('#server_cpu_usage').attr('src', 'usagebar.php?usage=' + cpuavg);
230                            $('#server_cpu_usage').attr('alt', cpuavg + '%');
231                            $('#server_cpu_usage').attr('title', cpuavg + '%');
232                            $('#server_cpu_usage_txt').text( cpuavg+ '%');
233                    });
234                    $(xml).find('vm').each(function() {
235                            var name = $(this).find('name').text();
236                            var state = $(this).find('state').text();
237                            var network = $(this).find('network').text();
238                            var state = $(this).find('state').text();
239                            var conurl = $(this).find('conurl').text();
240                            var session = $(this).find('session').text();
241                            var os = $(this).find('os').text();
242                            var guestversion = $(this).find('guestversion').text();
243                            var cpuavg = $(this).find('cpuavg').text();
244                            var curmem = $(this).find('curmem').text();
245                            var maxmem = $(this).find('maxmem').text();
246                            var cpus = $(this).find('cpus').text();
247    
248                            var mempercent = Math.round( (curmem*100) / maxmem );
249    
250                            name = name.replace(/ /g, "_");
251                            name = name.replace(/\./g, "_");
252                            name = name.replace(/\(/g, "_");
253                            name = name.replace(/\)/g, "_");
254                            
255                            var id = "#vm_" + name;
256    
257                            var vm = $(id);                
258    
259                            if (guestversion != '') {
260                                    os += ' Guest Tools: ' + guestversion;
261                            }
262    
263                            vm.find('.vps_memory_usage_txt_UID').text( maxmem + " MB");
264                            vm.find('.vps_cpu_usage_txt_UID').text( cpus + " VCPU");
265    
266                            if (state == "Running") {
267                                    vm.find('.state').css("background-image", "url('gfx/vps_topgreen.png')");
268                                    vm.find('.network').show();
269                                    vm.find('.network').text( '(IP: ' + network + ')' );
270                                    vm.find('.console').show();
271                                    vm.find('.console').data('conurl', conurl);
272                                    vm.find('.console').data('session', session);
273                                    vm.find('.console').data('name', name);
274                                    vm.find('.settings').hide();
275                                    if (loggedin) {
276                                            vm.find('.actionstop').show();
277                                            vm.find('.actionstart').hide();
278                                    }
279                                    vm.find('.os').text(' - ' + os);
280    
281    
282                                    vm.find('.cpu_graph').show();
283                                    vm.find('.cpu_graph').attr('src', 'usagebar.php?usage=' + cpuavg);
284                                    vm.find('.cpu_graph').attr('title',  cpuavg + '%');
285    
286                                    vm.find('.mem_graph').show();
287                                    vm.find('.mem_graph').attr('src', 'usagebar.php?usage=' + mempercent);
288                                    vm.find('.mem_graph').attr('title',  curmem + ' / ' + maxmem + ' MB' );
289                            } else {
290                                    if (state == "Halted") {
291                                            vm.find('.state').css("background-image", "url('gfx/vps_topred.png')");
292                                    } else {
293                                            vm.find('.state').css("background-image", "url('gfx/vps_topyellow.png')");
294                                    }
295                                    vm.find('.os').text('');
296    
297                                    vm.find('.network').hide();
298                                    vm.find('.console').hide();
299                                    vm.find('.settings').show();
300                                    if (loggedin) {
301                                            vm.find('.actionstop').hide();
302                                            vm.find('.actionstart').show();
303                                    }
304                                    vm.find('.cpu_graph').hide();
305                                    vm.find('.mem_graph').hide();
306                            }
307                            
308                    });
309                    $('#logo').show();
310           });
311    }
312    
313    function doAction(action, uuid, vm) {
314            var val="";
315    
316            if (isLoggedIn() == false)
317                    return;
318    
319          document.body.style.cursor = 'wait';          document.body.style.cursor = 'wait';
320            $('#vm_' + vm).find('.state').css("background-image", "url('gfx/vps_topyellow.png')");
321    
322          var url = "action.php?action=" + action + "&uuid=" + uuid + "&key=" + key;          if (action == "setMemory") {
323                    val = prompt("Set memory target");
324                    val *= (1024*1024);
325                    if (val == "" || val == null) {
326                            return;
327                    }
328            }
329            if (action == "setCPU") {
330                    val = prompt("Set CPU count");
331                    if (val == "" || val == null) {
332                            return;
333                    }
334            }
335    
336            var url = "action.php?action=" + action + "&uuid=" + uuid + "&key=" + password + "&val=" + val;;
337          var response = $.get(url, function(data) {          var response = $.get(url, function(data) {
338                  alert(data);                  if (data != 'OK') {
339                            alert(data);
340                    }
341                  document.body.style.cursor = 'default'                  document.body.style.cursor = 'default'
342                  if (data == "OK") {  
343                          window.location.reload();                  refreshData();
344            });
345    }
346    
347    function cdAction(action, vbd,vdi) {
348            if (isLoggedIn() == false)
349                    return;
350    
351            document.body.style.cursor = 'wait';
352            var url = "cdaction.php?action=" + action + "&VBD=" + vbd + "&key=" + password + "&VDI=" + vdi;
353            var response = $.get(url, function(data) {
354                    if (data != 'OK') {
355                            alert(data);
356                  }                  }
357                    document.body.style.cursor = 'default'
358          });          });
359            
360  }  }
361    
362  function console(url, session) {  function openConsole(url, session, name) {
363          if (url == '')          if (url == '')
364                  return;                  return;
365    
366          var key = prompt("Key");          if (isLoggedIn() == false)
         if (key == "" || key == null) {  
367                  return;                  return;
368          }  
369          var url = "console.php?url=" + url + "&session=" + session + "&key=" + key;          var url = "console.php?url=" + url + "&session=" + session + "&key=" + password + "&name=" + name;
370    
371          //window.location = url;          //window.location = url;
372          //$('#mainwindow').load(url);          //$('#mainwindow').load(url);
373          window.open(url);          window.open(url);
374  }  }
375    
 function loadServer() {  
         $('#mainwindow').load('server.php');  
 }  
376    
 function loadvm(uuid) {  
         $('#mainwindow').load('vm.php?uuid=' + uuid );  
 }  
377    
378  </script>  </script>
379    
# Line 122  body { Line 415  body {
415    
416  <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'>
417  <tr>  <tr>
418          <td rowspan='2' width='160'><img src='gfx/citrix-logo.png'></td>          <td rowspan='2' width='160'><img src='gfx/citrix-logo.png' id='logo'></td>
419          <td colspan='3' class='small' align='right'>Linux:2.6.32.12-0.7.1.xs6.0.2.542.170665xen / xen: 4.1.2 / xapi: 1.3</td>          <td colspan='4' class='small' align='right'><?php echo $namelabel . " / " . $xenversion;?><br><?php echo $license;?></td>
420  </tr>  </tr>
421  <tr>  <tr>
422    <td width='150'>
423            <span id="login" class='small'><i>Not <a href="#" id="loginlink">logged in</a></i>
424            </span>
425    </td>
426    <td width='150'></td>
427          <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'>
428                  <img id='server_cpu_usage' src='usagebar.php?usage=12' width='102' height='16'><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>
429  <!--  
430          <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'>
431                  <img id='server_memory_usage' src='usagebar.php?usage=81' width='102' height='16'><div id='server_memory_usage_txt'>4096/7912 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>
432  -->  <!--
433          <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'>
434                  <img id='server_net_usage' src='usagebar.php?usage=41' width='102' height='16'><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>
435          <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'>
436                  <img id='server_disk_usage' src='usagebar.php?usage=41' width='102' height='16'><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>
   
437          </td>          </td>
438    -->
439  </tr></table>  </tr></table>
440    
441    
# Line 150  foreach($vms_array as $vm) { Line 448  foreach($vms_array as $vm) {
448          }          }
449    
450          $name = $vm["name_label"];          $name = $vm["name_label"];
451            $description = $vm["name_description"];
452          $uuid = $vm["uuid"];          $uuid = $vm["uuid"];
453          $state = $vm["power_state"] ;          $state = $vm["power_state"] ;
454          $memory = $vm['memory_target'];          $memory = $vm['memory_target'];
455          $harddrive_size = 0;          $harddrive_size = 0;
456          $cpu_count = $vm["VCPUs_max"];          $cpu_count = $vm["VCPUs_max"];
457    
458            $clean_name = str_replace(" ", "_", $name);
459            $clean_name = str_replace(".", "_", $clean_name);
460            $clean_name = str_replace("(", "_", $clean_name);
461            $clean_name = str_replace(")", "_", $clean_name);
462            
463    
464          foreach ($vm["VBDs"] as $vbds) {          foreach ($vm["VBDs"] as $vbds) {
465                  $vbd = $xenserver->VBD__get_record($vbds);                  $vbd = $xenserver->VBD__get_record($vbds);
466                  if ($vbd["type"] == 'Disk') {                  if ($vbd["type"] == 'Disk') {
# Line 164  foreach($vms_array as $vm) { Line 469  foreach($vms_array as $vm) {
469                  }                  }
470          }          }
471    
         $vps_topbg = 'vps_topyellow.png';  
   
         if ($state == "Running") {  
                 $vps_topbg = 'vps_topgreen.png';  
         } else if ($state == "Halted") {  
                 $vps_topbg = 'vps_topred.png';  
         }  
   
         $url = "";  
         $session = "";  
         foreach($vm["consoles"] as $conref) {  
                 $con = $xenserver->console__get_record( $conref );  
                 //var_dump($con);  
   
                 if ($con["protocol"] == "rfb") {  
                         $url = urlencode( $con["location"] );  
                         $session = $xenserver->get_id();  
                 }  
         }  
   
472    
473            
 //      echo "<a href='#' onclick=\"loadvm('$uuid');\">$name</a><br>\n";  
474  ?>  ?>
475          <!-- MACHINE -->          <!-- MACHINE -->
476          <table width='99%' cellpadding='3' cellspacing='0' border='0' class='vps'>          <table width='99%' cellpadding='3' cellspacing='0' border='0' class='vps' id='vm_<?php echo $clean_name;?>'>
477                  <tr background='gfx/vps_topbg.png'>                  <tr background='gfx/vps_topbg.png'  >
478                          <td width='10' background='gfx/<?php echo $vps_topbg; ?>' class='small'>&nbsp;</td>                          <td width='10' class='small state'>&nbsp;</td>
479                          <td colspan='2' class='small'><b><?php echo $name; ?></b></td>                          <td colspan='2' class='small' title='<?php echo $description;?>'><b><?php echo $name; ?></b><span class='os'></span></td>
480                          <td colspan='2' class='small' align='right'>                          <td colspan='2' class='small' align='right'>
481                                  (IP: 192.168.10.45, 172.10.0.34)                                  <span class='network'></span>
482                                  <a href="#" onclick="console('<?php echo $url;?>','<?php echo $session;?>')"><img src='gfx/icon-terminal.png' style='vertical-align: middle;'></a>                                  <a href='#' class='cd' uuid='<?php echo $uuid;?>' >
483                                            <img src='gfx/icon-cd.gif' style='vertical-align: middle;'></a>
484                                    <a href='#' style='display:none;' class='console'>
485                                            <img src='gfx/icon-terminal.png' style='vertical-align: middle;'>
486                                    </a>
487    
488                                    <a href='#' style='display:none;' class='settings' uuid='<?php echo $uuid;?>'>
489                                            <img src='gfx/icon-settings16.png' style='vertical-align: middle;'>
490                                    </a>
491                          </td>                          </td>
492                  </tr>                  </tr>
493    
# Line 203  foreach($vms_array as $vm) { Line 495  foreach($vms_array as $vm) {
495                  <td></td>                  <td></td>
496    
497                  <td width='150' class='small'>                  <td width='150' class='small'>
498                          <?php                          <span class="actionstop" style='display:none'>
499                          if ($state == "Running") {                                  start |
500                                  echo "start | ";                                  <a href='#' onclick="doAction('shutdown','<?php echo $uuid;?>','<?php echo $clean_name;?>')" >stop</a> |
501                                  echo "<a href='#' onclick=\"doAction('shutdown','$uuid')\">stop</a> | ";                                  <a href='#' onclick="doAction('hardshutdown','<?php echo $uuid;?>','<?php echo $clean_name;?>')" >force shutdown</a>
502                                  echo "<a href='#' onclick=\"doAction('hardshutdown','$uuid')\">force shutdown</a>";                          </span>
503                          } else {                          
504                                  echo "<a href='#' onclick=\"doAction('start','$uuid')\">start</a> | ";                          <span class="actionstart" style='display:none'>                
505                                  echo "stop | ";                                  <a href='#' onclick="doAction('start','<?php echo $uuid;?>','<?php echo $clean_name;?>')" >start</a> |
506                                  echo "force shutdown";                                  stop |
507                          }                                  force shutdown
508                          ?>                          </span>
509    
510                  </td>                  </td>
511    
512                  <td width='100' align='right' class='small'>                  <td width='100' align='right' class='small' valign='top'>
513                            <img src='usagebar.php?usage=1' width='102' height='16' title='static dummy data' class='cpu_graph'><br>
514                          <img src='gfx/icon-cpu.png' style='vertical-align: middle;'>                          <img src='gfx/icon-cpu.png' style='vertical-align: middle;'>
515                          <span id='vps_cpu_usage_txt_UID'><?php echo $cpu_count; ?> VCPU</span>                          <span class='vps_cpu_usage_txt_UID'><?php echo $cpu_count; ?> VCPU</span>
516                  </td>                  </td>
517                  <td width='100' align='right' class='small'>                  <td width='100' align='right' class='small'>
518                            <img src='usagebar.php?usage=1' width='102' height='16' title='static dummy data' class='mem_graph'><br>
519                          <img src='gfx/icon-memory.png' style='vertical-align: middle;'>                          <img src='gfx/icon-memory.png' style='vertical-align: middle;'>
520                          <span id='vps_memory_usage_txt_UID'><?php echo format_memory($memory); ?></span>                          <span class='vps_memory_usage_txt_UID'><?php echo format_memory($memory); ?></span>
521                  </td>                  </td>
522  <!--  <!--
523                  <td width='100' align='right' class='small'>                  <td width='100' align='right' class='small'>
# Line 231  foreach($vms_array as $vm) { Line 525  foreach($vms_array as $vm) {
525                          <span id='vps_net_usage_txt_UID'>na</span>                          <span id='vps_net_usage_txt_UID'>na</span>
526                  </td>                  </td>
527  -->  -->
528                  <td width='100' align='right' class='small'>                  <td width='100' align='right' class='small' valign='bottom'>
529                          <img src='gfx/icon-disk.png' style='vertical-align: middle;'>                          <img src='gfx/icon-disk.png' style='vertical-align: middle;'>
530                          <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>
531                  </td>                  </td>
532                  </tr>                  </tr>
533                    
534    
535          </table>          </table>
536          <!-- MACHINE END -->          <!-- MACHINE END -->
537    
538  <?PHP } ?>  <?PHP } ?>
539  </td></tr></table>  </td></tr></table>
540    
541    <br>
542    
543    <div style="display: none;">
544    
545    <div id="dialog-login" title="Login">
546            <form id="loginform">
547            <table border="0">
548                    <tr>
549                            <td>Username: </td>
550                            <td><input type="text" id="username" name="username"></td>
551                    <tr>
552                    <tr>
553                            <td>Password: </td>
554                            <td><input type="password" id="password" name="password"></td>
555                    </tr>
556            </table>
557            </form>
558    </div>
559    
560    <div id="dialog-cd" title="Select CD">
561    
562            <table border=0>
563                    <tr>
564                            <td>Current: <span id="cdcurrent"></span></td>
565                    </tr>
566                    <tr>
567                            <td>
568                                    CD: <select id="cdselector"></select>
569                            </td>
570                    </tr>
571            </table>
572    </div>
573    
574    </div>
575    
576    <ul id="menu">
577            <li action="memory"><a href="#">Set Memory Size</a></li>
578            <li action="cpu"><a href="#">Set CPU Count</a></li>
579    
580    
581    <!--    <li><a href="#">Item 3</a>
582                    <ul>
583                            <li><a href="#">Item 3-1</a></li>
584                            <li><a href="#">Item 3-2</a></li>
585                            <li><a href="#">Item 3-3</a></li>
586                            <li><a href="#">Item 3-4</a></li>
587                            <li><a href="#">Item 3-5</a></li>
588                    </ul>
589            </li>
590            <li><a href="#">Item 4</a></li>
591            <li><a href="#">Item 5</a></li>-->
592    </ul>
593    
594  </body></html>  </body></html>
595    

Legend:
Removed from v.1880  
changed lines
  Added in v.2028

  ViewVC Help
Powered by ViewVC 1.1.20