aboutsummaryrefslogtreecommitdiff
path: root/app/views/files/all_files.php
blob: a4f00d047fa54735527af422d2885a127a5238b6 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<nav>
    <? if ($previous_page) : ?>
        <a href="<?= $controller->link_for('files/all_files', ['page' => $previous_page]) ?>">
            <?= Icon::create('arr_2left') ?>
        </a>
    <? endif ?>
    <? if ($next_page) : ?>
        <a href="<?= $controller->link_for('files/all_files', ['page' => $next_page]) ?>">
            <?= Icon::create('arr_2right') ?>
        </a>
    <? endif ?>
</nav>
<table class="default documents sortable-table" data-sortlist="[[5, 1]]" data-shiftcheck>
    <? if ($previous_page || $next_page) : ?>
        <caption><?= htmlReady(sprintf(_('Alle Dateien, Seite %d'), $page)) ?></caption>
    <? else : ?>
        <caption><?= _('Alle Dateien') ?></caption>
    <? endif ?>
    <?= $this->render_partial(
        'files/_files_thead.php',
        [
            'show_downloads' => $show_download_column,
            'show_bulk_checkboxes' => true
        ]
    ) ?>
    <?= $this->render_partial(
        'files/_flat_tfoot',
        [
            'show_downloads' => $show_downloads,
            'writable'       => true,
            'pagination'     => [$page, $file_ref_c, $page_size]
        ]
    ) ?>
    <tbody class="files">
        <? foreach ($new_files as $file_ref) : ?>
            <?
            $folder = $file_ref->folder;
            if ($folder instanceof Folder) {
                $folder = $folder->getTypedFolder();
            }
            ?>
            <?= $this->render_partial('files/_fileref_tr', [
                'file_ref'       => $file_ref,
                'current_folder' => $folder,
                'controllerpath' => $controllerpath,
                'show_downloads' => $show_download_column,
                'show_bulk_checkboxes' => true
            ]) ?>
        <? endforeach ?>
    </tbody>
</table>