aboutsummaryrefslogtreecommitdiff
path: root/app/views/admission/courseset/applications_list.php
blob: 8b70e80b4aca951d95afa11e70d5d0c57fc15b60 (plain)
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
<?php
/**
 * @var array $captions
 * @var array $data
 * @var Admission_CoursesetController $controller
 * @var string $set_id
 */
?>
<table class="default">
    <thead>
        <tr>
            <? foreach ($captions as $cap) :?>
            <th><?= $cap ?></th>
            <? endforeach ?>
        </tr>
    </thead>
    <tbody>
        <? foreach ($data as $row ) : ?>
        <tr>
            <? foreach ($row as $value ) : ?>
            <td><?= htmlReady($value) ?></td>
            <? endforeach ?>
        </tr>
        <? endforeach ?>
    </tbody>
</table>
<div data-dialog-button>
<?= Studip\LinkButton::create(_("Download"), $controller->url_for('admission/courseset/applications_list/' . $set_id .'/csv')) ?>
</div>