Mercurial > hg > Members > shoshi > webvirt
view 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 |
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"] ?>" /> <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 } ?>