/
_update_results.php
39 lines (38 loc) · 1.24 KB
/
_update_results.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* This view display the result of multiple update action. It's rendered via ajax for the confirmation modal
*
* @var $aResults The array containing the result of each survey deletion
*/
?>
<?php if (!$aResults['global']['result']):?>
<strong>
<?php echo $aResults['global']['message'] ;?>
</strong>
<?php else: ?>
<?php unset($aResults['global']); ?>
<table class="table table-striped">
<thead>
<th><?php eT('Participant ID');?></th>
<th><?php eT('Status');?></th>
</thead>
<tbody>
<?php foreach($aResults as $iTokenId => $result):?>
<tr>
<td>
<?php echo $iTokenId;?>
</td>
<?php if ($result['status'] === true):?>
<td class="text-success">
<?php echo $result['message']; ?>
</td>
<?php else: ?>
<td class="text-warning">
<?php echo $result['message']; ?>
</td>
<?php endif;?>
</tr>
<?php endforeach;?>
</tbody>
</table>
<?php endif;?>