forked from susom/redcap-em-export-repeating-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
display.php
50 lines (48 loc) · 1.32 KB
/
display.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
<?php
//
/** @var \Stanford\ExportRepeatingData\ExportRepeatingData $module */
$files = $module->processFiles();
?>
<div class="container">
<?php
if ($files) {
?>
<table class="table table-bordered">
<thead>
<tr>
<th>File</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<?php
foreach ($files as $file) {
if ($file['status'] == 'available') {
?>
<tr>
<td><?php echo $file['path'] ?></td>
<td><a target="_blank"
href="<?php echo $module->getUrl("server-dl/download.php") . '&file=' . $file['path'] ?>">Download</a>
</td>
</tr>
<?php
} elseif ($file['processing']) {
?>
<tr>
<td><?php echo $file['path'] ?></td>
<td>Processing</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
<?php
} else {
?>
<div class="alert">No Saved Reports for this Projects</div>
<?php
}
?>
</div>