Added the Autocomplete plugin
This commit is contained in:
9
plugins/Autocomplete/jquery-autocomplete/demo/images.php
Normal file
9
plugins/Autocomplete/jquery-autocomplete/demo/images.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$term = $_REQUEST['q'];
|
||||
$images = array_slice(scandir("images"), 2);
|
||||
foreach($images as $value) {
|
||||
if( strpos(strtolower($value), $term) === 0 ) {
|
||||
echo $value . "\n";
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user