blob: 6f2cb3fb01cb8224323de8531effb4de6bfa86a4 (
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
|
<?
# Lifter010: TODO
?>
<? if ($withButton): ?>
<div class="quicksearch_frame <?= ($extendedLayout === true) ? 'extendedLayout' : ''; ?>" id="<?= $id ?>_frame">
<? if ($box_align === 'left'): ?>
<?= Icon::create('search')->asInput(['class' => 'text-bottom']) ?>
<? endif; ?>
<? endif ?>
<input type=hidden id="<?= $id ?>_realvalue" name="<?= $name ?>" value="<?= htmlReady($defaultID) ?>">
<input<?
foreach ($withAttributes as $attr_name => $attr_value) {
print ' '.$attr_name.'="'.htmlReady($attr_value).'"';
}
?> id="<?= $id ?>"
type="text"
value="<?= htmlReady($defaultName) ?>"
name="<?= strpos($name, "[") === false ? $name."_parameter" : substr($name, 0, strpos($name, "["))."_parameter".substr($name, strpos($name, "[")) ?>"
placeholder="<?= $beschriftung && !$defaultID ? htmlReady($beschriftung) : '' ?>">
<? if ($withButton): ?>
<? if ($box_align !== 'left'): ?>
<input type="submit" value="<?= _('Suche starten') ?>" name="<?= htmlReady($search_button_name) ?>">
<? endif; ?>
</div>
<? endif ?>
<script type="text/javascript" language="javascript">
//Die Autovervollständigen-Funktion aktivieren:
jQuery(function () {
STUDIP.QuickSearch.autocomplete("<?= $id ?>",
"<?= URLHelper::getURL("dispatch.php/quicksearch/response/".$query_id) ?>",
<?= $jsfunction ?: 'null' ?>,
<?= $autocomplete_disabled ? "true" : "false" ?>,
<?= $minLength ?>
);
});
</script>
|