diff -r aae6024757a5 -r 3c49783d0862 fhiiqm/test/partner_list_autocomplete.php --- a/fhiiqm/test/partner_list_autocomplete.php Wed Aug 31 14:33:47 2011 +0200 +++ b/fhiiqm/test/partner_list_autocomplete.php Fri Sep 02 12:52:50 2011 +0200 @@ -10,9 +10,11 @@ error_reporting(E_ALL ^ E_NOTICE); $su = array("ä","ö","ü","ß","Ä","Ö","Ü"); - $er = array("ä","ö","ü","ß","Ä","Ö","Ü"); +// $er = array("ä","ö","ü","ß","Ä","Ö","Ü"); + $er = array("ae","oe","ue","ss","Ae;","Oe","Ue"); - $q = strtolower($_GET["term"]); + $q = strtolower($_GET["term"]); // wird in jquery in 'term' uebergeben +// $q = strtolower($_GET["q"]); include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php"); $dbc = new dbconnection(); @@ -25,11 +27,12 @@ { foreach ($result as $row) { - echo $row->part_ID . " - " . str_replace($su,$er,$row->part_firma) . "\n"; + $plist[] = "\"" . $row->part_ID . " - " . html_entity_decode( str_replace($su,$er,$row->part_firma)) ."\""; } } $dbc -> close(); - + + echo "[" . implode(", ", $plist) . "]"; // Format, das jquery source erwartet ?> \ No newline at end of file