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 = $_SESSION["startday_b"]; $stopdate = $_SESSION["endday_b"] ; $befortime = $_SESSION["starttime"]; $stoptime = $_SESSION["endtime"]; //$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($_SESSION[$e_o->f1["fname"]] == ""){ $str_error_html .= "Please select a Office." . "
"; $response_url = $_SERVER['HTTP_REFERER']; } if($_GET[$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(!$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"] => $_SESSION[$e_o->f1["fname"]], $e_b_b->f6["fname"] => $_GET[$e_g_b->f1["fname"]], $e_cd->f3["fname"] => $_SESSION["startday_b"] ); $query = $obj_sql->get_carday_booking($data, $e_o, $e_g_b, $e_cd, $e_cd_pl); //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 ------------------------------------------- //--------------------------------------------------------------------------------------- echo $_POST[$e_g_b->f1["fname"]]; $data = array( $e_b_b->f5["fname"] => $_SESSION[$e_o->f1["fname"]], $e_b_b->f6["fname"] => $_GET[$e_g_b->f1["fname"]], $e_pd->f3["fname"] => $_SESSION["startday_b"], $e_cd->f3["fname"] => $_SESSION["startday_b"] ); if($useday > 3){ $query = $obj_sql->get_random_cost_1($data, $e_o, $e_g_b, $e_pd, $e_cd, FALSE); //echo $query; $query_no = $obj_sql->get_random_cost_nocar_1($data, $e_o, $e_g_b, $e_pd, $e_cd, FALSE); }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); } $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){ $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 = $_SESSION["starttime"]; $endtime = $_SESSION["endtime"]; $_SESSION[$e_o->f1["fname"]] = $_SESSION[$e_o->f1["fname"]]; $_SESSION[$e_g_b->f1["fname"]] = $rs_pd[0][$e_g_b->f1["fname"]]; $_SESSION[$e_pd->f4["fname"]] = $rs_pd[0][$e_pd->f4["fname"]]; $_SESSION["startday_b"] = $_SESSION["startday_b"]; $_SESSION["endday_b"] = $_SESSION["endday_b"]; $_SESSION["starttime"] = $starttime; $_SESSION["endtime"] = $endtime; $_SESSION[$e_b_b->f24["fname"]] = $_SESSION[$e_b_b->f24["fname"]]; } /******** Office Hours*************/ //echo $_SESSION["starttime"]; //echo $_SESSION["endtime"]; // 08:00:00 <= 18:00:00 /****** END Office Hours***********/ } }else{ $str_error_html .= ""; } $pagename = " > Reservation"; ?>
help Click here to get help
  = 4 && $late_time == 0){?> = 9 ){ ?> = 4 && $late_time != 0){?>
Rental infomation
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 rate is not included V.A.T., Accident Insurance, Optional Service.
The lessor reserves the right to service on mentioned rental period only. For more information, Please call 02-2511131-2 .
ราคานี้ยังไม่รวม ภาษีมูลค่าเพิ่ม, ประกันภัยพื้นฐาน และ ค่าบริการเสริมอื่นๆ
ผู้ให้เช่าขอสงวนสิทธิ์ในการให้เช่ารถในอัตรานี้ตามช่วงเวลาที่ระบุข้างต้น หากต้องการ เพิ่ม/ลด/แก้ไข วันใช้งานกรุณาติดต่อ 02-2511131-2
I have read, understand, and agree to all the Terms and Conditions. mentioned above.
 

 
Customer Detail
Please type your information in English Language.
กรุณาพิมพ์ข้อมูลของคุณด้วยภาษาอังกฤษ
First name Last name
" type="text" id="f2["fname"]; ?>" maxlength="100" /> " type="text" id="f3["fname"]; ?>" maxlength="100" />
Birth date
bind(); echo $ddl_month->bind(); echo $ddl_year->bind(); ?>
Address
" type="text" id="f6["fname"]; ?>" maxlength="255" style="width:300px;" />
Mobile*** Telephone
" type="text" id="f13["fname"]; ?>" maxlength="255" /> " type="text" id="f4["fname"]; ?>" maxlength="20" />
Thai people please provide mobile phone number,for foreigner please provide home mobile phone number
E-mail *** Email must be filled in " type="text" id="f5["fname"]; ?>" maxlength="255" />
City Country
" type="text" id="f8["fname"]; ?>" maxlength="255" /> " type="text" id="f9["fname"]; ?>" maxlength="255" />
* The Hot Rate Booking send Confirmation email to your entry email.
 

Condition
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. อัตราการจองมีการปรับขึ้นเมื่อรถยนต์มีอัตราลดลง