-
Notifications
You must be signed in to change notification settings - Fork 994
/
_export_archive_results.php
44 lines (42 loc) · 1.34 KB
/
_export_archive_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
40
41
42
43
44
<?php
/**
* This view display the result of delete multiple action. It's rendered via ajax for the confirmation modal in survey list
*
* @var $aResults The array containing the result of each survey deletion
* @var $aZIPFileName
*/
?>
<table class="table table-striped">
<thead>
<th><?php eT('Survey ID');?></th>
<th><?php eT('Survey title');?></th>
<th><?php eT('Status');?></th>
</thead>
<tbody>
<?php foreach($aResults as $iSid => $result):?>
<tr>
<td>
<?php echo $iSid;?>
</td>
<td>
<?php echo $result['title'];?>
</td>
<?php if ($result['result']):?>
<td class="text-success">
<?php eT('Exported'); ?>
</td>
<?php else: ?>
<td class="text-warning">
<?php echo $result['error'] ; ?>
</td>
<?php endif;?>
</tr>
<?php endforeach;?>
</tbody>
</table>
<?php if(!$bArchiveIsEmpty):?>
<a class='btn btn-primary' href="<?php echo App()->createUrl('/admin/export/sa/downloadZip/sZip/'.$sZip);?>">
<span class="fa fa-download"></span>
<?php eT('Download archive');?>
</a>
<?php endif; ?>