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

Diff of /misc/xenconsole/webadmin.php

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

revision 1878 by torben, Fri Nov 30 08:44:57 2012 UTC revision 1879 by torben, Fri Nov 30 08:53:38 2012 UTC
# Line 202  foreach($vms_array as $vm) { Line 202  foreach($vms_array as $vm) {
202                  <tr bgcolor='#eee'>                  <tr bgcolor='#eee'>
203                  <td></td>                  <td></td>
204    
205                          <td width='150' class='small'>start stop force</td>                  <td width='150' class='small'>
206                            <?php
207                            if ($state == "Running") {
208                                    echo "start | ";
209                                    echo "<a href='#' onclick=\"doAction('shutdown','$uuid')\">stop</a> | ";
210                                    echo "<a href='#' onclick=\"doAction('hardshutdown','$uuid')\">force shutdown</a>";
211                            } else {
212                                    echo "<a href='#' onclick=\"doAction('start','$uuid')\">start</a> | ";
213                                    echo "stop | ";
214                                    echo "force shutdown";
215                            }
216                            ?>
217    
218                    </td>
219    
220                  <td width='100' align='right' class='small'>                  <td width='100' align='right' class='small'>
221                          <img src='gfx/icon-cpu.png' style='vertical-align: middle;'>                          <img src='gfx/icon-cpu.png' style='vertical-align: middle;'>

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

  ViewVC Help
Powered by ViewVC 1.1.20