Mercurial > hg > Members > shoshi > webvirt
comparison app/views/pages/display.ctp @ 0:261e66bd5a0c
hg init
author | Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 24 Jul 2011 21:08:31 +0900 |
parents | |
children | eb4fee3d9bb8 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:261e66bd5a0c |
---|---|
1 <h2><?php echo $hostname; ?></h2> | |
2 <table> | |
3 <tr> | |
4 <th>Model</th> | |
5 <th>Number of CPUs</th> | |
6 <th>Memory</th> | |
7 </tr> | |
8 <tr> | |
9 <td><?php echo $nodeinfo["model"] ?></td> | |
10 <td><?php echo $nodeinfo["cpus"] ?></td> | |
11 <td><?php echo $nodeinfo["memory"] ?></td> | |
12 </tr> | |
13 </table> | |
14 <table> | |
15 <tr> | |
16 <th>Actions</th> | |
17 </tr> | |
18 <tr> | |
19 <?php foreach($actions as $action){ ?> | |
20 <td><a href="<?php echo $action;?>"><?php echo $action; ?></a></td> | |
21 <?php } ?> | |
22 </tr> | |
23 </table> | |
24 <?php foreach($domains as $dom){ ?> | |
25 <h4><?php echo $dom["name"]; ?></h4> | |
26 <ul> | |
27 <li>Memory : <?php echo $dom["memory"]; ?></li> | |
28 <li>VCPUs : <?php echo $dom["nrVirtCpu"]; ?></li> | |
29 </ul> | |
30 <table> | |
31 <tr> | |
32 <th>Actions</th> | |
33 </tr> | |
34 <tr> | |
35 <?php foreach($dom["actions"] as $action){ ?> | |
36 <td><?php echo $this->Html->link($action,array("controller" => $action,"action" => "exec","?" => array("uuid" => $dom["uuid"])),array("target" => "_blank")); ?></td> | |
37 <?php } ?> | |
38 </tr> | |
39 </table> | |
40 <br/> | |
41 <?php } ?> |