Implement result viewer for experiments
This commit is contained in:
58
application/views/results/experiment.php
Normal file
58
application/views/results/experiment.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<div id="content">
|
||||
<div class="title">
|
||||
<h2><?=anchor('projects', _('Projects'));?> » <?=anchor('projects/detail/' . $project['id'], $project['name']);?> » <?=anchor('experiments/detail/' . $experiment['id'], $experiment['name']);?> » <?=_('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');?>
|
||||
Reference in New Issue
Block a user