Mercurial > hg > Members > shoshi > webvirt
view app/views/pages/display.ctp @ 4:c3adb28473d6 default tip
modified icon feature
author | Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 16 Aug 2011 18:31:36 +0900 |
parents | 7201fd354bdf |
children |
line wrap: on
line source
<h2><?php echo $hostname; ?></h2> <table> <tr> <th>Model</th> <th>Number of CPUs</th> <th>Memory</th> </tr> <tr> <td><?php echo $nodeinfo["model"] ?></td> <td><?php echo $nodeinfo["cpus"] ?></td> <td><?php echo $nodeinfo["memory"] ?></td> </tr> </table> <table> <tr> <th>Actions</th> </tr> <tr> <?php foreach($actions as $action){ ?> <td><a href="<?php echo $action;?>"><?php echo $action; ?></a></td> <?php } ?> </tr> </table> <h2>Domains</h2> <?php foreach($domains as $dom){ ?> <img src="icon/index?uuid=<?php echo $dom["uuid"] ?>" /> <a href="icon/EditIcon?uuid=<?php echo $dom["uuid"] ?>">edit</a> <h3><?php echo $dom["name"]; ?></h3> <table> <tr> <th>Memory</th> <th>Number of CPUs</th> <th>Status</th> <tr> <td><?php echo $dom["memory"]; ?></td> <td><?php echo $dom["nrVirtCpu"]; ?></td> <td><?php echo $dom["status"]; ?></td> </tr> </table> <table> <tr> <th>Actions</th> </tr> <tr> <?php foreach($dom["actions"] as $action){ ?> <td><?php echo $this->Html->link($action,array("controller" => $action,"action" => "exec","?" => array("uuid" => $dom["uuid"])),array("target" => "_blank")); ?></td> <?php } ?> </tr> </table> <?php } ?>