Rental must be 2 days or more.

"; $mess_2_day .= "

If you cannot make a booking, please contact

"; $mess_2_day .= "

Call Center 02 251 1131.


"; $mess_2_day .= "

ท่านต้องเช่าอย่างน้อย 2 วันหรือมากกว่า

"; $mess_2_day .= "

ในกรณีที่ท่านไม่สามารถทำการจองรถเช่าได้

"; $mess_2_day .= "

กรุณาติดต่อ โทร. 02 251 1131

"; $mess_3_day .= "

Rental must be 3 days or more.

"; $mess_3_day .= "

If you cannot make a booking, please contact

"; $mess_3_day .= "

Call Center 02 251 1131.


"; $mess_3_day .= "

ท่านต้องเช่าอย่างน้อย 3 วันหรือมากกว่า

"; $mess_3_day .= "

ในกรณีที่ท่านไม่สามารถทำการจองรถเช่าได้

"; $mess_3_day .= "

กรุณาติดต่อ โทร. 02 251 1131

"; //List of day. $lst_day = array(); for($i = 1; $i <= 31; $i++){ $arr = array("day" => str_pad($i, 2, "0", STR_PAD_LEFT)); array_push($lst_day, $arr); } $ddl_day->recordset = $lst_day; $ddl_day->valuefield = "day"; $ddl_day->textfield = "day"; $ddl_day->id = "birth_day"; $ddl_day->name = "birth_day"; //List of month. $lst_month = array(); for($i = 1; $i <= 12; $i++){ $arr = array( "month_value" => $i, "month_name" => date("F", mktime(0, 0, 0, $i + 1, 0, 0)) ); array_push($lst_month, $arr); } $ddl_month->recordset = $lst_month; $ddl_month->valuefield = "month_value"; $ddl_month->textfield = "month_name"; $ddl_month->id = "birth_month"; $ddl_month->name = "birth_month"; //List of before 23 to 70 years. $lst_year = array(); for($i = (date("Y") - 70); $i <= (date("Y") - 23); $i++){ $arr = array("year" => str_pad($i, 2, "0", STR_PAD_LEFT)); array_push($lst_year, $arr); } $ddl_year->recordset = $lst_year; $ddl_year->valuefield = "year"; $ddl_year->textfield = "year"; $ddl_year->id = "birth_year"; $ddl_year->name = "birth_year"; $beforeday = $obj_util->sum_date(date("Y-m-d"), $_POST["startday_b"]); // $startdate = $_POST["startday_b"] . " " . $_POST["begin_hour_b"] . ":" . $_POST["begin_minute_b"] . ":00"; // $stopdate = $_POST["endday_b"] . " " . $_POST["end_hour_b"] . ":" . $_POST["end_minute_b"] . ":00"; $startdate = $_POST["startday_b"]; $stopdate = $_POST["endday_b"] ; $befortime = $_POST["begin_hour_b"] . ":" . $_POST["begin_minute_b"] . ":00"; $stoptime = $_POST["end_hour_b"] . ":" . $_POST["end_minute_b"] . ":00"; //$useday = $obj_util->sum_date($startdate, $stopdate); $usedtime = $obj_util->sum_hour($befortime, $stoptime); if($usedtime >= 9){ $useday = $obj_util-> sum_date($startdate, $stopdate)+1; }else{ $useday = $obj_util->sum_date($startdate, $stopdate); } if($usedtime >= 4){ $late_time = $usedtime-4; }else{ $late_time= 0; } $start_array = getdate(strtotime($_POST["startday_b"])); $str_error_html = ""; if($_POST[$e_o->f1["fname"]] == ""){ $str_error_html .= "Please select a Office." . "
"; $response_url = $_SERVER['HTTP_REFERER']; } if($_POST[$e_g_b->f1["fname"]] == ""){ $str_error_html .= "Please select a Group." . "
"; $response_url = $_SERVER['HTTP_REFERER']; } if($useday <= 0){ $str_error_html .= "Invalid period, please select new period." . "
"; $response_url = $_SERVER['HTTP_REFERER']; } if($useday < 3 && ($_POST["startday_b"] == "2015-04-10" || $_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12") && $_POST[$e_o->f1["fname"]] == "1" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13") && $_POST[$e_o->f1["fname"]] == "1" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14") && $_POST[$e_o->f1["fname"]] == "1" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15") && $_POST[$e_o->f1["fname"]] == "1" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15" ) && $_POST[$e_o->f1["fname"]] == "1" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; /**** St 2****/ }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-10" || $_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12") && $_POST[$e_o->f1["fname"]] == "2" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13") && $_POST[$e_o->f1["fname"]] == "2" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14") && $_POST[$e_o->f1["fname"]] == "2" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15") && $_POST[$e_o->f1["fname"]] == "2" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15" ) && $_POST[$e_o->f1["fname"]] == "2" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; /**** end 2****/ /****St 3****/ }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-10" || $_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12") && $_POST[$e_o->f1["fname"]] == "32" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13") && $_POST[$e_o->f1["fname"]] == "3" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14") && $_POST[$e_o->f1["fname"]] == "3" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15") && $_POST[$e_o->f1["fname"]] == "3" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15" ) && $_POST[$e_o->f1["fname"]] == "3" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; /*************************************En 3*******************************************************/ /*************************************St 4********************************************************/ }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-10" || $_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12") && $_POST[$e_o->f1["fname"]] == "4" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13") && $_POST[$e_o->f1["fname"]] == "4" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14") && $_POST[$e_o->f1["fname"]] == "4" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15") && $_POST[$e_o->f1["fname"]] == "4" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15" ) && $_POST[$e_o->f1["fname"]] == "4" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; /******En 4*****/ /****St 5****/ }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-10" || $_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12") && $_POST[$e_o->f1["fname"]] == "5" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13") && $_POST[$e_o->f1["fname"]] == "5" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14") && $_POST[$e_o->f1["fname"]] == "5" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15") && $_POST[$e_o->f1["fname"]] == "5" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15" ) && $_POST[$e_o->f1["fname"]] == "5" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; /************************************* En 5 ************************************************/ /*************************************St 6**********************************************/ }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-10" || $_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12") && $_POST[$e_o->f1["fname"]] == "6" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13") && $_POST[$e_o->f1["fname"]] == "6" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14") && $_POST[$e_o->f1["fname"]] == "6" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15") && $_POST[$e_o->f1["fname"]] == "6" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15" ) && $_POST[$e_o->f1["fname"]] == "6" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; /******En 6*****/ /********************************St 7********************************************/ }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-10" || $_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12") && $_POST[$e_o->f1["fname"]] == "7" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13") && $_POST[$e_o->f1["fname"]] == "7" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14") && $_POST[$e_o->f1["fname"]] == "7" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15") && $_POST[$e_o->f1["fname"]] == "7" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15" ) && $_POST[$e_o->f1["fname"]] == "7" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; /******En 7*****/ /********************************St 8**************************************************/ }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-10" || $_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12") && $_POST[$e_o->f1["fname"]] == "8" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13") && $_POST[$e_o->f1["fname"]] == "8" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14") && $_POST[$e_o->f1["fname"]] == "8" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15") && $_POST[$e_o->f1["fname"]] == "8" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15" ) && $_POST[$e_o->f1["fname"]] == "8" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; /******En 8*****/ /*******************************St 9***********************************************/ }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-10" || $_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12") && $_POST[$e_o->f1["fname"]] == "9" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13") && $_POST[$e_o->f1["fname"]] == "9" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14") && $_POST[$e_o->f1["fname"]] == "9" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15") && $_POST[$e_o->f1["fname"]] == "9" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15" ) && $_POST[$e_o->f1["fname"]] == "9" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; /******En 9*****/ /*******************************St 10***********************************/ }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-10" || $_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12") && $_POST[$e_o->f1["fname"]] == "10" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13") && $_POST[$e_o->f1["fname"]] == "10" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14") && $_POST[$e_o->f1["fname"]] == "10" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15") && $_POST[$e_o->f1["fname"]] == "10" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15" ) && $_POST[$e_o->f1["fname"]] == "10" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; /******En 10*****/ /**************************************St 11***********************************/ }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-10" || $_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12") && $_POST[$e_o->f1["fname"]] == "11" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13") && $_POST[$e_o->f1["fname"]] == "11" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14") && $_POST[$e_o->f1["fname"]] == "11" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15") && $_POST[$e_o->f1["fname"]] == "11" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15" ) && $_POST[$e_o->f1["fname"]] == "11" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; /************************************ En 11*********************************************/ /************************************St 12 Phuket *********************************************/ }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-10" || $_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12") && $_POST[$e_o->f1["fname"]] == "12" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13") && $_POST[$e_o->f1["fname"]] == "12" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14") && $_POST[$e_o->f1["fname"]] == "12" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15") && $_POST[$e_o->f1["fname"]] == "12" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15" ) && $_POST[$e_o->f1["fname"]] == "12" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; /****************************************************En12***************************************/ /*********************************St 13 Samui*********************************************************/ }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-10" || $_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12") && $_POST[$e_o->f1["fname"]] == "13" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13") && $_POST[$e_o->f1["fname"]] == "13" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14") && $_POST[$e_o->f1["fname"]] == "13" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15") && $_POST[$e_o->f1["fname"]] == "13" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15" ) && $_POST[$e_o->f1["fname"]] == "13" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; /************************************************* En 13*************************************************/ /****************************** St 14 hai yai *********************************/ }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-10" || $_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12") && $_POST[$e_o->f1["fname"]] == "14" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13") && $_POST[$e_o->f1["fname"]] == "14" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14") && $_POST[$e_o->f1["fname"]] == "14" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15") && $_POST[$e_o->f1["fname"]] == "14" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15" ) && $_POST[$e_o->f1["fname"]] == "14" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; /**********************************En 14*************************/ /*****************************St 15 Krabi **********************************************/ }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-10" || $_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12") && $_POST[$e_o->f1["fname"]] == "15" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13") && $_POST[$e_o->f1["fname"]] == "15" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14") && $_POST[$e_o->f1["fname"]] == "15" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15") && $_POST[$e_o->f1["fname"]] == "15" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15" ) && $_POST[$e_o->f1["fname"]] == "15" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; /**************************************************************En 15*****/ /***************************** St 16 Surattnani *****************************************/ }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-10" || $_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12") && $_POST[$e_o->f1["fname"]] == "16" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13") && $_POST[$e_o->f1["fname"]] == "16" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14") && $_POST[$e_o->f1["fname"]] == "16" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15") && $_POST[$e_o->f1["fname"]] == "16" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15" ) && $_POST[$e_o->f1["fname"]] == "16" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; /*****************************************************************************En 16*****/ /***************************************** St 17 ***************************************/ }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-10" || $_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12") && $_POST[$e_o->f1["fname"]] == "17" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13") && $_POST[$e_o->f1["fname"]] == "17" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14") && $_POST[$e_o->f1["fname"]] == "17" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15") && $_POST[$e_o->f1["fname"]] == "17" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15" ) && $_POST[$e_o->f1["fname"]] == "17" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; /************************ En 17 -> Start 18 **********************************************/ }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-10" || $_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12") && $_POST[$e_o->f1["fname"]] == "18" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13") && $_POST[$e_o->f1["fname"]] == "18" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14") && $_POST[$e_o->f1["fname"]] == "18" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15") && $_POST[$e_o->f1["fname"]] == "18" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15" ) && $_POST[$e_o->f1["fname"]] == "18" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; /************************ En 18 -> Start 19 **********************************************/ }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-10" || $_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12") && $_POST[$e_o->f1["fname"]] == "19" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-11" || $_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13") && $_POST[$e_o->f1["fname"]] == "19" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-12" || $_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14") && $_POST[$e_o->f1["fname"]] == "19" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-13" || $_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15") && $_POST[$e_o->f1["fname"]] == "19" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; }elseif($useday < 3 && ($_POST["startday_b"] == "2015-04-14" || $_POST["startday_b"] == "2015-04-15" ) && $_POST[$e_o->f1["fname"]] == "19" ){ $file = fopen("day.txt", "r"); $min_day = fgetc($file); fclose($file); $str_error_html .= "$mess_3_day"; $response_url = $_SERVER['HTTP_REFERER']; } /************************ En 19 **********************************************/ if(!$str_error_html){ /*if($beforeday <= $require_day){ // กำหนดการจองล่วงหน้า แบบรวม $str_error_html = ""; $str_error_html .= "You must be reservation before $require_day days or more." . "

" . "Please Contact Call Center at 02-2511131" . "
" . "" ; }else*/ // กำหนกการจองแบบ station $require_day = 2; $require_day_1 = 1; if($beforeday <= $require_day_1 && $_POST[$e_o->f1["fname"]] == '1' ){ // BANGKOK DOWNTOWN $str_error_html = ""; $str_error_html .= "You must be reservation before $require_day_1 days or more." . "

" . "Please Contact Call Center at 02-2511131" . "
" . "" ; }else if($beforeday <= $require_day_1 && $_POST[$e_o->f1["fname"]] == '2' ){ // BANGKOK - SUVARNABHUMI INT'L AIRPORT $str_error_html = ""; $str_error_html .= "You must be reservation before $require_day_1 days or more." . "

" . "Please Contact Call Center at 02-2511131" . "
" . "" ; }else if($beforeday <= $require_day_1 && $_POST[$e_o->f1["fname"]] == '3' ){ // BANGKOK - DONMUANG DOMESTIC AIRPORT $str_error_html = ""; $str_error_html .= "You must be reservation before $require_day_1 days or more." . "

" . "Please Contact Call Center at 02-2511131" . "
" . "" ; }else if($beforeday <= $require_day_1 && $_POST[$e_o->f1["fname"]] == '4' ){ //}else if($beforeday <= $require_day_2 && $_POST[$e_o->f1["fname"]] == '4' && $_POST[$e_g_b->f1["fname"]] == '4' || $_POST[$e_g_b->f1["fname"]] == '5'){ // PATTAYA - DUSIT RESORT $str_error_html = ""; $str_error_html .= "You must be reservation before $require_day_1 days or more." . "

" . "Please Contact Call Center at 02-2511131" . "
" . "" ; }else if($beforeday <= $require_day_1 && $_POST[$e_o->f1["fname"]] == '5' ){ // HUA-HIN - DOWNTOWN PHETKASEM ROAD $str_error_html = ""; $str_error_html .= "You must be reservation before $require_day_1 days or more." . "

" . "Please Contact Call Center at 02-2511131" . "
" . "" ; }else if($beforeday <= $require_day_1 && $_POST[$e_o->f1["fname"]] == '6' ){ // CHIANGMAI - CHIANG MAI AIRPORT $str_error_html = ""; $str_error_html .= "You must be reservation before $require_day days or more." . "

" . "Please Contact Call Center at 02-2511131" . "
" . "" ; }else if($beforeday <= $require_day_1 && $_POST[$e_o->f1["fname"]] == '7' ){ // CHIANGMAI - ROYAL PRINCESS CHIANG MAI HOTEL $str_error_html = ""; $str_error_html .= "You must be reservation before $require_day days or more." . "

" . "Please Contact Call Center at 02-2511131" . "
" . "" ; }else if($beforeday <= $require_day_1 && $_POST[$e_o->f1["fname"]] == '8' ){ // CHIANGRAI - CHIANG RAI AIRPORT $str_error_html = ""; $str_error_html .= "You must be reservation before $require_day days or more." . "

" . "Please Contact Call Center at 02-2511131" . "
" . "" ; }else if($beforeday <= $require_day_1 && $_POST[$e_o->f1["fname"]] == '9' ){ // PHITSANULOKE - PHITSANULOKE AIRPORT $str_error_html = ""; $str_error_html .= "You must be reservation before $require_day days or more." . "

" . "Please Contact Call Center at 02-2511131" . "
" . "" ; }else if($beforeday <= $require_day_1 && $_POST[$e_o->f1["fname"]] == '10' ){ // UDONTHANI - UDON THANI AIRPOR $str_error_html = ""; $str_error_html .= "You must be reservation before $require_day days or more." . "

" . "Please Contact Call Center at 02-2511131" . "
" . "" ; }else if($beforeday <= $require_day_1 && $_POST[$e_o->f1["fname"]] == '11' ){ // KHON KAEN - KHON KAEN AIRPORT $str_error_html = ""; $str_error_html .= "You must be reservation before $require_day days or more." . "

" . "Please Contact Call Center at 02-2511131" . "
" . "" ; }else if($beforeday <= $require_day_1 && $_POST[$e_o->f1["fname"]] == '12' ){ // PHUKET - PHUKET AIRPORT $str_error_html = ""; $str_error_html .= "You must be reservation before $require_day days or more." . "

" . "Please Contact Call Center at 02-2511131" . "
" . "" ; }else if($beforeday <= $require_day_1 && $_POST[$e_o->f1["fname"]] == '13' ){ // SAMUI - SAMUI AIRPORT $str_error_html = ""; $str_error_html .= "You must be reservation before $require_day days or more." . "

" . "Please Contact Call Center at 02-2511131" . "
" . "" ; }else if($beforeday <= $require_day && $_POST[$e_o->f1["fname"]] == '14' ){ // HAT YAI - HAT YAI AIRPORT $str_error_html = ""; $str_error_html .= "You must be reservation before $require_day_1 days or more." . "

" . "Please Contact Call Center at 02-2511131" . "
" . "" ; }else if($beforeday <= $require_day_1 && $_POST[$e_o->f1["fname"]] == '15' ){ // KRABI - KRABI AIRPORT $str_error_html = ""; $str_error_html .= "You must be reservation before $require_day days or more." . "

" . "Please Contact Call Center at 02-2511131" . "
" . "" ; }else if($beforeday <= $require_day_1 && $_POST[$e_o->f1["fname"]] == '16' ){ // SURATTNANI - SURATTNANI AIRPORT $str_error_html = ""; $str_error_html .= "You must be reservation before $require_day days or more." . "

" . "Please Contact Call Center at 02-2511131" . "
" . "" ; }else if($beforeday <= $require_day_1 && $_POST[$e_o->f1["fname"]] == '17' ){ // UBON RATCHATHANI - UBON RATCHATHANI AIRPORT $str_error_html = ""; $str_error_html .= "You must be reservation before $require_day days or more." . "

" . "Please Contact Call Center at 02-2511131" . "
" . "" ; }else if($beforeday <= $require_day_1 && $_POST[$e_o->f1["fname"]] == '18' ){ // NAKORN Si $str_error_html = ""; $str_error_html .= "You must be reservation before $require_day days or more." . "

" . "Please Contact Call Center at 02-2511131" . "
" . "" ; }else if($beforeday <= $require_day_1 && $_POST[$e_o->f1["fname"]] == '19' ){ // TRANG $str_error_html = ""; $str_error_html .= "You must be reservation before $require_day days or more." . "

" . "Please Contact Call Center at 02-2511131" . "
" . "" ; } else{ $dbcon = new db_access($host, $dbuser, $dbpass, $dbname); //--------------------------------------------------------------------------------------- //-------------------------------- CHECK CAR -------------------------------------------- //--------------------------------------------------------------------------------------- $data = array( $e_b_b->f5["fname"] => $_POST[$e_o->f1["fname"]], $e_b_b->f6["fname"] => $_POST[$e_g_b->f1["fname"]], $e_cd->f3["fname"] => $_POST["startday_b"] ); $query = $obj_sql->get_carday_booking($data, $e_o, $e_g_b, $e_cd); //echo $query; $rs_cd = $dbcon->get_table($query); $count_cd = mysql_affected_rows(); $query_no = $obj_sql->get_carday_nocar($data, $e_o, $e_g_b, $e_cd); $rs_cd_nocar = $dbcon->get_table($query_no); $count_cd_no = mysql_affected_rows(); //echo $query_no . "

"; //--------------------------------------------------------------------------------------- //------------------------------- RANDOM RATE ------------------------------------------- //--------------------------------------------------------------------------------------- $data = array( $e_b_b->f5["fname"] => $_POST[$e_o->f1["fname"]], $e_b_b->f6["fname"] => $_POST[$e_g_b->f1["fname"]], $e_pd->f3["fname"] => $_POST["startday_b"], $e_cd->f3["fname"] => $_POST["startday_b"] ); if($useday > 3){ $query = $obj_sql->get_random_cost_1($data, $e_o, $e_g_b, $e_pd, $e_cd); //echo $query; $query_no = $obj_sql->get_random_cost_nocar_1($data, $e_o, $e_g_b, $e_pd, $e_cd); }else{ $query = $obj_sql->get_random_cost_1($data, $e_o, $e_g_b, $e_pd, $e_cd); //echo $query; $query_no = $obj_sql->get_random_cost_nocar_1($data, $e_o, $e_g_b, $e_pd ,$e_cd); //echo $query_no; } $query_p = $obj_sql->get_random_cost11($data, $e_o, $e_g_b, $e_pd); $rs_og = $dbcon->get_table($query_p); //echo $query_p; $rs_pd = $dbcon->get_table($query); $count_pd = mysql_affected_rows(); $rs_pd_no = $dbcon->get_table($query_no); $count_pd_no = mysql_affected_rows(); //echo $query_no . "

"; //--------------------------------------------------------------------------------------- $dbcon->db_close(); if($count_cd <= 0 && $count_cd_no <= 0){ $str_error_html = ""; $str_error_html .= "

The Car is avalible at Call Center

"; $str_error_html .= "

Please contact Call Center 02 251 1131 or

"; //$str_error_html .= "

click

"; $str_error_html .= "

or click for special benefit


"; $str_error_html .= "

"; $str_error_html .= "

รถยนต์สามารถจองได้ที่ Call Center

"; //$str_error_html .= "

คลิก

"; $str_error_html .= "

กรุณาติดต่อ โทร. 02 251 1131

"; $str_error_html .= "

หรือ คลิก เพื่อรับสิทธิพิเศษ

"; $str_error_html .= ""; $str_error_html .= "
"; $str_error_html .= "--------------------------------------"; $str_error_html .= "

ลงทะเบียนเพื่อรักษาสิทธิ์ราคาพิเศษ ถึงแม้ทำจองไม่ได้ คุณมีสิทธิ์รับสิทธิพิเศษ

"; $str_error_html .= "

Register now to reserve the right of special rate though booking cannot be made.

"; //$str_error_html .= ""; $str_error_html .= "
"; } if($count_cd > 0 || $count_pd > 0){ $starttime = $_POST["begin_hour_b"] . ":" . $_POST["begin_minute_b"] . ":00"; $endtime = $_POST["end_hour_b"] . ":" . $_POST["end_minute_b"] . ":00"; $_SESSION[$e_o->f1["fname"]] = $_POST[$e_o->f1["fname"]]; //$_SESSION[$e_g_b->f1["fname"]] = $_POST[$e_g_b->f1["fname"]]; $_SESSION[$e_pd->f4["fname"]] = $rs_pd[0][$e_pd->f4["fname"]]; $_SESSION["startday_b"] = $_POST["startday_b"]; $_SESSION["endday_b"] = $_POST["endday_b"]; $_SESSION["starttime"] = $starttime; $_SESSION["endtime"] = $endtime; $_SESSION[$e_b_b->f24["fname"]] = $_POST[$e_b_b->f24["fname"]]; } /******** Office Hours*************/ //echo $_SESSION["starttime"]; //echo $_SESSION["endtime"]; // 08:00:00 <= 18:00:00 if($_SESSION[$e_o->f1["fname"]] == '1'){ if($_SESSION["starttime"] > "18:31:00"){; $str_error_html = ""; $str_error_html .= " BANGKOK DOWNTOWN Operating hours :

Mon - Sun: 08:00-18:30

"; $str_error_html .= ""; }else if($_SESSION["starttime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= " BANGKOK DOWNTOWN Operating hours :

Mon - Sun: 08:00-18:30

"; $str_error_html .= ""; }else if($_SESSION["endtime"] > "18:31:00"){; $str_error_html = ""; $str_error_html .= " BANGKOK DOWNTOWN Operating hours :

Mon - Sun: 08:00-18:30

"; $str_error_html .= ""; }else if($_SESSION["endtime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= " BANGKOK DOWNTOWN Operating hours :

Mon - Sun: 08:00-18:30

"; $str_error_html .= ""; } } if($_SESSION[$e_o->f1["fname"]] == '3' ){ if($_SESSION["starttime"] > "21:01:00"){; $str_error_html = ""; $str_error_html .= " DONMUANG DOMESTIC AIRPORT Operating hours :

Mon - Sun: 08:00-21:00

"; $str_error_html .= ""; }else if($_SESSION["starttime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= " DONMUANG DOMESTIC AIRPORT Operating hours :

Mon - Sun: 08:00-21:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] > "21:01:00"){; $str_error_html = ""; $str_error_html .= " DONMUANG DOMESTIC AIRPORT Operating hours :

Mon - Sun: 08:00-21:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= " DONMUANG DOMESTIC AIRPORT Operating hours :

Mon - Sun: 08:00-21:00

"; $str_error_html .= ""; } } if($_SESSION[$e_o->f1["fname"]] == '4' ){ if($_SESSION["starttime"] > "20:01:00"){; $str_error_html = ""; $str_error_html .= "PATTAYA - DUSIT RESORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["starttime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "PATTAYA - DUSIT RESORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] > "20:01:00"){; $str_error_html = ""; $str_error_html .= "PATTAYA - DUSIT RESORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "PATTAYA - DUSIT RESORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; } } if($_SESSION[$e_o->f1["fname"]] == '5' ){ if($_SESSION["starttime"] > "20:01:00"){; $str_error_html = ""; $str_error_html .= "HUA-HIN - DOWNTOWN PHETKASEM ROAD Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["starttime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "HUA-HIN - DOWNTOWN PHETKASEM ROAD Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] > "20:01:00"){; $str_error_html = ""; $str_error_html .= "HUA-HIN - DOWNTOWN PHETKASEM ROAD Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "HUA-HIN - DOWNTOWN PHETKASEM ROAD Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; } } if($_SESSION[$e_o->f1["fname"]] == '6' ){ if($_SESSION["starttime"] > "21:01:00"){; $str_error_html = ""; $str_error_html .= "CHIANGMAI - CHIANG MAI AIRPORT Operating hours :

Mon - Sun: 07:30-21:00

"; $str_error_html .= ""; }else if($_SESSION["starttime"] < "07:29:00"){; $str_error_html = ""; $str_error_html .= "CHIANGMAI - CHIANG MAI AIRPORT Operating hours :

Mon - Sun: 07:30-21:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] > "21:01:00"){; $str_error_html = ""; $str_error_html .= "CHIANGMAI - CHIANG MAI AIRPORT Operating hours :

Mon - Sun: 07:30-21:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] < "07:29:00"){; $str_error_html = ""; $str_error_html .= "CHIANGMAI - CHIANG MAI AIRPORT Operating hours :

Mon - Sun: 07:30-21:00

"; $str_error_html .= ""; } } if($_SESSION[$e_o->f1["fname"]] == '7' ){ if($_SESSION["starttime"] > "17:01:00"){; $str_error_html = ""; $str_error_html .= "CHIANGMAI - ROYAL PRINCESS CHIANG MAI HOTEL Operating hours :

Mon - Sun: 08:00-17:00

"; $str_error_html .= ""; }else if($_SESSION["starttime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "CHIANGMAI - ROYAL PRINCESS CHIANG MAI HOTEL Operating hours :

Mon - Sun: 08:00-17:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] > "17:01:00"){; $str_error_html = ""; $str_error_html .= "CHIANGMAI - ROYAL PRINCESS CHIANG MAI HOTEL Operating hours :

Mon - Sun: 08:00-17:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "CHIANGMAI - ROYAL PRINCESS CHIANG MAI HOTEL Operating hours :

Mon - Sun: 08:00-17:00

"; $str_error_html .= ""; } } if($_SESSION[$e_o->f1["fname"]] == '8' ){ if($_SESSION["starttime"] > "21:01:00"){; $str_error_html = ""; $str_error_html .= "CHIANGRAI - CHIANG RAI AIRPORT Operating hours :

Mon - Sun: 08:00-21:00

"; $str_error_html .= ""; }else if($_SESSION["starttime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "CHIANGRAI - CHIANG RAI AIRPORT Operating hours :

Mon - Sun: 08:00-21:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] > "21:01:00"){; $str_error_html = ""; $str_error_html .= "CHIANGRAI - CHIANG RAI AIRPORT Operating hours :

Mon - Sun: 08:00-21:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "CHIANGRAI - CHIANG RAI AIRPORT Operating hours :

Mon - Sun: 08:00-21:00

"; $str_error_html .= ""; } } if($_SESSION[$e_o->f1["fname"]] == '9' ){ if($_SESSION["starttime"] > "20:01:00"){; $str_error_html = ""; $str_error_html .= "PHITSANULOKE - PHITSANULOKE AIRPORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["starttime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "PHITSANULOKE - PHITSANULOKE AIRPORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] > "20:01:00"){; $str_error_html = ""; $str_error_html .= "PHITSANULOKE - PHITSANULOKE AIRPORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "PHITSANULOKE - PHITSANULOKE AIRPORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; } } if($_SESSION[$e_o->f1["fname"]] == '10' ){ if($_SESSION["starttime"] > "20:01:00"){; $str_error_html = ""; $str_error_html .= "UDONTHANI - UDON THANI AIRPORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["starttime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "UDONTHANI - UDON THANI AIRPORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] > "20:01:00"){; $str_error_html = ""; $str_error_html .= "UDONTHANI - UDON THANI AIRPORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "UDONTHANI - UDON THANI AIRPORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; } } if($_SESSION[$e_o->f1["fname"]] == '11' ){ if($_SESSION["starttime"] > "20:01:00"){; $str_error_html = ""; $str_error_html .= "KHON KAEN - KHON KAEN AIRPORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["starttime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "KHON KAEN - KHON KAEN AIRPORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] > "20:01:00"){; $str_error_html = ""; $str_error_html .= "KHON KAEN - KHON KAEN AIRPORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "KHON KAEN - KHON KAEN AIRPORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; } } if($_SESSION[$e_o->f1["fname"]] == '12' ){ if($_SESSION["starttime"] > "21:01:00"){; $str_error_html = ""; $str_error_html .= "PHUKET - PHUKET AIRPORT Operating hours :

Mon - Sun: 07:30-21:00

"; $str_error_html .= ""; }else if($_SESSION["starttime"] < "07:29:00"){; $str_error_html = ""; $str_error_html .= "PHUKET - PHUKET AIRPORT Operating hours :

Mon - Sun: 07:30-21:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] > "21:01:00"){; $str_error_html = ""; $str_error_html .= "PHUKET - PHUKET AIRPORT Operating hours :

Mon - Sun: 07:30-21:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] < "07:29:00"){; $str_error_html = ""; $str_error_html .= "PHUKET - PHUKET AIRPORT Operating hours :

Mon - Sun: 07:30-21:00

"; $str_error_html .= ""; } } if($_SESSION[$e_o->f1["fname"]] == '13' ){ if($_SESSION["starttime"] > "21:01:00"){; $str_error_html = ""; $str_error_html .= "SAMUI - SAMUI AIRPORT Operating hours :

Mon - Sun: 08:00-21:00

"; $str_error_html .= ""; }else if($_SESSION["starttime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "SAMUI - SAMUI AIRPORT Operating hours :

Mon - Sun: 08:00-21:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] > "21:01:00"){; $str_error_html = ""; $str_error_html .= "SAMUI - SAMUI AIRPORT Operating hours :

Mon - Sun: 08:00-21:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "SAMUI - SAMUI AIRPORT Operating hours :

Mon - Sun: 08:00-21:00

"; $str_error_html .= ""; } } if($_SESSION[$e_o->f1["fname"]] == '14' ){ if($_SESSION["starttime"] > "20:01:00"){; $str_error_html = ""; $str_error_html .= "HAT YAI - HAT YAI AIRPORT Operating hours :

Mon - Sun: 07:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["starttime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "HAT YAI - HAT YAI AIRPORT Operating hours :

Mon - Sun: 07:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] > "20:01:00"){; $str_error_html = ""; $str_error_html .= "HAT YAI - HAT YAI AIRPORT Operating hours :

Mon - Sun: 07:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "HAT YAI - HAT YAI AIRPORT Operating hours :

Mon - Sun: 07:00-20:00

"; $str_error_html .= ""; } } if($_SESSION[$e_o->f1["fname"]] == '15' ){ if($_SESSION["starttime"] > "19:01:00"){; $str_error_html = ""; $str_error_html .= "KRABI - KRABI AIRPORT Operating hours :

Mon - Sun: 08:00-19:00

"; $str_error_html .= ""; }else if($_SESSION["starttime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "KRABI - KRABI AIRPORT Operating hours :

Mon - Sun: 08:00-19:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] > "19:01:00"){; $str_error_html = ""; $str_error_html .= "KRABI - KRABI AIRPORT Operating hours :

Mon - Sun: 08:00-19:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "KRABI - KRABI AIRPORT Operating hours :

Mon - Sun: 08:00-19:00

"; $str_error_html .= ""; } } if($_SESSION[$e_o->f1["fname"]] == '16' ){ if($_SESSION["starttime"] > "20:01:00"){; $str_error_html = ""; $str_error_html .= "SURATTNANI - SURATTNANI AIRPORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["starttime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "SURATTNANI - SURATTNANI AIRPORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] > "20:01:00"){; $str_error_html = ""; $str_error_html .= "SURATTNANI - SURATTNANI AIRPORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "SURATTNANI - SURATTNANI AIRPORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; } } if($_SESSION[$e_o->f1["fname"]] == '17' ){ if($_SESSION["starttime"] > "20:01:00"){; $str_error_html = ""; $str_error_html .= "UBON RATCHATHANI - UBON RATCHATHANI AIRPORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["starttime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "UBON RATCHATHANI - UBON RATCHATHANI AIRPORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] > "20:01:00"){; $str_error_html = ""; $str_error_html .= "UBON RATCHATHANI - UBON RATCHATHANI AIRPORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] < "07:59:00"){; $str_error_html = ""; $str_error_html .= "UBON RATCHATHANI - UBON RATCHATHANI AIRPORT Operating hours :

Mon - Sun: 08:00-20:00

"; $str_error_html .= ""; } } if($_SESSION[$e_o->f1["fname"]] == '18' ){ if($_SESSION["starttime"] > "19:01:00"){; $str_error_html = ""; $str_error_html .= "NAKORN SI THAMARAT- NAKORN SI THAMARAT AIRPORT Operating hours :

Mon - Sun: 07:00-19:00

"; $str_error_html .= ""; }else if($_SESSION["starttime"] < "06:59:00"){; $str_error_html = ""; $str_error_html .= "NAKORN SI THAMARAT- NAKORN SI THAMARAT AIRPORT Operating hours :

Mon - Sun: 07:00-19:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] > "19:01:00"){; $str_error_html = ""; $str_error_html .= "NAKORN SI THAMARAT- NAKORN SI THAMARAT AIRPORT Operating hours :

Mon - Sun: 07:00-19:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] < "06:59:00"){; $str_error_html = ""; $str_error_html .= "NAKORN SI THAMARAT- NAKORN SI THAMARAT AIRPORT Operating hours :

Mon - Sun: 07:00-19:00

"; $str_error_html .= ""; } } if($_SESSION[$e_o->f1["fname"]] == '19' ){ if($_SESSION["starttime"] > "19:01:00"){; $str_error_html = ""; $str_error_html .= "TRANG - TRANG AIRPORT Operating hours :

Mon - Sun: 07:30-19:00

"; $str_error_html .= ""; }else if($_SESSION["starttime"] < "07:29:00"){; $str_error_html = ""; $str_error_html .= "TRANG - TRANG AIRPORT Operating hours :

Mon - Sun: 07:30-19:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] > "19:01:00"){; $str_error_html = ""; $str_error_html .= "TRANG - TRANG AIRPORT Operating hours :

Mon - Sun: 07:30-19:00

"; $str_error_html .= ""; }else if($_SESSION["endtime"] < "07:29:00"){; $str_error_html = ""; $str_error_html .= "TRANG - TRANG AIRPORT Operating hours :

Mon - Sun: 07:30-19:00

"; $str_error_html .= ""; } } /****** END Office Hours***********/ } }else{ $str_error_html .= ""; } $pagename = " > Reservation"; ?>
"; $popup_group .= "window.open("; $popup_group .= "'" . "ci_avis_cg.php" . "', "; $popup_group .= "'" . "_blank" . "', "; $popup_group .= "'" . "width=800,height=600" . "'"; $popup_group .= ");"; $popup_group .= ""; //echo $popup_group; ?>
0 ){ if($rs_cd[0][$e_g_b->f2["fname"]] == "O"){?> Selected car group - รุ่นรถที่เลือก
Group O Toyota Yaris 1.2 Eco car Automatic
4 Small vehicle are perfect to drive in Thailand and around the island - fun to drive.
4
2
Hot Rate Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee
f2["fname"]] == "A"){?> Selected car group - รุ่นรถที่เลือก
Group A Toyota Vios 1.5 Manual
or Similar
4 Small vehicle are perfect to drive in Thailand and around the island - fun to drive.
4
2
Hot Rate Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee
f2["fname"]] == "B"){?> Selected car group - รุ่นรถที่เลือก
Group B Toyota Vios 1.5 Automatic
or Similar
4 Small vehicles are perfect to drive in Thailand and around the island - fun to drive.
4
2
Hot Rate Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee
f2["fname"]] == "K"){?> Selected car group - รุ่นรถที่เลือก
Group K Toyota Yaris 1.5Automatic
or Similar
5 Small vehicles are perfect to drive in Thailand and around the island - fun to drive.
4
2
Hot Rate Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee
f2["fname"]] == "C"){?> Selected car group - รุ่นรถที่เลือก
Group C Toyota Altis 1.6 Automatic
or Similar
4 Avis Thailand offers a wide range of medium vehicles in different engines sizes, which comfortably fits up to five passengers and luggage. Perfect to drive in Thailand.
5
2
Hot Rate Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee
f2["fname"]] == "D"){?> Selected car group - รุ่นรถที่เลือก
Group D Honda Civic 1.8 Automatic
or Similar
4 Avis Thailand offers a wide range of medium vehicles in different engines sizes, which comfortably fits up to five passengers and luggage. Perfect to drive in Thailand.
5
2
Hot Rate Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee
f2["fname"]] == "E"){?> Selected car group - รุ่นรถที่เลือก
Group E Toyota Camry 2.0 G Automatic
or Similar
4 Avis is also providing a wide range of standard, executive and luxury vehicles in Thailand - travel in more comfort around Thailand.
5
2
Hot Rate Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee
f2["fname"]] == "L"){?> Selected car group - รุ่นรถที่เลือก
Group L Toyota Hiace 2.5 Manual
or Similar
3 Avis is also providing a wide range of standard, executive and luxury vehicles in Thailand - travel in more comfort around Thailand.
12
4
Hot Rate Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee
f2["fname"]] == "M"){?> Selected car group - รุ่นรถที่เลือก
Group M Toyota Innova2.0 Automatic
or Similar
4 Avis is also providing a wide range of standard, executive and luxury vehicles in Thailand - travel in more comfort around Thailand.
7
4
Hot Rate Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee
f2["fname"]] == "N"){?> Selected car group - รุ่นรถที่เลือก
Group N Toyota Vigo Double Cab 3.0 Automatic
or Similar
5 Avis is also providing a wide range of standard, executive and luxury vehicles in Thailand - travel in more comfort around Thailand.
4
4
Hot Rate Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee
f2["fname"]] == "P"){?> Selected car group - รุ่นรถที่เลือก
Group P Toyota Fortuner 3.0 Automatic
New or Similar
4 Avis is also providing a wide range of standard, executive and luxury vehicles in Thailand - travel in more comfort around Thailand.
5
4
Hot Rate Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee
f2["fname"]] == "F"){?> Selected car group - รุ่นรถที่เลือก
Group F Honda CRV 2.0 Automatic
New or Similar
4 Avis is also providing a wide range of standard, executive and luxury vehicles in Thailand - travel in more comfort around Thailand.
5
4
Hot Rate Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee

Other Car Group - รถรุ่่นอื่นๆ

0 ){ for($i = 0; $i < count($rs_cd_nocar); $i++){ /*******************************/ //echo $rs_cd_nocar[$i][$e_g_b->f1["fname"]]; $dbcon = new db_access($host, $dbuser, $dbpass, $dbname); $data = array( $e_b_b->f5["fname"] => $_POST[$e_o->f1["fname"]], $e_b_b->f6["fname"] => $rs_cd_nocar[$i][$e_g_b->f1["fname"]], $e_pd->f3["fname"] => $_POST["startday_b"], $e_cd->f3["fname"] => $_POST["startday_b"] ); if($useday > 3){ $query = $obj_sql->get_random_cost_1ListPriceCar($data, $e_o, $e_g_b, $e_pd, $e_cd); $query_no = $obj_sql->get_random_cost_nocar_1ListGroup($data, $e_o, $e_g_b, $e_pd, $e_cd); }else{ $query = $obj_sql->get_random_cost_1ListPriceCar($data, $e_o, $e_g_b, $e_pd, $e_cd); $query_no = $obj_sql->get_random_cost_nocar_1ListGroup($data, $e_o, $e_g_b, $e_pd ,$e_cd); //echo $query_no; } $rs_pd_g = $dbcon->get_table($query); $count_pd = mysql_affected_rows(); $rs_pd_no_g = $dbcon->get_table($query_no); $count_pd_no = mysql_affected_rows(); //echo $query_no . "

"; //--------------------------------------------------------------------------------------- $dbcon->db_close(); /******************************/ if($rs_cd_nocar[$i][$e_g_b->f2["fname"]] == "O" ){ if($rs_cd[0][$e_g_b->f2["fname"]] == "A" || $rs_cd[0][$e_g_b->f2["fname"]] == "B" || $rs_cd[0][$e_g_b->f2["fname"]] == "K" || $rs_cd[0][$e_g_b->f2["fname"]] == "C" || $rs_cd[0][$e_g_b->f2["fname"]] == "D" || $rs_cd[0][$e_g_b->f2["fname"]] == "E" || $rs_cd[0][$e_g_b->f2["fname"]] == "F" || $rs_cd[0][$e_g_b->f2["fname"]] == "M" || $rs_cd[0][$e_g_b->f2["fname"]] == "L" || $rs_cd[0][$e_g_b->f2["fname"]] == "P" || $rs_cd[0][$e_g_b->f2["fname"]] == "N" ){}else{ ?>
Group O Toyota Yaris 1.2 Eco car Automatic
4 Small vehicle are perfect to drive in Thailand and around the island - fun to drive.
4
2
Hot Rate f4["fname"]] * $useday; $cost_cdw = $rs_pd[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw; $cost_vat = ($cost_rate+$cost_cdw)* 0.07; number_format($cost_vat,2); }else{ $cost_rate = $rs_pd_no[$i][$e_pd->f4["fname"]] * $useday; $cost_cdw = $rs_pd[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw+$rate_hour; $cost_vat = $cost_total* 0.07; number_format($cost_vat,2); } // echo $rs_pd[0][$e_g_b->f5["fname"]]* $useday; $cost_amount_1 = $cost_total + $cost_vat; $cost_amount = number_format($cost_amount_1,2); echo "" .$cost_amount. ""; ?> Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee
f2["fname"]] == "A" ){ if($rs_cd[0][$e_g_b->f2["fname"]] == "B" || $rs_cd[0][$e_g_b->f2["fname"]] == "K" || $rs_cd[0][$e_g_b->f2["fname"]] == "C" || $rs_cd[0][$e_g_b->f2["fname"]] == "D" || $rs_cd[0][$e_g_b->f2["fname"]] == "E" || $rs_cd[0][$e_g_b->f2["fname"]] == "F" || $rs_cd[0][$e_g_b->f2["fname"]] == "M" || $rs_cd[0][$e_g_b->f2["fname"]] == "L" || $rs_cd[0][$e_g_b->f2["fname"]] == "P" || $rs_cd[0][$e_g_b->f2["fname"]] == "N" ){}else{ ?>
Group A Toyota Vios 1.5 Manual
or Similar
4 Small vehicle are perfect to drive in Thailand and around the island - fun to drive.
4
2
Hot Rate f4["fname"]] * $useday; $cost_cdw = $rs_pd[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw; $cost_vat = ($cost_rate+$cost_cdw)* 0.07; number_format($cost_vat,2); }else{ $cost_rate = $rs_pd_no[$i][$e_pd->f4["fname"]] * $useday; $cost_cdw = $rs_pd[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw+$rate_hour; $cost_vat = $cost_total* 0.07; number_format($cost_vat,2); } // echo $rs_pd[0][$e_g_b->f5["fname"]]* $useday; $cost_amount_1 = $cost_total + $cost_vat; $cost_amount = number_format($cost_amount_1,2); echo "" .$cost_amount. ""; ?> Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee
f2["fname"]] == "B" ){ if($rs_cd[0][$e_g_b->f2["fname"]] == "K" || $rs_cd[0][$e_g_b->f2["fname"]] == "C" || $rs_cd[0][$e_g_b->f2["fname"]] == "D" || $rs_cd[0][$e_g_b->f2["fname"]] == "E" || $rs_cd[0][$e_g_b->f2["fname"]] == "F" || $rs_cd[0][$e_g_b->f2["fname"]] == "M" || $rs_cd[0][$e_g_b->f2["fname"]] == "L" || $rs_cd[0][$e_g_b->f2["fname"]] == "P" || $rs_cd[0][$e_g_b->f2["fname"]] == "N" ){}else{ ?>
Group B Toyota Vios 1.5 Automatic
or Similar
4 Small vehicles are perfect to drive in Thailand and around the island - fun to drive.
4
2
 
Hot Rate
f4["fname"]] * $useday; $cost_cdw = $rs_pd_no_g[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw; $cost_vat = ($cost_rate+$cost_cdw)* 0.07; number_format($cost_vat,2); }else{ $cost_rate = $rs_pd_no_g[$i][$e_pd->f4["fname"]] * $useday; $cost_cdw = $rs_pd_no_g[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw+$rate_hour; $cost_vat = $cost_total* 0.07; number_format($cost_vat,2); } // echo $rs_pd[0][$e_g_b->f5["fname"]]* $useday; $cost_amount_1 = $cost_total + $cost_vat; $cost_amount = number_format($cost_amount_1,2); echo "" .$cost_amount. ""; ?>
Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee
f2["fname"]] == "K" ){ if($rs_cd[0][$e_g_b->f2["fname"]] == "C" || $rs_cd[0][$e_g_b->f2["fname"]] == "D" || $rs_cd[0][$e_g_b->f2["fname"]] == "E" || $rs_cd[0][$e_g_b->f2["fname"]] == "F" || $rs_cd[0][$e_g_b->f2["fname"]] == "M" || $rs_cd[0][$e_g_b->f2["fname"]] == "L" || $rs_cd[0][$e_g_b->f2["fname"]] == "P" || $rs_cd[0][$e_g_b->f2["fname"]] == "N" ){}else{ if($rs_pd_no_g[0][$e_pd->f4["fname"]] == "" ){}else{ ?>
Group K Toyota Yaris 1.5Automatic
or Similar
5 Small vehicles are perfect to drive in Thailand and around the island - fun to drive.
4
2
Hot Rate
f4["fname"]] * $useday; $cost_cdw = $rs_pd_no_g[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw; $cost_vat = ($cost_rate+$cost_cdw)* 0.07; number_format($cost_vat,2); }else{ $cost_rate = $rs_pd_no_g[$i][$e_pd->f4["fname"]] * $useday; $cost_cdw = $rs_pd_no_g[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw+$rate_hour; $cost_vat = $cost_total* 0.07; number_format($cost_vat,2); } // echo $rs_pd[0][$e_g_b->f5["fname"]]* $useday; $cost_amount_1 = $cost_total + $cost_vat; $cost_amount = number_format($cost_amount_1,2); echo "" .$cost_amount. ""; ?>
Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee
f2["fname"]] == "C" ){ if($rs_cd[0][$e_g_b->f2["fname"]] == "D" || $rs_cd[0][$e_g_b->f2["fname"]] == "E" || $rs_cd[0][$e_g_b->f2["fname"]] == "F" || $rs_cd[0][$e_g_b->f2["fname"]] == "M" || $rs_cd[0][$e_g_b->f2["fname"]] == "L" || $rs_cd[0][$e_g_b->f2["fname"]] == "P" || $rs_cd[0][$e_g_b->f2["fname"]] == "N" ){}else{ ?>
Group C Toyota Altis 1.6 Automatic
or Similar
4 Avis Thailand offers a wide range of medium vehicles in different engines sizes, which comfortably fits up to five passengers and luggage. Perfect to drive in Thailand.
5
2
Hot Rate
f4["fname"]] * $useday; $cost_cdw = $rs_pd_no_g[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw; $cost_vat = ($cost_rate+$cost_cdw)* 0.07; number_format($cost_vat,2); }else{ $cost_rate = $rs_pd_no_g[0][$e_pd->f4["fname"]] * $useday; $cost_cdw = $rs_pd_no_g[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw+$rate_hour; $cost_vat = $cost_total* 0.07; number_format($cost_vat,2); } //echo $rs_pd_no[0][$e_pd->f4["fname"]]; $cost_amount_1 = $cost_total + $cost_vat; $cost_amount = number_format($cost_amount_1,2); echo "" .$cost_amount. ""; ?>
Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee
f2["fname"]] == "D" ){ if($rs_cd[0][$e_g_b->f2["fname"]] == "E" || $rs_cd[0][$e_g_b->f2["fname"]] == "F" || $rs_cd[0][$e_g_b->f2["fname"]] == "M" || $rs_cd[0][$e_g_b->f2["fname"]] == "L" || $rs_cd[0][$e_g_b->f2["fname"]] == "P" || $rs_cd[0][$e_g_b->f2["fname"]] == "N" ){}else{ ?>
Group D Honda Civic 1.8 Automatic
or Similar
4 Avis Thailand offers a wide range of medium vehicles in different engines sizes, which comfortably fits up to five passengers and luggage. Perfect to drive in Thailand.
5
2
Hot Rate f4["fname"]] * $useday; $cost_cdw = $rs_pd_no_g[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw; $cost_vat = ($cost_rate+$cost_cdw)* 0.07; number_format($cost_vat,2); }else{ $cost_rate = $rs_pd_no_g[0][$e_pd->f4["fname"]] * $useday; $cost_cdw = $rs_pd_no_g[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw+$rate_hour; $cost_vat = $cost_total* 0.07; number_format($cost_vat,2); } //echo $rs_pd_no[0][$e_pd->f4["fname"]]; $cost_amount_1 = $cost_total + $cost_vat; $cost_amount = number_format($cost_amount_1,2); echo "" .$cost_amount. ""; ?> Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee
f2["fname"]] == "E" && $rs_cd[$i][$e_g_b->f2["fname"]] != "D" && $rs_cd[$i][$e_g_b->f2["fname"]] != "C" && $rs_cd[$i][$e_g_b->f2["fname"]] != "K" && $rs_cd[$i][$e_g_b->f2["fname"]] != "B" && $rs_cd[$i][$e_g_b->f2["fname"]] != "A"){?>
Group E Toyota Camry 2.0 G Automatic
or Similar
4 Avis is also providing a wide range of standard, executive and luxury vehicles in Thailand - travel in more comfort around Thailand.
5
2
Hot Rate f4["fname"]] * $useday; $cost_cdw = $rs_pd_no_g[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw; $cost_vat = ($cost_rate+$cost_cdw)* 0.07; number_format($cost_vat,2); }else{ $cost_rate = $rs_pd_no_g[0][$e_pd->f4["fname"]] * $useday; $cost_cdw = $rs_pd_no_g[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw+$rate_hour; $cost_vat = $cost_total* 0.07; number_format($cost_vat,2); } //echo $rs_pd_no[0][$e_pd->f4["fname"]]; $cost_amount_1 = $cost_total + $cost_vat; $cost_amount = number_format($cost_amount_1,2); echo "" .$cost_amount. ""; ?> Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee
f2["fname"]] == "L" && $rs_cd[$i][$e_g_b->f2["fname"]] != "D" && $rs_cd[$i][$e_g_b->f2["fname"]] != "C" && $rs_cd[$i][$e_g_b->f2["fname"]] != "K" && $rs_cd[$i][$e_g_b->f2["fname"]] != "B" && $rs_cd[$i][$e_g_b->f2["fname"]] != "A"){?>
Group L Toyota Hiace 2.5 Manual
or Similar
3 Avis is also providing a wide range of standard, executive and luxury vehicles in Thailand - travel in more comfort around Thailand.
12
4
Hot Rate f4["fname"]] * $useday; $cost_cdw = $rs_pd_no_g[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw; $cost_vat = ($cost_rate+$cost_cdw)* 0.07; number_format($cost_vat,2); }else{ $cost_rate = $rs_pd_no_g[0][$e_pd->f4["fname"]] * $useday; $cost_cdw = $rs_pd_no_g[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw+$rate_hour; $cost_vat = $cost_total* 0.07; number_format($cost_vat,2); } //echo $rs_pd_no[0][$e_pd->f4["fname"]]; $cost_amount_1 = $cost_total + $cost_vat; $cost_amount = number_format($cost_amount_1,2); echo "" .$cost_amount. ""; ?> Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee
f2["fname"]] == "M" && $rs_cd[$i][$e_g_b->f2["fname"]] != "D" && $rs_cd[$i][$e_g_b->f2["fname"]] != "C" && $rs_cd[$i][$e_g_b->f2["fname"]] != "K" && $rs_cd[$i][$e_g_b->f2["fname"]] != "B" && $rs_cd[$i][$e_g_b->f2["fname"]] != "A"){?>
Group M Toyota Innova2.0 Automatic
or Similar
4 Avis is also providing a wide range of standard, executive and luxury vehicles in Thailand - travel in more comfort around Thailand.
7
4
Hot Rate f4["fname"]] * $useday; $cost_cdw = $rs_pd_no_g[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw; $cost_vat = ($cost_rate+$cost_cdw)* 0.07; number_format($cost_vat,2); }else{ $cost_rate = $rs_pd_no_g[0][$e_pd->f4["fname"]] * $useday; $cost_cdw = $rs_pd_no_g[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw+$rate_hour; $cost_vat = $cost_total* 0.07; number_format($cost_vat,2); } //echo $rs_pd_no[0][$e_pd->f4["fname"]]; $cost_amount_1 = $cost_total + $cost_vat; $cost_amount = number_format($cost_amount_1,2); echo "" .$cost_amount. ""; ?> Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee
f2["fname"]] == "N" && $rs_cd[$i][$e_g_b->f2["fname"]] != "D" && $rs_cd[$i][$e_g_b->f2["fname"]] != "C" && $rs_cd[$i][$e_g_b->f2["fname"]] != "K" && $rs_cd[$i][$e_g_b->f2["fname"]] != "B" && $rs_cd[$i][$e_g_b->f2["fname"]] != "A"){?>
Group N Toyota Vigo Double Cab 3.0 Automatic
or Similar
5 Avis is also providing a wide range of standard, executive and luxury vehicles in Thailand - travel in more comfort around Thailand.
4
4
Hot Rate f4["fname"]] * $useday; $cost_cdw = $rs_pd_no_g[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw; $cost_vat = ($cost_rate+$cost_cdw)* 0.07; number_format($cost_vat,2); }else{ $cost_rate = $rs_pd_no_g[0][$e_pd->f4["fname"]] * $useday; $cost_cdw = $rs_pd_no_g[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw+$rate_hour; $cost_vat = $cost_total* 0.07; number_format($cost_vat,2); } //echo $rs_pd_no[0][$e_pd->f4["fname"]]; $cost_amount_1 = $cost_total + $cost_vat; $cost_amount = number_format($cost_amount_1,2); echo "" .$cost_amount. ""; ?> Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee
f2["fname"]] == "P" && $rs_cd[$i][$e_g_b->f2["fname"]] != "D" && $rs_cd[$i][$e_g_b->f2["fname"]] != "C" && $rs_cd[$i][$e_g_b->f2["fname"]] != "K" && $rs_cd[$i][$e_g_b->f2["fname"]] != "B" && $rs_cd[$i][$e_g_b->f2["fname"]] != "A"){?>
Group P Toyota Fortuner 3.0 Automatic
New or Similar
4 Avis is also providing a wide range of standard, executive and luxury vehicles in Thailand - travel in more comfort around Thailand.
5
4
Hot Rate f4["fname"]] * $useday; $cost_cdw = $rs_pd_no_g[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw; $cost_vat = ($cost_rate+$cost_cdw)* 0.07; number_format($cost_vat,2); }else{ $cost_rate = $rs_pd_no_g[0][$e_pd->f4["fname"]] * $useday; $cost_cdw = $rs_pd_no_g[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw+$rate_hour; $cost_vat = $cost_total* 0.07; number_format($cost_vat,2); } //echo $rs_pd_no[0][$e_pd->f4["fname"]]; $cost_amount_1 = $cost_total + $cost_vat; $cost_amount = number_format($cost_amount_1,2); echo "" .$cost_amount. ""; ?> Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee
f2["fname"]] == "F" && $rs_cd[$i][$e_g_b->f2["fname"]] != "D" && $rs_cd[$i][$e_g_b->f2["fname"]] != "C" && $rs_cd[$i][$e_g_b->f2["fname"]] != "K" && $rs_cd[$i][$e_g_b->f2["fname"]] != "B" && $rs_cd[$i][$e_g_b->f2["fname"]] != "A"){?>
Group F Honda CRV 2.0 Automatic
New or Similar
4 Avis is also providing a wide range of standard, executive and luxury vehicles in Thailand - travel in more comfort around Thailand.
5
4
Hot Rate f4["fname"]] * $useday; $cost_cdw = $rs_pd_no_g[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw; $cost_vat = ($cost_rate+$cost_cdw)* 0.07; number_format($cost_vat,2); }else{ $cost_rate = $rs_pd_no_g[0][$e_pd->f4["fname"]] * $useday; $cost_cdw = $rs_pd_no_g[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw+$rate_hour; $cost_vat = $cost_total* 0.07; number_format($cost_vat,2); } //echo $rs_pd_no[0][$e_pd->f4["fname"]]; $cost_amount_1 = $cost_total + $cost_vat; $cost_amount = number_format($cost_amount_1,2); echo "" .$cost_amount. ""; ?> Next
Promotion : จองก่อนไม่ใช้ไม่มีค่าใช้จ่าย
Cancel booking without any extra fee

  0 ){ ?>
Price
Rental cost : 
f4["fname"]]+$rs_pd[0][$e_g_b->f5["fname"]]; $rate_hour = ($rate_tcdw/5)*$late_time; // ราย ชม. $rate_per = $rate_tcdw* $useday; $rate_charge = $rate_per+$rate_hour; echo number_format($rate_charge,2); }else{ echo number_format($rs_pd[0][$e_pd->f4["fname"]]*$useday,2); } ?> ฿
Collision Damage Waiver (CDW) : 
f5["fname"]]* $useday; ?>
V.A.T.(7%)  :
f4["fname"]] * $useday; $cost_cdw = $rs_pd[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw; $cost_vat = ($cost_rate+$cost_cdw)* 0.07; echo number_format($cost_vat,2); }else{ $cost_rate = $rs_pd[0][$e_pd->f4["fname"]] * $useday; $cost_cdw = $rs_pd[0][$e_g_b->f5["fname"]]* $useday; $cost_total = $cost_rate+$cost_cdw+$rate_hour; $cost_vat = $cost_total* 0.07; echo number_format($cost_vat,2); } ?>
Amount cost : 
" .$cost_amount. ""; ?>
Trip
1. Customer can cancel reservation online without any extra fee.
2. Avis Thailand recommend customer reserve reservation online immediately because the cost of rental charge may increase when customer reserve rental car a couple day before use it.
3. The rental charge of reservation online increase when the customer has a lot of demand to rent car.
เงื่อนไขการจอง
1. การจอง Online สามารถยกเลิกโดยไม่ค่าใช้จ่าย
2. บริษัทแนะนำให้ทำการจองในทันทีเนื่องจากอัตราค่าบริการ
อาจมีการปรับขึ้นเมื่อใกล้ถึงวันใช้รถ
3. อัตราการจองมีการปรับขึ้นเมื่อรถยนต์มีอัตราลดลง
Rental infomation
  = 4 && $late_time == 0){?> = 9 ){ ?> = 4 && $late_time != 0){?>
Rental office help f2["fname"]]; ?> f3["fname"]] .")"; ?>
Car group help f2["fname"]]; ?>
Start date
End date
Use day = 9 ){ echo $useday ." D "; }elseif($usedtime < 0 ){ echo $useday ." D "; }else{ echo $useday ." D / ". $usedtime. " hrs."; } ?>
Free late return hrs.
Free late return 4 hrs.
Free late return 4 hrs.
Extra late return charge hrs.
Free late return 4 hrs.
 

*The above price is rental rate only, optional service is not included. For Optional Service, please go to next page.

ราคาที่แสดงด้านบนนี้ คือค่าเช่าเท่านั้นและไม่รวมค่าบริการเสริม ถ้าต้องการบริการเสริม กรุณาเลือกในหน้าถัดไป