<?php
if ($_GET['_value'] == 'Mondeo'){
$array[] = array('' => '選擇顏色');
$array[] = array('鈦合金灰' => '鈦合金灰');
$array[] = array('銀砂黑' => '銀砂黑');
$array[] = array('新世紀銀' => '新世紀銀');
$array[] = array('琉璃金' => '琉璃金');
}elseif($_GET['_value'] == 'Focus'){
$array[] = array('' => '選擇顏色');
$array[] = array('綠竹銀' => '綠竹銀');
$array[] = array('極光銀' => '極光銀');
$array[] = array('慓悍黑' => '慓悍黑');
$array[] = array('炫風白' => '炫風白');
$array[] = array('洗鍊灰' => '洗鍊灰');
$array[] = array('古銅金' => '古銅金');
}elseif($_GET['_value'] == 'TIIDA'){
$array[] = array('' => '選擇顏色');
$array[] = array('珍珠白' => '珍珠白');
$array[] = array('麥黃' => '麥黃');
$array[] = array('銀灰' => '銀灰');
$array[] = array('耀黑' => '耀黑');
}elseif($_GET['_value'] == 'TEANA'){
$array[] = array('' => '選擇顏色');
$array[] = array('巡弋紫' => '巡弋紫');
$array[] = array('灰色' => '灰色');
$array[] = array('白色' => '白色');
$array[] = array('銀色' => '銀色');
$array[] = array('黑色' => '黑色');
}elseif($_GET['_value'] == 'ALTIS'){
$array[] = array('' => '選擇顏色');
$array[] = array('白' => '白');
$array[] = array('銀' => '銀');
$array[] = array('黑' => '黑');
$array[] = array('紅' => '紅');
$array[] = array('綠' => '綠');
}elseif($_GET['_value'] == 'CAMRY'){
$array[] = array('' => '選擇顏色');
$array[] = array('雪貂白' => '雪貂白');
$array[] = array('尊貴金' => '尊貴金');
$array[] = array('檀木黑' => '檀木黑');
$array[] = array('醇酒紅' => '醇酒紅');
$array[] = array('星河銀' => '星河銀');
$array[] = array('碧璽綠' => '碧璽綠');
}elseif($_GET['_value'] == 'YARIS'){
$array[] = array('' => '選擇顏色');
$array[] = array('黑色' => '雪貂白');
$array[] = array('白色' => '星河銀');
$array[] = array('紅色' => '寶石藍');
$array[] = array('藍色' => '炫彩橙');
$array[] = array('藍色' => '瑪瑙紅');
$array[] = array('藍色' => '星燦灰');
$array[] = array('藍色' => '檀木黑');
}else{
$array[] = array('' => '尚未選擇型號');
}
echo json_encode( $array );
?>