aboutsummaryrefslogtreecommitdiff
path: root/app/views/search/module/_drill_down_list.php
blob: b8a8b67b4e85e45f86a207fb0d5d1ee4173dff9d (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
<? if ($drill_down_id) : ?>
<div style="width: 100%; text-align:right;">
    <a href="<?= $controller->url_for('search/module/reset_drilldown') ?>">
    <?= _('Auswahl aufheben') ?>
    <?= Icon::create('decline', 'clickable', ['title' => _('Auswahl aufheben')])->asImg(); ?>
    </a>
</div>
<? endif; ?>


<form action="<?= $controller->action_link('index') ?>" method="post">
    <select name="actlist" style="margin:0;" class="submit-upon-select">
    <? foreach ($lists as $lname => $list) : ?>
    	<option value="<?= $lname ?>" <?= $lname == $act_list ? 'selected' :''; ?>><?= $list['name'] ?></option>
    <? endforeach; ?>
    </select>
</form>
<dl style="margin:0;">
    <? if (count($lists[$act_list]['objects'])) : ?>
    <dd>
        <ul style="list-style-type:none; margin:0; padding:0;">
            <? foreach ($lists[$act_list]['objects'] as $object) : ?>
            <li style="margin:5px 0;">
                <a href="<?= $controller->url_for('search/module/drilldown', ['type' => get_class($object), 'id' => $object->getId()]) ?>">
                <?= htmlReady($object->getDisplayName()) . ' (' . $object->count_module . ')' ?>
                <? if ($object->getId() == $drill_down_id) : ?>
                    <?= Icon::create('accept', 'clickable', ['title' => _('Bereich ausgewählt')])->asImg(); ?>
                <? endif; ?>
                </a>
            </li>
            <? endforeach; ?>
        </ul>
    </dd>
    <? endif; ?>
</dl>