blob: 66eeb7db62391e0780162610ecade8acab80c93f (
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
|
<?
# Lifter010: TODO
//Kein Javascript aktiviert, also über Select-Box arbeiten. Wir sind automatisch schon in Schritt 2 der
//non-javascript-Suche.
if ($withButton) : ?>
<div class="quicksearch_frame" style="width: <?= $box_width ?>px;">
<? $withAttributes['style'] = "width: ".($box_width-23)."px;"; ?>
<? if ($box_align === "left") : ?>
<?= Icon::create('refresh')->asInput(['class' => 'text-bottom']) ?>
<? endif ?>
<? endif ?>
<select<? foreach ($withAttributes as $attr_name => $attr_value) {
if($attr_name != 'class') {
//The class attribute is handled below!
print ' '.$attr_name.'="'.$attr_value.'"';
}
}
?> name="<?= $name ?>" class="quicksearch_select <?= array_key_exists('class', $withAttributes) ? htmlReady($withAttributes['class']) : '' ?>">
<? if (count($searchresults)) : ?>
<? foreach ($searchresults as $result) : ?>
<option value="<?= htmlReady($result[0]) ?>"><?= htmlReady($result[1]) ?></option>
<? endforeach ?>
<? else : ?>
<option value=""><?= _("Keine Treffer gefunden") ?></option>
<? endif ?>
</select>
<? if ($withButton) : ?>
<? if ($box_align !== "left") : ?>
<?= Icon::create('refresh')->asInput([
'name'=> $reset_button_name ?? '',
'class'=>'text-bottom',
'title' => _('Suche zurücksetzen')
]) ?>
<? endif ?>
</div>
<? endif ?>
|