/trunk/scripts/modules/tests/Tests.php |
---|
168,8 → 168,9 |
private function traiterResultatTest($info) { |
if (isset($info['message'])) { |
if (is_array($info['message'])) { |
$info['message'] = $this->getVue('tests/squelettes/message', $info); |
$info['message'] = $this->getVue('tests/squelettes/message_table', $info); |
} else { |
$info['message'] = $this->getVue('tests/squelettes/message_p', $info); |
} |
} |
$this->resultatDao->ajouter($this->traitement['id_traitement'], $info); |
/trunk/scripts/modules/tests/squelettes/message_table.tpl.html |
---|
New file |
0,0 → 1,19 |
<table> |
<caption><?=count($test['message']['lignes'])?> lignes en erreur</caption> |
<thead> |
<tr> |
<?php foreach ($test['message']['entete'] as $entete) : ?> |
<th><?=$entete?></th> |
<?php endforeach; ?> |
</tr> |
</thead> |
<tbody> |
<?php foreach ($test['message']['lignes'] as $ligne) : ?> |
<tr> |
<?php foreach ($ligne as $info) : ?> |
<td><?=$info?></td> |
<?php endforeach; ?> |
</tr> |
<?php endforeach; ?> |
</tbody> |
</table> |
/trunk/scripts/modules/tests/squelettes/message_p.tpl.html |
---|
New file |
0,0 → 1,0 |
<p>$test['message']</p> |