/[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 1897 by torben, Mon Dec 10 12:32:50 2012 UTC revision 1903 by torben, Tue Dec 11 10:18:25 2012 UTC
# Line 140  function refreshData() { Line 140  function refreshData() {
140                                  } else {                                  } else {
141                                          vm.find('.state').css("background-image", "url('gfx/vps_topyellow.png')");                                          vm.find('.state').css("background-image", "url('gfx/vps_topyellow.png')");
142                                  }                                  }
143                                    vm.find('.os').text('');
144    
145                                  vm.find('.network').hide();                                  vm.find('.network').hide();
146                                  vm.find('.console').hide();                                  vm.find('.console').hide();
147                                  vm.find('.actionstop').hide();                                  vm.find('.actionstop').hide();
# Line 233  body { Line 235  body {
235          <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>
236  </tr>  </tr>
237  <tr>  <tr>
238    <td width='150'></td>
239    <td width='150'></td>
240          <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'>
241                  <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>
242    
243          <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'>
244                  <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>
245    <!--
246          <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'>
247                  <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>
248          <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'>
249                  <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>
   
250          </td>          </td>
251    -->
252  </tr></table>  </tr></table>
253    
254    
# Line 257  foreach($vms_array as $vm) { Line 261  foreach($vms_array as $vm) {
261          }          }
262    
263          $name = $vm["name_label"];          $name = $vm["name_label"];
264            $description = $vm["name_description"];
265          $uuid = $vm["uuid"];          $uuid = $vm["uuid"];
266          $state = $vm["power_state"] ;          $state = $vm["power_state"] ;
267          $memory = $vm['memory_target'];          $memory = $vm['memory_target'];
# Line 282  foreach($vms_array as $vm) { Line 287  foreach($vms_array as $vm) {
287          <table width='99%' cellpadding='3' cellspacing='0' border='0' class='vps' id='vm_<?php echo $clean_name;?>'>          <table width='99%' cellpadding='3' cellspacing='0' border='0' class='vps' id='vm_<?php echo $clean_name;?>'>
288                  <tr background='gfx/vps_topbg.png'  >                  <tr background='gfx/vps_topbg.png'  >
289                          <td width='10' class='small state'>&nbsp;</td>                          <td width='10' class='small state'>&nbsp;</td>
290                          <td colspan='3' class='small'><b><?php echo $name; ?></b><span class='os'></span></td>                          <td colspan='3' class='small' title='<?php echo $description;?>'><b><?php echo $name; ?></b><span class='os'></span></td>
291                          <td colspan='1' class='small' align='right'>                          <td colspan='1' class='small' align='right'>
292                                  <span class='network'></span>                                  <span class='network'></span>
293                                  <a href='#' style='display:none;' class='console'>                                  <a href='#' style='display:none;' class='console'>
# Line 325  foreach($vms_array as $vm) { Line 330  foreach($vms_array as $vm) {
330                          <span id='vps_net_usage_txt_UID'>na</span>                          <span id='vps_net_usage_txt_UID'>na</span>
331                  </td>                  </td>
332  -->  -->
333                  <td width='100' align='right' class='small' valign='top'>                  <td width='100' align='right' class='small' valign='bottom'>
334                          <img src='gfx/icon-disk.png' style='vertical-align: middle;'>                          <img src='gfx/icon-disk.png' style='vertical-align: middle;'>
335                          <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>
336                  </td>                  </td>

Legend:
Removed from v.1897  
changed lines
  Added in v.1903

  ViewVC Help
Powered by ViewVC 1.1.20