Mercurial > hg > Members > shoshi > webvirt
annotate app/views/pages/display.ctp @ 1:eb4fee3d9bb8
added StoragePools management functions (storage_controller)
author | Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 27 Jul 2011 00:00:25 +0900 |
parents | 261e66bd5a0c |
children | 7201fd354bdf |
rev | line source |
---|---|
0 | 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> | |
1
eb4fee3d9bb8
added StoragePools management functions (storage_controller)
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
24 <h2>Domains</h2> |
0 | 25 <?php foreach($domains as $dom){ ?> |
1
eb4fee3d9bb8
added StoragePools management functions (storage_controller)
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
26 <h3><?php echo $dom["name"]; ?></h3> |
eb4fee3d9bb8
added StoragePools management functions (storage_controller)
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
27 <table> |
eb4fee3d9bb8
added StoragePools management functions (storage_controller)
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
28 <tr> |
eb4fee3d9bb8
added StoragePools management functions (storage_controller)
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
29 <th>Memory</th> |
eb4fee3d9bb8
added StoragePools management functions (storage_controller)
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
30 <th>Number of CPUs</th> |
eb4fee3d9bb8
added StoragePools management functions (storage_controller)
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
31 <th>Status</th> |
eb4fee3d9bb8
added StoragePools management functions (storage_controller)
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
32 <tr> |
eb4fee3d9bb8
added StoragePools management functions (storage_controller)
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
33 <td><?php echo $dom["memory"]; ?></td> |
eb4fee3d9bb8
added StoragePools management functions (storage_controller)
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
34 <td><?php echo $dom["nrVirtCpu"]; ?></td> |
eb4fee3d9bb8
added StoragePools management functions (storage_controller)
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
35 <td><?php echo $dom["status"]; ?></td> |
eb4fee3d9bb8
added StoragePools management functions (storage_controller)
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
36 </tr> |
eb4fee3d9bb8
added StoragePools management functions (storage_controller)
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
37 </table> |
0 | 38 <table> |
39 <tr> | |
40 <th>Actions</th> | |
41 </tr> | |
42 <tr> | |
43 <?php foreach($dom["actions"] as $action){ ?> | |
44 <td><?php echo $this->Html->link($action,array("controller" => $action,"action" => "exec","?" => array("uuid" => $dom["uuid"])),array("target" => "_blank")); ?></td> | |
45 <?php } ?> | |
46 </tr> | |
47 </table> | |
48 <?php } ?> | |
1
eb4fee3d9bb8
added StoragePools management functions (storage_controller)
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
49 |