Mercurial > hg > Members > shoshi > webvirt
annotate app/views/pages/display.ctp @ 3:7201fd354bdf
added icon features , default icon
author | Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 14 Aug 2011 23:52:31 +0900 |
parents | eb4fee3d9bb8 |
children | c3adb28473d6 |
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){ ?> |
3
7201fd354bdf
added icon features , default icon
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
1
diff
changeset
|
26 <img src="icon/index?uuid=<?php echo $dom["uuid"] ?>" /> |
1
eb4fee3d9bb8
added StoragePools management functions (storage_controller)
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
27 <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
|
28 <table> |
eb4fee3d9bb8
added StoragePools management functions (storage_controller)
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
29 <tr> |
eb4fee3d9bb8
added StoragePools management functions (storage_controller)
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
30 <th>Memory</th> |
eb4fee3d9bb8
added StoragePools management functions (storage_controller)
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
31 <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
|
32 <th>Status</th> |
eb4fee3d9bb8
added StoragePools management functions (storage_controller)
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
33 <tr> |
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["memory"]; ?></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["nrVirtCpu"]; ?></td> |
eb4fee3d9bb8
added StoragePools management functions (storage_controller)
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
36 <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
|
37 </tr> |
eb4fee3d9bb8
added StoragePools management functions (storage_controller)
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
38 </table> |
0 | 39 <table> |
40 <tr> | |
41 <th>Actions</th> | |
42 </tr> | |
43 <tr> | |
44 <?php foreach($dom["actions"] as $action){ ?> | |
45 <td><?php echo $this->Html->link($action,array("controller" => $action,"action" => "exec","?" => array("uuid" => $dom["uuid"])),array("target" => "_blank")); ?></td> | |
46 <?php } ?> | |
47 </tr> | |
48 </table> | |
49 <?php } ?> | |
1
eb4fee3d9bb8
added StoragePools management functions (storage_controller)
Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
50 |