Implement result viewer for experiments

This commit is contained in:
Eike Foken
2011-09-20 01:55:09 +02:00
parent 2c24c46cd1
commit 6bd0b517d3
6 changed files with 167 additions and 3 deletions

View File

@@ -0,0 +1,58 @@
<?php $this->load->view('header');?>
<div id="content">
<div class="title">
<h2><?=anchor('projects', _('Projects'));?> &raquo; <?=anchor('projects/detail/' . $project['id'], $project['name']);?> &raquo; <?=anchor('experiments/detail/' . $experiment['id'], $experiment['name']);?> &raquo; <?=_('Results');?></h2>
</div>
<div class="box">
<h3><?=_('Results');?></h3>
<table class="tableList">
<?php
$i = 0;
foreach ($results as $result):
if ($i == 0):
?>
<thead>
<tr>
<?php
foreach ($result as $headline):
?>
<th scope="col"><?=$headline;?></th>
<?php
endforeach;
?>
</tr>
</thead>
<?php
else:
if ($i == 1):
?>
<tbody>
<?php
endif;
?>
<tr>
<?php
foreach ($result as $value):
?>
<td><?=$value;?></td>
<?php
endforeach;
?>
</tr>
<?php
if ($i == sizeof($results)):
?>
</tbody>
<?php
endif;
endif;
$i++;
endforeach;
?>
</table>
</div>
</div>
<?php $this->load->view('footer');?>