diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-08-06 14:39:59 -0400 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-08-06 14:39:59 -0400 |
commit | 153248b48230a342648577480e36224eaee85535 (patch) | |
tree | 960a7c8a5fb96c7391502c64326e41f05bbd70dc /plugins/Autocomplete/jquery-autocomplete/demo/emails.php | |
parent | e386a75d1b5271cfcd51825d0d2a420ef66d3622 (diff) |
Added the Autocomplete plugin
Diffstat (limited to 'plugins/Autocomplete/jquery-autocomplete/demo/emails.php')
-rw-r--r-- | plugins/Autocomplete/jquery-autocomplete/demo/emails.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/Autocomplete/jquery-autocomplete/demo/emails.php b/plugins/Autocomplete/jquery-autocomplete/demo/emails.php new file mode 100644 index 000000000..f79b10e4a --- /dev/null +++ b/plugins/Autocomplete/jquery-autocomplete/demo/emails.php @@ -0,0 +1,23 @@ +<?php +$q = strtolower($_GET["q"]); +if (!$q) return; +$items = array( + "Peter Pan"=>"peter@pan.de", + "Molly"=>"molly@yahoo.com", + "Forneria Marconi"=>"live@japan.jp", + "Master Sync"=>"205bw@samsung.com", + "Dr. Tech de Log"=>"g15@logitech.com", + "Don Corleone"=>"don@vegas.com", + "Mc Chick"=>"info@donalds.org", + "Donnie Darko"=>"dd@timeshift.info", + "Quake The Net"=>"webmaster@quakenet.org", + "Dr. Write"=>"write@writable.com" +); + +echo "["; +foreach ($items as $key=>$value) { + if (strpos(strtolower($key), $q) !== false) { + echo "{ name: \"$key\", to: \"$value\" }, "; + } +} +echo "]";
\ No newline at end of file |