"; $swash_fr = @array(); while($l = @mysql_fetch_assoc($erg)){ $swash_fr[] = $l; } # Tail Impulsraten $query = "SELECT * FROM `".$prefix."tail_impulse` RIGHT JOIN `".$prefix."software_to_color` ON `".$prefix."tail_impulse`.`id` = `".$prefix."software_to_color`.`frequency_id` WHERE `".$prefix."software_to_color`.`type`='TI' AND `".$prefix."software_to_color`.`software`='".$software."' ORDER BY `frequency` DESC ;"; #$query = "SELECT * FROM `".$prefix."tail_impulse` ORDER BY `frequency` DESC ;"; $erg = @mysql_query($query,$dbh); while($l = @mysql_fetch_assoc($erg)){ $tail_im[$l[id]] = array("frequency"=>$l['frequency'], "color"=>$l['color']); } # Tail Frequenzen $query = "SELECT * FROM `".$prefix."tail_frequency` RIGHT JOIN `".$prefix."software_to_color` ON `".$prefix."tail_frequency`.`id` = `".$prefix."software_to_color`.`frequency_id` WHERE `".$prefix."software_to_color`.`type`='TF' AND `".$prefix."software_to_color`.`software`='".$software."' ORDER BY `frequency` DESC ;"; $erg = @mysql_query($query,$dbh); #echo "Q: ".$query."
"; $tail_fr = array(); while($l = @mysql_fetch_assoc($erg)){ $tail_fr[] = $l; } # Sprache if(strpos($_SERVER["SCRIPT_NAME"], "/eng/") !== false) $language = 1; else $language = 0; #settype($_REQUEST['language_sel'], "int"); #if($_REQUEST['language_sel'] != "" and is_int($_REQUEST['language_sel']) and $_REQUEST['language_sel'] <= 1000) $language = $_REQUEST['language_sel']; ###if($_REQUEST['language_sel'] != "" and $_REQUEST['language_sel'] <= 1000) $language = $_REQUEST['language_sel']; #if($language == "") $language = 0; #echo "

"; #if($language == 1) echo "SERVOLIST:"; #else echo "SERVOLISTE:"; #echo "

"; #echo "
"; echo "
"; echo ""; if($language == 1) echo "We assume no liability for correctness, validity or actuality.
Always follow the manufacturer's recommendations. "; else echo "Für die Vollständigkeit, Richtigkeit und Aktualität der in dieser Liste
enthaltenen Informationen wird keine Haftung übernommen.
Beachten Sie immer die Herstellerangaben."; echo "
"; echo "
"; echo "

"; echo "
\n"; echo "
\n"; echo "Software Version : "; echo "\n"; echo ""; #echo "  "; #echo "\n"; echo ""; echo "
\n"; echo "
\n"; echo "
"; $cname = array( 0 => array( "blau" => "blau", "blau_bl" => "blau blinkend", "rot" => "rot", "rot_bl" => "rot blinkend", "vio" => "violett", "aus" => "aus", ), 1 => array( "blau" => "blue", "blau_bl" => "blue flashing", "rot" => "red", "rot_bl" => "red flashing", "vio" => "purple", "aus" => "off", ), ); $captions = array( 0 => array( "hersteller" => "Hersteller", "servobez" => "Servobezeichnung", "taumelsch" => "Taumelscheibe", "heck" => "Heck", "freq" => "Ansteuerfrequenz", "mitten" => "Mittenimpuls", "freqh" => "Heckfrequenz", "farbe" => "Farbe", ), 1 => array( "hersteller" => "Manufacturer", "servobez" => "Servoname", "taumelsch" => "Swashplate", "heck" => "Tail", "freq" => "Frequency", "mitten" => "Center-Position
Pulse-Length", "freqh" => "Frequency", "farbe" => "Color", ), ); if($software != ""){ $header = ""; $header .= ""; $header .= "";# class=\"bord_l\" $header .= ""; $header .= ""; $header .= ""; $header .= ""; $header .= ""; $header .= ""; $header .= ""; $header .= ""; $header .= ""; $header .= ""; $header .= ""; $header .= ""; $header .= ""; $header .= ""; $header .= ""; $header .= ""; $header .= ""; $nr = 0; do{ # Servos nach Hersteller ID auslesen $query = "SELECT * FROM `".$prefix."servo` WHERE `active`='Y' AND `manufacturer`='".$man_id[$nr]."' ORDER BY `name` ;"; $erg = @mysql_query($query,$dbh); $anz = @mysql_num_rows($erg); if($anz >= 1){ $nrs = 0; while($datas = @mysql_fetch_assoc($erg)){ if($nrs == 0){ if($nr >= 1) echo "
".$captions[$language]['hersteller']."".$captions[$language]['servobez']."".$captions[$language]['taumelsch']."".$captions[$language]['heck']."
".$captions[$language]['freq']."".$captions[$language]['mitten']."".$captions[$language]['freqh']."
".$captions[$language]['farbe']."Hz".$captions[$language]['farbe']."µs".$captions[$language]['farbe']."Hz


"; echo $header; echo ""; echo ""; echo "".$man[$datas['manufacturer']].""; echo ""; } else echo ""; echo "".$datas['name'].""; #echo "".$datas[max_frequency]." Hz"; # TS Frequenz if($tail_im[$datas['tail_impulse']]['frequency'] == 1520){ $nrf = 0; do{ if($datas['max_frequency'] >= $swash_fr[$nrf]['frequency']){ break; } $nrf++; }while($nrf < count($swash_fr)); echo ""; echo $cname[$language][$swash_fr[$nrf]['color']]; echo ""; echo $swash_fr[$nrf]['frequency']; echo " Hz"; } else echo "--"; # Tail Impulse echo ""; echo $cname[$language][$tail_im[$datas['tail_impulse']]['color']]; echo ""; echo $tail_im[$datas['tail_impulse']]['frequency']; echo " µs"; # Tail Frequenz $nrf = 0; do{ if($datas['max_frequency'] >= $tail_fr[$nrf]['frequency']){ break; } $nrf++; }while($nrf < count($tail_fr)); echo ""; echo $cname[$language][$tail_fr[$nrf]['color']]; echo ""; echo $tail_fr[$nrf]['frequency']; echo " Hz"; echo ""; $nrs++; } } $nr++; }while($nr < count($man_id)); echo ""; } else{ echo "
"; echo "
"; echo ""; if($language == 1) echo "Please choose your software version"; else echo "Bitte Software Version auswählen"; echo ""; echo "
"; } ?>