aboutsummaryrefslogtreecommitdiff
path: root/templates/contact/index.php
blob: 7d6d08d5c7f91ccea4d247c78b0c9ee4125b623d (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
<form action="<?= URLHelper::getLink('?cmd=search#anker') ?>" method="post">
    <?= CSRFProtection::tokenTag() ?>
    <table width="100%">
        <tr>
            <td>
        <? if ($size_of_book): ?>
            <? if ($open === 'all'): ?>
                <a href="<?= URLHelper::getLink('', compact('view', 'filter') + ['close' => 'all']) ?>">
                    <?= Icon::create('arr_1up') ?>
                    <?= _('Alle zuklappen') ?>
            <? else: ?>
                <a href="<?= URLHelper::getLink('', compact('view', 'filter') + ['open' => 'all']) ?>">
                    <?= Icon::create('arr_1down') ?>
                    <?= _('Alle aufklappen') ?>
            <? endif; ?>
                    <?= sprintf(
                        ngettext('(%d Eintrag)', '(%d Einträge)', $size_of_book),
                        $size_of_book
                    ) ?>
                </a>
        <? endif; ?>
            </td>
            <td align="right">
                <span class="actions"><?= $mp  ?></span>
            </td>
        </tr>
    </table>
</form>

<table align="center" width="100%">
    <tr>
        <td align="middle" >
        <? if ($contact['view'] === 'alpha'): ?>
            <?= $this->render_partial('contact/header-alpha') ?>
        <? elseif ($contact['view'] === 'gruppen'): ?>
            <?= $this->render_partial('contact/header-groups') ?>
        <? endif; ?>

        <? if ($edit_id): ?>
            <? PrintEditContact($edit_id); ?>
        <? else: ?>
            <? PrintAllContact($filter === 'all' ? '' : $filter); ?>
            <? if ($size_of_book): ?>
                <?= $this->render_partial('contact/legend') ?>
            <? endif; ?>
        <? endif; ?>
        </td>
    </tr>
</table>