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

Diff of /misc/xenconsole/index.php

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

misc/xenconsole/webadmin.php revision 1878 by torben, Fri Nov 30 08:44:57 2012 UTC misc/xenconsole/index.php revision 2030 by torben, Tue Jul 23 21:03:32 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            $('#server_memory_usage').progressbar( );
87            $('#server_cpu_usage').progressbar( );
88    
89            $('#logo').click( function() {
90                    refreshData();
91            });
92    
93            $('.settings').click( function(event) {
94                    menu_uuid = $(this).attr('uuid');
95    
96                    $('#menu').menu( {
97                            select: function(event2,ui) {
98                                            var action = $(ui.item).attr("action");
99                                            if (action == "memory") {
100                                                    doAction("setMemory", menu_uuid, "");  
101                                            }
102                                            if (action == "cpu") {
103                                                    doAction("setCPU", menu_uuid, "");      
104                                            }
105                                    },
106                            create: function(event3,ui) {
107                                    menu = 1;
108                                    }
109                            /*position: {
110                                    my: "left", of: event
111                            }*/
112                    });
113                    $('#menu').show().position( {my: "left top", of: event} );
114                    event.stopPropagation();
115            });
116    
117            $('.cd').click( function(event) {
118                    var uuid = $(this).attr('uuid');
119                    cdSelectorDialog(uuid);
120            });
121            $('#loginlink').click( function(event) {
122                    loginDialog();
123            });
124    
125            $(document).click( function(event) {
126                    closeMenu();
127            });
128            $('#dialog-login').keypress(function(e) {
129            if (e.keyCode == $.ui.keyCode.ENTER) {
130                            loginDialogSubmit();
131            }
132            });
133  });  });
134    
135  function doAction(action, uuid) {  function loginDialog() {
136          var key = prompt("Key");          $('#dialog-login').dialog({
137          if (key == "" || key == null) {                  modal: true,
138                    height: 210,
139                    width: 350,
140                    buttons: {
141                            Login: loginDialogSubmit
142                    }
143            });
144    }
145    function loginDialogSubmit() {
146            var params = $('#loginform').serialize();
147    
148            $.get('login.php?' + params, function(data) {
149                    if (data == "OK") {
150                            loggedin = true;
151                            username = $('#username').val();
152                            password = $('#password').val();
153    
154                            $('#login').html("Logged in as <i>" + username + "</i>");
155                            refreshData();
156                    } else {
157                            alert(data);
158                    }
159                    $("#dialog-login").dialog( "close" );
160            });
161    }
162    
163    function cdSelectorDialog(uuid) {
164            if (isLoggedIn() == false)
165                  return;                  return;
166    
167            $('#cdselector').html('');
168            $('#cdselector').load( 'getisolist.php' );
169            var cddata;
170    
171            $.getJSON('getcdinfo.php?uuid=' + uuid, function(data) {
172                    cddata = data;
173                    if (data.ISO != '') {
174                            $('#cdcurrent').html(  data.ISO );
175                            $(":button:contains('Mount')").prop("disabled", true).addClass("ui-state-disabled");
176                    } else {
177                            $('#cdcurrent').html('<i>No ISO currently mounted</i>');
178                            $(":button:contains('Eject')").prop("disabled", true).addClass("ui-state-disabled");
179                    }
180            });
181            
182            $('#dialog-cd').dialog({
183                    modal: true,
184                    width: 800,
185                    height: 300,
186                    buttons: {
187                            Mount: function() {
188                                    $( this ).dialog( "close" );
189                                    var vdi = $("#cdselector").val();
190                                    cdAction("mount", cddata.VBD, vdi);
191                            },
192                            Eject: function() {
193                                    $( this ).dialog( "close" );
194                                    cdAction("eject", cddata.VBD, "");
195                            },
196                            Cancel: function() {
197                                    $( this ).dialog( "close" );
198                            }
199                            
200                    }
201            });
202    }
203    
204    function closeMenu() {
205            if (menu > 0) {
206                    $("#menu").menu("destroy").hide();
207                    menu = 0;
208          }          }
209    }
210    
211    function refreshData() {
212            $("#logo").hide();      
213            $.get('ajaxdata.php', function(xml) {
214                    $(xml).find('host').each(function() {
215                            var memtotal = $(this).find('memtotal').text();
216                            var memfree = $(this).find('memfree').text();  
217                            var cpuavg = $(this).find('cpuavg').text() * 1; // *1 is used to convert the string var to an int
218    
219                            memtotal = Math.round ( memtotal / (1024*1024) );
220                            memfree = Math.round ( memfree / (1024*1024) );
221                            var memused = memtotal - memfree;
222                            var mem_percentage = Math.round( (memused/memtotal) * 100);
223    
224                            //alert(memused + ' ' + mem_percentage);
225    
226                            //$('#server_memory_usage').attr('src', 'usagebar.php?usage=' + mem_percentage);
227                            $('#server_memory_usage').progressbar( "value", mem_percentage );
228                            $('#server_memory_usage').attr('alt', mem_percentage + '%');
229                            $('#server_memory_usage').attr('title', mem_percentage + '%');
230                            $('#server_memory_usage_txt').text( memused + '/' + memtotal + 'MB');
231    
232    
233                            //$('#server_cpu_usage').attr('src', 'usagebar.php?usage=' + cpuavg);
234                            $('#server_cpu_usage').progressbar( "value", cpuavg );
235                            $('#server_cpu_usage').attr('alt', cpuavg + '%');
236                            $('#server_cpu_usage').attr('title', cpuavg + '%');
237                            $('#server_cpu_usage_txt').text( cpuavg+ '%');
238                    });
239                    $(xml).find('vm').each(function() {
240                            var name = $(this).find('name').text();
241                            var state = $(this).find('state').text();
242                            var network = $(this).find('network').text();
243                            var state = $(this).find('state').text();
244                            var conurl = $(this).find('conurl').text();
245                            var session = $(this).find('session').text();
246                            var os = $(this).find('os').text();
247                            var guestversion = $(this).find('guestversion').text();
248                            var cpuavg = $(this).find('cpuavg').text();
249                            var curmem = $(this).find('curmem').text();
250                            var maxmem = $(this).find('maxmem').text();
251                            var cpus = $(this).find('cpus').text();
252    
253                            var mempercent = Math.round( (curmem*100) / maxmem );
254    
255                            name = name.replace(/ /g, "_");
256                            name = name.replace(/\./g, "_");
257                            name = name.replace(/\(/g, "_");
258                            name = name.replace(/\)/g, "_");
259                            
260                            var id = "#vm_" + name;
261    
262                            var vm = $(id);                
263    
264                            if (guestversion != '') {
265                                    os += ' Guest Tools: ' + guestversion;
266                            }
267    
268                            vm.find('.vps_memory_usage_txt_UID').text( maxmem + " MB");
269                            vm.find('.vps_cpu_usage_txt_UID').text( cpus + " VCPU");
270    
271                            if (state == "Running") {
272                                    vm.find('.state').css("background-image", "url('gfx/vps_topgreen.png')");
273                                    vm.find('.network').show();
274                                    vm.find('.network').text( '(IP: ' + network + ')' );
275                                    vm.find('.console').show();
276                                    vm.find('.console').data('conurl', conurl);
277                                    vm.find('.console').data('session', session);
278                                    vm.find('.console').data('name', name);
279                                    vm.find('.settings').hide();
280                                    if (loggedin) {
281                                            vm.find('.actionstop').show();
282                                            vm.find('.actionstart').hide();
283                                    }
284                                    vm.find('.os').text(' - ' + os);
285    
286    
287                                    vm.find('.cpu_graph').show();
288                                    vm.find('.cpu_graph').attr('src', 'usagebar.php?usage=' + cpuavg);
289                                    vm.find('.cpu_graph').attr('title',  cpuavg + '%');
290    
291                                    vm.find('.mem_graph').show();
292                                    vm.find('.mem_graph').attr('src', 'usagebar.php?usage=' + mempercent);
293                                    vm.find('.mem_graph').attr('title',  curmem + ' / ' + maxmem + ' MB' );
294                            } else {
295                                    if (state == "Halted") {
296                                            vm.find('.state').css("background-image", "url('gfx/vps_topred.png')");
297                                    } else {
298                                            vm.find('.state').css("background-image", "url('gfx/vps_topyellow.png')");
299                                    }
300                                    vm.find('.os').text('');
301    
302                                    vm.find('.network').hide();
303                                    vm.find('.console').hide();
304                                    vm.find('.settings').show();
305                                    if (loggedin) {
306                                            vm.find('.actionstop').hide();
307                                            vm.find('.actionstart').show();
308                                    }
309                                    vm.find('.cpu_graph').hide();
310                                    vm.find('.mem_graph').hide();
311                            }
312                            
313                    });
314                    $('#logo').show();
315           });
316    }
317    
318    function doAction(action, uuid, vm) {
319            var val="";
320    
321            if (isLoggedIn() == false)
322                    return;
323    
324          document.body.style.cursor = 'wait';          document.body.style.cursor = 'wait';
325            $('#vm_' + vm).find('.state').css("background-image", "url('gfx/vps_topyellow.png')");
326    
327            if (action == "setMemory") {
328                    val = prompt("Set memory target");
329                    val *= (1024*1024);
330                    if (val == "" || val == null) {
331                            return;
332                    }
333            }
334            if (action == "setCPU") {
335                    val = prompt("Set CPU count");
336                    if (val == "" || val == null) {
337                            return;
338                    }
339            }
340    
341          var url = "action.php?action=" + action + "&uuid=" + uuid + "&key=" + key;          var url = "action.php?action=" + action + "&uuid=" + uuid + "&key=" + password + "&val=" + val;;
342          var response = $.get(url, function(data) {          var response = $.get(url, function(data) {
343                  alert(data);                  if (data != 'OK') {
344                            alert(data);
345                    }
346                  document.body.style.cursor = 'default'                  document.body.style.cursor = 'default'
347                  if (data == "OK") {  
348                          window.location.reload();                  refreshData();
349            });
350    }
351    
352    function cdAction(action, vbd,vdi) {
353            if (isLoggedIn() == false)
354                    return;
355    
356            document.body.style.cursor = 'wait';
357            var url = "cdaction.php?action=" + action + "&VBD=" + vbd + "&key=" + password + "&VDI=" + vdi;
358            var response = $.get(url, function(data) {
359                    if (data != 'OK') {
360                            alert(data);
361                  }                  }
362                    document.body.style.cursor = 'default'
363          });          });
364            
365  }  }
366    
367  function console(url, session) {  function openConsole(url, session, name) {
368          if (url == '')          if (url == '')
369                  return;                  return;
370    
371          var key = prompt("Key");          if (isLoggedIn() == false)
         if (key == "" || key == null) {  
372                  return;                  return;
373          }  
374          var url = "console.php?url=" + url + "&session=" + session + "&key=" + key;          var url = "console.php?url=" + url + "&session=" + session + "&key=" + password + "&name=" + name;
375    
376          //window.location = url;          //window.location = url;
377          //$('#mainwindow').load(url);          //$('#mainwindow').load(url);
378          window.open(url);          window.open(url);
379  }  }
380    
 function loadServer() {  
         $('#mainwindow').load('server.php');  
 }  
381    
 function loadvm(uuid) {  
         $('#mainwindow').load('vm.php?uuid=' + uuid );  
 }  
382    
383  </script>  </script>
384    
# Line 114  body { Line 412  body {
412          margin: 4;          margin: 4;
413          border: 1px solid #222;          border: 1px solid #222;
414  }  }
415    
416    .ui-progressbar-value {
417            background: #61B4F3;
418    }
419    
420    .bar {
421            width:  102px;
422            height:  16px;
423    }
424    
425  </style>  </style>
426  </head>  </head>
427  <body>  <body>
# Line 122  body { Line 430  body {
430    
431  <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'>
432  <tr>  <tr>
433          <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>
434          <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>
435  </tr>  </tr>
436  <tr>  <tr>
437          <td width='150' align='right' class='small'><img src='gfx/icon-cpu.png'>  <td width='150'>
438                  <img id='server_cpu_usage' src='usagebar.php?usage=12' width='102' height='16'><div id='server_cpu_usage_txt'>12%</div></td>          <span id="login" class='small'><i>Not <a href="#" id="loginlink">logged in</a></i>
439            </span>
440    </td>
441    <td width='150'></td>
442            <td width='150' align='right' class='small'>
443            <div id='server_cpu_usage' class='bar'></div>
444                    <img src='gfx/icon-cpu.png'>
445                    <span id='server_cpu_usage_txt'>12%</span>
446            </td>
447    
448            <td width='150' align='right' class='small'>
449            <div id='server_memory_usage' class='bar'></div>
450                    <img src='gfx/icon-memory.png'>
451                    <span id='server_memory_usage_txt'>0/4 MB</span>
452        </td>
453  <!--  <!--
         <td width='150' align='right' class='small'><img src='gfx/icon-memory.png'>  
                 <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>  
 -->  
454          <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'>
455                  <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>
456          <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'>
457                  <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>
   
458          </td>          </td>
459    -->
460  </tr></table>  </tr></table>
461    
462    
# Line 150  foreach($vms_array as $vm) { Line 469  foreach($vms_array as $vm) {
469          }          }
470    
471          $name = $vm["name_label"];          $name = $vm["name_label"];
472            $description = $vm["name_description"];
473          $uuid = $vm["uuid"];          $uuid = $vm["uuid"];
474          $state = $vm["power_state"] ;          $state = $vm["power_state"] ;
475          $memory = $vm['memory_target'];          $memory = $vm['memory_target'];
476          $harddrive_size = 0;          $harddrive_size = 0;
477          $cpu_count = $vm["VCPUs_max"];          $cpu_count = $vm["VCPUs_max"];
478    
479            $clean_name = str_replace(" ", "_", $name);
480            $clean_name = str_replace(".", "_", $clean_name);
481            $clean_name = str_replace("(", "_", $clean_name);
482            $clean_name = str_replace(")", "_", $clean_name);
483            
484    
485          foreach ($vm["VBDs"] as $vbds) {          foreach ($vm["VBDs"] as $vbds) {
486                  $vbd = $xenserver->VBD__get_record($vbds);                  $vbd = $xenserver->VBD__get_record($vbds);
487                  if ($vbd["type"] == 'Disk') {                  if ($vbd["type"] == 'Disk') {
# Line 164  foreach($vms_array as $vm) { Line 490  foreach($vms_array as $vm) {
490                  }                  }
491          }          }
492    
         $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();  
                 }  
         }  
   
493    
494            
 //      echo "<a href='#' onclick=\"loadvm('$uuid');\">$name</a><br>\n";  
495  ?>  ?>
496          <!-- MACHINE -->          <!-- MACHINE -->
497          <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;?>'>
498                  <tr background='gfx/vps_topbg.png'>                  <tr background='gfx/vps_topbg.png'  >
499                          <td width='10' background='gfx/<?php echo $vps_topbg; ?>' class='small'>&nbsp;</td>                          <td width='10' class='small state'>&nbsp;</td>
500                          <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>
501                          <td colspan='2' class='small' align='right'>                          <td colspan='2' class='small' align='right'>
502                                  (IP: 192.168.10.45, 172.10.0.34)                                  <span class='network'></span>
503                                  <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;?>' >
504                                            <img src='gfx/icon-cd.gif' style='vertical-align: middle;'></a>
505                                    <a href='#' style='display:none;' class='console'>
506                                            <img src='gfx/icon-terminal.png' style='vertical-align: middle;'>
507                                    </a>
508    
509                                    <a href='#' style='display:none;' class='settings' uuid='<?php echo $uuid;?>'>
510                                            <img src='gfx/icon-settings16.png' style='vertical-align: middle;'>
511                                    </a>
512                          </td>                          </td>
513                  </tr>                  </tr>
514    
515                  <tr bgcolor='#eee'>                  <tr bgcolor='#eee'>
516                  <td></td>                  <td></td>
517    
518                          <td width='150' class='small'>start stop force</td>                  <td width='150' class='small'>
519                            <span class="actionstop" style='display:none'>
520                                    start |
521                                    <a href='#' onclick="doAction('shutdown','<?php echo $uuid;?>','<?php echo $clean_name;?>')" >stop</a> |
522                                    <a href='#' onclick="doAction('hardshutdown','<?php echo $uuid;?>','<?php echo $clean_name;?>')" >force shutdown</a>
523                            </span>
524                            
525                            <span class="actionstart" style='display:none'>                
526                                    <a href='#' onclick="doAction('start','<?php echo $uuid;?>','<?php echo $clean_name;?>')" >start</a> |
527                                    stop |
528                                    force shutdown
529                            </span>
530    
531                  <td width='100' align='right' class='small'>                  </td>
532    
533                    <td width='100' align='right' class='small' valign='top'>
534                            <img src='usagebar.php?usage=1' width='102' height='16' title='static dummy data' class='cpu_graph'><br>
535                          <img src='gfx/icon-cpu.png' style='vertical-align: middle;'>                          <img src='gfx/icon-cpu.png' style='vertical-align: middle;'>
536                          <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>
537                  </td>                  </td>
538                  <td width='100' align='right' class='small'>                  <td width='100' align='right' class='small'>
539                            <img src='usagebar.php?usage=1' width='102' height='16' title='static dummy data' class='mem_graph'><br>
540                          <img src='gfx/icon-memory.png' style='vertical-align: middle;'>                          <img src='gfx/icon-memory.png' style='vertical-align: middle;'>
541                          <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>
542                  </td>                  </td>
543  <!--  <!--
544                  <td width='100' align='right' class='small'>                  <td width='100' align='right' class='small'>
# Line 218  foreach($vms_array as $vm) { Line 546  foreach($vms_array as $vm) {
546                          <span id='vps_net_usage_txt_UID'>na</span>                          <span id='vps_net_usage_txt_UID'>na</span>
547                  </td>                  </td>
548  -->  -->
549                  <td width='100' align='right' class='small'>                  <td width='100' align='right' class='small' valign='bottom'>
550                          <img src='gfx/icon-disk.png' style='vertical-align: middle;'>                          <img src='gfx/icon-disk.png' style='vertical-align: middle;'>
551                          <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>
552                  </td>                  </td>
553                  </tr>                  </tr>
554                    
555    
556          </table>          </table>
557          <!-- MACHINE END -->          <!-- MACHINE END -->
558    
559  <?PHP } ?>  <?PHP } ?>
560  </td></tr></table>  </td></tr></table>
561    
562    <br>
563    
564    <div style="display: none;">
565    
566    <div id="dialog-login" title="Login">
567            <form id="loginform">
568            <table border="0">
569                    <tr>
570                            <td>Username: </td>
571                            <td><input type="text" id="username" name="username"></td>
572                    <tr>
573                    <tr>
574                            <td>Password: </td>
575                            <td><input type="password" id="password" name="password"></td>
576                    </tr>
577            </table>
578            </form>
579    </div>
580    
581    <div id="dialog-cd" title="Select CD">
582    
583            <table border=0>
584                    <tr>
585                            <td>Current: <span id="cdcurrent"></span></td>
586                    </tr>
587                    <tr>
588                            <td>
589                                    CD: <select id="cdselector"></select>
590                            </td>
591                    </tr>
592            </table>
593    </div>
594    
595    </div>
596    
597    <ul id="menu">
598            <li action="memory"><a href="#">Set Memory Size</a></li>
599            <li action="cpu"><a href="#">Set CPU Count</a></li>
600    
601    
602    <!--    <li><a href="#">Item 3</a>
603                    <ul>
604                            <li><a href="#">Item 3-1</a></li>
605                            <li><a href="#">Item 3-2</a></li>
606                            <li><a href="#">Item 3-3</a></li>
607                            <li><a href="#">Item 3-4</a></li>
608                            <li><a href="#">Item 3-5</a></li>
609                    </ul>
610            </li>
611            <li><a href="#">Item 4</a></li>
612            <li><a href="#">Item 5</a></li>-->
613    </ul>
614    
615  </body></html>  </body></html>
616    

Legend:
Removed from v.1878  
changed lines
  Added in v.2030

  ViewVC Help
Powered by ViewVC 1.1.20