BlueGrey
calm
Elegant
Català-Valencià - Catalan
中文 - Chinese (Simplified)
中文 - Chinese (Traditional)
Česky - Czech
Dansk - Danish
Nederlands - Dutch
English - English
Suomi - Finnish
Français - French
Deutsch - German
עברית - Hebrew
हिंदी - Hindi
Magyar - Hungarian
Bahasa Indonesia - Indonesian
Italiano - Italian
日本語 - Japanese
한국어 - Korean
Македонски - Macedonian
मराठी - Marathi
Norsk - Norwegian
Polski - Polish
Português - Portuguese
Português - Portuguese (Brazil)
Русский - Russian
Slovenčina - Slovak
Slovenščina - Slovenian
Español - Spanish
Svenska - Swedish
Türkçe - Turkish
Українська - Ukrainian
Oëzbekcha - Uzbek
Subversion Repositories
Integrator Subversion
(root)
/
DOCUMENTOS E ANALISE
/
telas
/
templates
/
admin2
/
demo
/
typeahead_custom.php
- Rev 1
Rev
Blame
|
Last modification
|
View Log
|
Download
|
RSS feed
<?php
$query
=
$_REQUEST
[
"query"
]
;
$max
=
rand
(
5
,
10
)
;
$results
=
array
(
)
;
for
(
$i
=
0
;
$i
<=
$max
;
$i
++
)
{
$results
[
]
=
array
(
"value"
=>
$query
.
' - '
.
rand
(
10
,
100
)
,
"desc"
=>
"some description goes here..."
,
"img"
=>
"http://lorempixel.com/50/50/?"
.
(
rand
(
1
,
10000
)
.
rand
(
1
,
10000
)
)
,
"tokens"
=>
array
(
$query
,
$query
.
rand
(
1
,
10
)
)
)
;
}
echo
json_encode
(
$results
)
;
?>