view 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
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){ ?>
<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 } ?>