Mercurial > hg > Members > shoshi > webvirt
view 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 |
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> <?php foreach($domains as $dom){ ?> <h4><?php echo $dom["name"]; ?></h4> <ul> <li>Memory : <?php echo $dom["memory"]; ?></li> <li>VCPUs : <?php echo $dom["nrVirtCpu"]; ?></li> </ul> <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> <br/> <?php } ?>