forked from susom/redcap-em-export-repeating-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manage.php
38 lines (35 loc) · 954 Bytes
/
manage.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
<?php
//
/** @var \Stanford\ExportRepeatingData\ExportRepeatingData $module */
$reports = json_decode($module->getProjectSetting('saved-reports'), true);
?>
<script src="<?php echo $module->getUrl("client/js/controller.js") ?>"></script>
<script>
window.onload = setTimeout(function () {
loadSavedReportSettings();
}, 100)
</script>
<input type="hidden" name="save-report" id="save-report"
value="<?php echo $module->getUrl("server/manageReports.php") ?>">
<div class="container">
<?php
if ($reports) {
?>
<table class="table table-bordered">
<thead>
<tr>
<th>File</th>
<th>Status</th>
</tr>
</thead>
<tbody id="saved-reports-tbody">
</tbody>
</table>
<?php
} else {
?>
<div class="alert">No Saved Reports for this Projects</div>
<?php
}
?>
</div>