11 |
11 |
12 $su = array("ä","ö","ü","ß","Ä","Ö","Ü"); |
12 $su = array("ä","ö","ü","ß","Ä","Ö","Ü"); |
13 // $er = array("ä","ö","ü","ß","Ä","Ö","Ü"); |
13 // $er = array("ä","ö","ü","ß","Ä","Ö","Ü"); |
14 $er = array("ae","oe","ue","ss","Ae;","Oe","Ue"); |
14 $er = array("ae","oe","ue","ss","Ae;","Oe","Ue"); |
15 |
15 |
16 $q = strtolower($_GET["term"]); // wird in jquery in 'term' uebergeben |
16 $q = strtolower($_GET["term"]); // wird in jquery ui in 'term' uebergeben |
17 // $q = strtolower($_GET["q"]); |
17 // $q = strtolower($_GET["q"]); |
18 |
18 |
19 include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php"); |
19 include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php"); |
20 $dbc = new dbconnection(); |
20 $dbc = new dbconnection(); |
21 |
21 |
27 { |
27 { |
28 foreach ($result as $row) |
28 foreach ($result as $row) |
29 { |
29 { |
30 $plist[] = "\"" . $row->part_ID . " - " . html_entity_decode( str_replace($su,$er,$row->part_firma)) ."\""; |
30 $plist[] = "\"" . $row->part_ID . " - " . html_entity_decode( str_replace($su,$er,$row->part_firma)) ."\""; |
31 } |
31 } |
32 } |
32 echo "[" . implode(", ", $plist) . "]"; // Format, das jquery source erwartet |
|
33 } |
33 $dbc -> close(); |
34 $dbc -> close(); |
34 |
35 |
35 |
36 |
36 echo "[" . implode(", ", $plist) . "]"; // Format, das jquery source erwartet |
|
37 |
37 |
38 ?> |
38 ?> |