/
_storage_ajax.php
70 lines (64 loc) · 2.07 KB
/
_storage_ajax.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
/**
* @since 2017-09-20
* @author Olle Härstedt
*/
?>
<label><?php eT('Overview'); ?></label>
<table class='table table-striped table-bordered'>
<tfoot>
<tr>
<td style='width: 70%;'><?php eT('Total storage'); ?></td>
<td><?php echo $totalStorage; ?></td>
</tr>
</tfoot>
<tbody>
<tr>
<td><?php eT('Survey storage'); ?></td>
<td><?php echo $surveySize; ?></td>
</tr>
<tr>
<td><?php eT('Template storage'); ?></td>
<td><?php echo $templateSize; ?></td>
</tr>
<tr>
<td><?php eT('Label set storage'); ?></td>
<td><?php echo $labelSize; ?></td>
</tr>
</tbody>
</table>
<?php if ($surveys): ?>
<label><?php eT('Survey storage'); ?></label>
<table class='table table-striped table-bordered'>
<?php foreach ($surveys as $survey): ?>
<tr>
<td style='width: 70%;'>
<?php echo $survey['name']; ?>
(<a href="<?php echo $this->createUrl('admin/survey', array('sa' => 'view', 'surveyid' => $survey['sid'])); ?>"><?php echo $survey['sid']; ?></a>)
</td>
<td>
<?php echo $survey['size']; ?>
<?php if ($survey['showPurgeButton']): ?>
<span
class='fa fa-trash pull-right btn btn-danger btn-xs'
data-toggle='tooltip'
title='<?php eT('Purge survey'); ?>'
>
</span>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</table>
<?php endif; ?>
<?php if ($templates): ?>
<label><?php eT('Template storage'); ?></label>
<table class='table table-striped table-bordered'>
<?php foreach ($templates as $templates): ?>
<tr>
<td style='width: 70%;'><?php echo $templates['name']; ?></td>
<td><?php echo $templates['size']; ?></td>
</tr>
<?php endforeach; ?>
</table>
<?php endif; ?>