?
Path : /home/admin/domains/happytokorea.com/private_html/ |
Current File : /home/admin/domains/happytokorea.com/private_html/tour-detail.php |
<? ob_start(); session_start(); require_once('config.php'); require_once('libs/global.php'); require_once('libs/MySql.php'); require_once('libs/function.php'); require_once('modules/users/mod_user.php'); require_once('libs/backoff_ajax.php'); require_once('libs/backoff.php'); require_once('libs/menuTree.php'); require_once('libs/xajax/xajax.inc.php'); require_once('libs/xajax/xajaxExtend.php'); $db=new MySql; $_SESSION["user_login"]; $user=new user(); if($user_login['Login']!=""){ //require_once("admin.php"); }else{ require_once("modules/users/com_login.php"); if(!isset($mod)){ $mod=$_GET['mod']; }else if($mod==""){ $mod=$_POST['mod']; } } ?> <? $topic_id=$_GET['id']; $data=$db->getDataOneRow('tour',$topic_id,'id'); $_GET['id'] = $data['id']; ?> <?php header("Content-Type:text/html; charset=utf-8"); //If the form is submitted if(isset($_POST)){ if(isset($_POST['booking_name'])) { // print_r($_POST); //Check to make sure that the name field is not empty if($_POST['booking_name'] == '') { $hasError = true; echo '<script type="text/javascript">alert("กรุณาใส่ชื่อ นามสกุล");</script>' ; } if($_POST['booking_tel'] == '') { $hasError = true; echo '<script type="text/javascript">alert("กรุณาใส่เบอร์โทรศัพท์มือถือ");</script>' ; } //Check to make sure that the subject field is not empty $subject = 'ฟอร์มจองโปรแกรมทัวร์ : '.$data['name']; //Check to make sure sure that a valid email address is submitted if(trim($_POST['booking_mail']) == '') { $hasError = true; echo '<script type="text/javascript">alert("กรุณาใส่อีเมล์");</script>' ; } else if (!preg_match("/^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$/i", trim($_POST['booking_mail']))) { $hasError = true; echo '<script type="text/javascript">alert("อีเมล์ไม่ถูกต้อง");</script>' ; } //If there is no error, send the email if(!isset($hasError)) { require_once('class.phpmailer.php'); $mail = new PHPMailer(); $mail->IsHTML(true); $mail->IsSMTP(); $mail->SMTPAuth = true; // enable SMTP authentication $mail->SMTPSecure = "ssl"; // sets the prefix to the servier $mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server $mail->Port = 465; // set the SMTP port for the GMAIL server $mail->Username = "systemsentmail@gmail.com"; // GMAIL username $mail->Password = "1234system"; // GMAIL password $mail->CharSet = "utf-8"; // ในส่วนนี้ ถ้าระบบเราใช้ tis-620 หรือ windows-874 สามารถแก้ไขเปลี่ยนได้ $mail->From = $_POST['booking_mail']; // "name@yourdomain.com"; $mail->AddReplyTo = "sendmailsystem57@gmail.com"; // Reply $mail->FromName = $_POST['booking_name']." E-mail :".$_POST['booking_mail']; // set from Name $mail->Subject = "ฟอร์มจองโปรแกรมทัวร์ : ".$data['name']; $mail->Body .= "<span style=\"font-size:14px; color: #118DCD;\"><strong>ชื่อผู้ติดต่อ : </strong></span>{$_POST['booking_name']}<br />"; $mail->Body .= "<span style=\"font-size:14px; color: #118DCD;\"><strong>เบอร์โทรศัพท์ : </strong></span>{$_POST['booking_tel']}<br />"; $mail->Body .= "<span style=\"font-size:14px; color: #118DCD;\"><strong>อีเมล์ : </strong></span>{$_POST['booking_mail']}<br />"; $mail->Body .= "<span style=\"font-size:14px; color: #118DCD;\"><strong>รายละเอียด : </strong></span>{$_POST['booking_detail']}<br />"; $mail->AddAddress("sale02happykorea@gmail.com"); // to Address $mail->set('X-Priority', '1'); //Priority 1 = High, 3 = Normal, 5 = low $mail->AddAddress("happykoreateam@gmail.com"); // to Address $mail->set('X-Priority', '3'); //Priority 1 = High, 3 = Normal, 5 = low if($mail->Send()) { $_POST['booking_name'] = ''; $_POST['booking_tel'] = ''; $_POST['booking_mail'] = ''; $_POST['booking_detail'] = ''; echo '<script type="text/javascript">alert("ข้อมูลการจองโปรแกรมทัวร์ ของคุณส่งถึง happytokorea Agent เรียบร้อยแล้ว ขอบคุณค่ะ");</script>' ; }else{ $emailSent = false; echo '<script type="text/javascript">alert("error sending email");</script>' ; } } } }// isset post ?> <?php function MonthThaiSub($data,$part){ $dataSub = explode ( "-", $data ); echo $dataSub[2]; if(($dataSub[1] == "1") || ($dataSub[1] == "01")){ echo "ม.ค."; }elseif(($dataSub[1] == "2") || ($dataSub[1] == "02")){ echo "ก.พ."; }elseif(($dataSub[1] == "3") || ($dataSub[1] == "03")){ echo "มี.ค."; }elseif(($dataSub[1] == "4") || ($dataSub[1] == "04")){ echo "เม.ย."; }elseif(($dataSub[1] == "5") || ($dataSub[1] == "05")){ echo "พ.ค."; }elseif(($dataSub[1] == "6") || ($dataSub[1] == "06")){ echo "มิ.ย."; }elseif(($dataSub[1] == "7") || ($dataSub[1] == "07")){ echo "ก.ค."; }elseif(($dataSub[1] == "8") || ($dataSub[1] == "08")){ echo "ส.ค."; }elseif(($dataSub[1] == "9") || ($dataSub[1] == "09")){ echo "ก.ย."; }elseif(($dataSub[1] == "10") || ($dataSub[1] == "10")){ echo "ต.ค."; }elseif(($dataSub[1] == "11") || ($dataSub[1] == "11")){ echo "พ.ย."; }elseif(($dataSub[1] == "12") || ($dataSub[1] == "12")){ echo "ธ.ค."; } $dataSub[0] = $dataSub[0] + 543; echo substr ( $dataSub[0], 2 ); if($part == 1){ echo " - "; } } ?> <? $id=$_GET['id']; $data=$db->getDataOneRow('tour',$id,'id'); $_GET['id'] = $data['id']; $_GET['title'] = $data['MetaTitle']; $_GET['keyword'] = $data['MetaKeyword']; $_GET['description'] = $data['MetaDescription']; $data2=$db->getRow('tour_photo',"WHERE id ='{$_GET['id']}'"); $_GET['picture'] = $data2['picture'][1]; if($_GET['title']=="") { $_GET['title']="Happy Korea ทัวร์เกาหลี เที่ยวเกาหลี อย่างมีคุณภาพ"; } if($_GET['description']=="") { $_GET['description']="ทัวร์เกาหลี เที่ยวเกาหลี อย่างมีคุณภาพ สัมผัสการท่องเที่ยวเกาหลีเหนือระดับ พร้อมราคาสุดพิเศษ สนใจติดต่อ 02-539-5770"; } if($_GET['keyword']=="") { $_GET['keyword']="ทัวร์เกาหลี,เที่ยวเกาหลี,แพคเกจทัวร์เกาหลี,ทัวร์ดูงานสัมนาเกาหลี,ทัวร์คุณภาพเกาหลี"; } if($_GET['picture']=="") { $_GET['picture']="http://www.happytokorea.com/img/logo.jpg"; } else { $_GET['picture']="http://www.happytokorea.com/backend/images/tour/".$_GET['picture']; } ?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title><? echo $_GET['title'];?></title> <meta name="description" content="<? echo $_GET['description'];?>" /> <meta name="keywords" content="<? echo $_GET['keyword'];?>" /> <meta name="author" content="happytokorea.com"> <meta name="robots" content="index,follow" /> <meta property="fb:app_id" content="1776597142590251"/> <meta property="fb:page_id" content="350867648502"> <link rel="image_src" href="<? echo $_GET['picture'];?>" /> <!-- FB Meta Tag --> <meta property="og:type" content="article" /> <meta property="og:title" content="<? echo $_GET['title'];?>" /> <meta property="og:description" content="<? echo $_GET['description'];?>" /> <meta property="og:image" content="<? echo $_GET['picture'];?>" /> <meta property="og:url" content="http://www.happytokorea.com/tour-detail.php?id=<?=$id;?>" /> <? require_once('ui.php');?> </head> <body> <!-- header --> <? require_once('header.php');?> <!-- จบ header --> <!-- content --> <? $rs=$db->Query("SELECT * FROM tour WHERE id = '".$_GET['id']."'"); $arr=mysql_fetch_array($rs); if($arr['pdf'] <> ""){ //$goto = "target=\"_blank\" href=\"loadfile.php?fileP=".$arr['pdf']."\""; $goto = "target=\"_blank\" href=\"http://www.happytokorea.com/tour/pdf/".$arr['pdf']."\""; }elseif($arr['fileload'] <> ""){ $goto = "target=\"_blank\" href=\"loadfile.php?fileW=".$arr['fileload']."\""; }else{ $goto = "href=\"#\""; } ?> <div class="container"> <? require_once('line-contact.php');?> <div class="row"> <div class="col-md-12 col-main"> <div class="content-box"> <div class="title"> <h1 class="text2">โปรแกรมทัวร์ : <?=$arr['name'];?></h1> </div> <div class="box2"> <div class="pic col-md-7"> <? $rsp=$db->Query("SELECT * FROM tour t,tour_photo tp WHERE t.id = tp.id AND tp.id ='{$_GET['id']}' ORDER BY tp.id_p DESC"); $arrp=mysql_fetch_array($rsp); ?><img src="backend/images/tour/<?=$arrp['picture'];?>" class="img-responsive img-rounded" alt="<?=$arr['name'];?>"> </div> <div class="col-md-5"> <div class="text3">ระยะเวลา : <?=$arr['days'];?></div> <div class="text3">สายการบิน : <img src="airline/<?=$arr['airline'];?>.png" width="100%" alt=""></div> <div class="text3">เดินทาง : <?=$arr['Cover'];?></div> <div class="text4">ราคาเริ่มต้น <?=number_format($arr['price']);?> บาท/คน</div> <div class="download"><a <?=$goto;?>>ดาวน์โหลด</a></div> <div class="reservations"><a data-toggle="modal" data-target="#exampleModal" href="#">จอง</a></div> <div class="col-xs-12" style="padding-top:20px;" align="center"> <table> <tr> <td valign="middle"> แชร์ทาง : </td> <td valign="middle"> <span class='st_facebook_large' displayText='Facebook'></span> <span class='st_twitter_large' displayText='Tweet'></span> <div class="line-it-button" style="display: none;" data-type="share-c" data-lang="en" ></div> <span class='st_pinterest_large' displayText='Pinterest'></span> <span class='st_email_large' displayText='Email'></span> </td> </tr> <tr> <td valign="middle"> หรือ </td> <td valign="middle"> <span><a href="http://line.me/ti/p/%40happytokorea" target="_blank"><img src="img/line_quest.png" style="vertical-align: top;" alt="สอบถามทางไลน์"/></a></span> </td> </tr> </table> <script src="//scdn.line-apps.com/n/line_it/thirdparty/loader.min.js" async="async" defer="defer" ></script> </div> <script type="text/javascript">var switchTo5x=true;</script> <!--<script type="text/javascript" src="//w.sharethis.com/button/buttons.js"></script>--> <script type="text/javascript" src="js/buttons.js"></script> <script type="text/javascript">stLight.options({publisher: "da20f3e2-1dca-48ef-b675-7f55c4067944", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script> <script type="text/javascript" src="backend/nicEdit2/nicEdit-latest.js"></script> <script type="text/javascript"> //<![CDATA[ bkLib.onDomLoaded(function() { nicEditors.allTextAreas(); $('.nicEdit-panelContain').parent().width('100%'); $('.nicEdit-panelContain').parent().next().width('100%'); $('.nicEdit-panelContain').parent().next().height('250'); $('.nicEdit-main').width('99%'); $('.nicEdit-main').height('250'); }); //]]> </script> </div> </div> </div> <!--ฟอร์มจอง--> <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"> <div class="modal-dialog" role="document"> <form action="" id="webForm2" method="post" name="webForm2"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="exampleModalLabel">โปรแกรมทัวร์ : <?=$arr['name'];?></h4> </div> <div class="modal-body"> <div class="form-group"> <label for="" class="control-label">ชื่อ นามสกุล :</label> <input name="booking_name" type="text" class="form-control" id="booking_name"> </div> <div class="form-group"> <label for="" class="control-label">เบอร์โทรศัพท์ :</label> <input name="booking_tel" type="text" class="form-control" id="booking_tel"> </div> <div class="form-group"> <label for="" class="control-label">อีเมล์ :</label> <input name="booking_mail" type="text" class="form-control" id="booking_mail"> </div> <div class="form-group"> <label for="" class="control-label">รายละเอียด :</label> <textarea name="booking_detail" class="form-control" id="booking_detail" style="height: 15%;" cols="50"></textarea> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">ยกเลิก</button> <button type="button" class="btn btn-primary" onClick="document.webForm2.submit()">จอง</button> </div> </div> </form> </div> </div> <!--จบ ฟอร์มจอง--> <div class="clear"></div> <div class="conclude hidden-sm hidden-xs"> <h2 class="title">สรุปการเดินทาง</h2> <div class="ts1 "> <div class="a">วันที่</div> <div class="b">Highlight</div> <div class="c">อาหาร</div> <div class="d">ที่พัก</div> </div> <div class="ts3"> <div class="a"> </div> <div class="b"> </div> <div class="c">เช้า กลางวัน เย็น</div> <div class="d"> </div> </div> <? $rs=$db->Query("SELECT * FROM tour t,tour_con tc WHERE t.id = tc.id AND t.id = '".$_GET['id']."' ORDER BY tc.id_tc ASC"); while($arr=mysql_fetch_array($rs)){ ?> <div class="ts2"> <div class="a"><?=$arr['sfd'];?></div> <div class="b"><?=$arr['sfhl'];?></div> <div class="c"> <? if($arr['sf1'] == "0"){ ?> <img src="img/icon-no-food.png" width="22" alt=""> <? }else{ ?> <img src="img/icon-food.png" width="22" alt=""> <? } ?> <? if($arr['sf2'] == "0"){ ?> <img src="img/icon-no-food.png" width="22" alt=""> <? }else{ ?> <img src="img/icon-food.png" width="22" alt=""> <? } ?> <? if($arr['sf3'] == "0"){ ?> <img src="img/icon-no-food.png" width="22" alt=""> <? }else{ ?> <img src="img/icon-food.png" width="22" alt=""> <? } ?> </div> <div class="d"><?=$arr['sfho'];?></div> </div> <? } ?> </div> <div class="clear"></div> <!--version Tablet--> <div class="conclude hidden-lg hidden-md hidden-xs"> <h2 class="title">สรุปการเดินทาง</h2> <div class="ts1 "> <div class="a">วันที่</div> <div class="b">Highlight</div> <div class="c">อาหาร</div> <div class="d">ที่พัก</div> </div> <div class="ts3"> <div class="a"> </div> <div class="b"> </div> <div class="c">เช้า กลางวัน เย็น</div> <div class="d"> </div> </div> <? $rs=$db->Query("SELECT * FROM tour t,tour_con tc WHERE t.id = tc.id AND t.id = '".$_GET['id']."' ORDER BY tc.id_tc ASC"); while($arr=mysql_fetch_array($rs)){ ?> <div class="ts2"> <div class="a"><?=$arr['sfd'];?></div> <div class="b"><?=$arr['sfhl'];?></div> <div class="c"> <? if($arr['sf1'] == "0"){ ?> <img src="img/icon-no-food.png" width="22" alt=""> <? }else{ ?> <img src="img/icon-food.png" width="22" alt=""> <? } ?> <? if($arr['sf2'] == "0"){ ?> <img src="img/icon-no-food.png" width="22" alt=""> <? }else{ ?> <img src="img/icon-food.png" width="22" alt=""> <? } ?> <? if($arr['sf3'] == "0"){ ?> <img src="img/icon-no-food.png" width="22" alt=""> <? }else{ ?> <img src="img/icon-food.png" width="22" alt=""> <? } ?> </div> <div class="d"><?=$arr['sfho'];?></div> </div> <? } ?> </div> <div class="clear"></div> <!--version mobile--> <div class="conclude hidden-lg hidden-md hidden-sm"> <h2 class="title">สรุปการเดินทาง</h2> <? $rs=$db->Query("SELECT * FROM tour t,tour_con tc WHERE t.id = tc.id AND t.id = '".$_GET['id']."' ORDER BY tc.id_tc ASC"); while($arr=mysql_fetch_array($rs)){ ?> <div class="ts1"> <div class="col-xs-12">วันที่: <?=$arr['sfd'];?> Highlight</div> </div> <div class="ts2"> <div class="col-xs-12"><br /><?=$arr['sfhl'];?></div> <div class="col-xs-12"><br />อาหาร:</div> <div class="col-xs-4" align="center">เช้า <? if($arr['sf1'] == "0"){ ?> <img src="img/icon-no-food.png" width="22" alt=""> <? }else{ ?> <img src="img/icon-food.png" width="22" alt=""> <? } ?> </div><div class="col-xs-4" align="center">เที่ยง <? if($arr['sf2'] == "0"){ ?> <img src="img/icon-no-food.png" width="22" alt=""> <? }else{ ?> <img src="img/icon-food.png" width="22" alt=""> <? } ?> </div><div class="col-xs-4" align="center">ค่ำ <? if($arr['sf3'] == "0"){ ?> <img src="img/icon-no-food.png" width="22" alt=""> <? }else{ ?> <img src="img/icon-food.png" width="22" alt=""> <? } ?> </div> <div class="col-xs-12"><br />ที่พัก : <?=$arr['sfho'];?></div> </div> <? } ?> </div> <div class="clear"></div> <div class="detail"> <h2 class="title">รายละเอียดกำหนดการ</h2> <? $rst=$db->Query("SELECT * FROM tour_content WHERE content_tour_id = '".$_GET['id']."' AND content_parent = 0 ORDER BY content_id ASC "); while($arrt=mysql_fetch_array($rst)){ ?> <div class="box"> <? if($arrt['content_topic']!="") { ?> <h3 class="ts4"> <?=$arrt['content_topic'];?> </h3> <? } else { ?> <h2 class="title">ตารางสายการบิน</h2> <? } ?> <? $rsSub=$db->Query("SELECT * FROM tour_content WHERE content_parent = '".$arrt['content_id']."' ORDER BY content_order ASC "); while($arrSub=mysql_fetch_array($rsSub)){ ?> <div class="ts5"> <? if($arrt['content_topic']!="") { ?> <div class="date"><?=$arrSub['content_time'];?></div> <div class="text"><?=$arrSub['content_detail'];?></div> <? } else { ?> <div class="text" style="width:100%"><?=$arrSub['content_detail'];?></div> <? } ?> </div> <? $Content_photo1=""; $Content_photo2=""; $Content_photo3=""; if($arrSub['Content_photo1'] <> ""){ $Content_photo1="<img src=\"backend/images/tour/".$arrSub['Content_photo1']."\" class=\"img-responsive img-rounded\" alt=\"".$arrt['name']."\">"; } if($arrSub['Content_photo2'] <> ""){ $Content_photo2="<img src=\"backend/images/tour/".$arrSub['Content_photo2']."\" class=\"img-responsive img-rounded\" alt=\"".$arrt['name']."\">"; } if($arrSub['Content_photo3'] <> ""){ $Content_photo3="<img src=\"backend/images/tour/".$arrSub['Content_photo3']."\" class=\"img-responsive img-rounded\" alt=\"".$arrt['name']."\">"; } ?> <div class="ts6"> <div class="pic"><?=$Content_photo1;?></div> <div class="pic"><?=$Content_photo2;?></div> <div class="pic"><?=$Content_photo3;?></div> </div> <? } ?> </div> <? } ?> </div> <div class="clear"></div> <div class="conclude"> <h2 class="title">รายละเอียดราคา</h2> <div class="ts1"> <div class="e" style="font-size: 22px;">กำหนดวันเดินทาง</div> <? $condition=$db->Query("SELECT * FROM tour_content_condition WHERE condition_tour_id = '".$_GET['id']."' ORDER BY condition_order ASC"); $pax20= false; $pax15= false; while($arr=mysql_fetch_array($condition)){ if (strpos($arr['condition_detail'],'20 ท่าน')==true){ $pax20= true; break;} if (strpos($arr['condition_detail'],'15 ท่าน')==true){ $pax15= true; break;} } if ($pax20==true) { ?> <div class="f">อัตราค่าบริการ **ออกเดินทางขั้นต่ำ 20 ท่าน**</div> <? } else if ($pax15==true) { ?> <div class="f">อัตราค่าบริการ **ออกเดินทางขั้นต่ำ 15 ท่าน**</div> <? } else { ?> <div class="f">อัตราค่าบริการ **ออกเดินทางขั้นต่ำ 10 ท่าน**</div> <? } ?> </div> <div class="ts3"> <div class="e"> </div> <div class="g">ราคาผู้ใหญ่</div> <div class="h">เด็กมีเตียงเสริม</div> <div class="i">เด็กไม่มีเตียง</div> <div class="j">พักเดี่ยว</div> </div> <? $rs=$db->Query("SELECT * FROM time_schedule1 WHERE tour_id = '".$_GET['id']."' ORDER BY start_date ASC "); if(mysql_num_rows($rs)>0) { while($arr=mysql_fetch_array($rs)){ ?> <div class="ts2"> <div class="e"><? $dataSub2 = explode ( "-", $arr['start_date'] ); $dataSub3 = explode ( "-", $arr['end_date'] ); if($dataSub2[1] <> $dataSub3[1]){ echo $dataSub2[2]." "; if(($dataSub2[1] == "1") || ($dataSub2[1] == "01")){ echo "ม.ค."; }elseif(($dataSub2[1] == "2") || ($dataSub2[1] == "02")){ echo "ก.พ."; }elseif(($dataSub2[1] == "3") || ($dataSub2[1] == "03")){ echo "มี.ค."; }elseif(($dataSub2[1] == "4") || ($dataSub2[1] == "04")){ echo "เม.ย."; }elseif(($dataSub2[1] == "5") || ($dataSub2[1] == "05")){ echo "พ.ค."; }elseif(($dataSub2[1] == "6") || ($dataSub2[1] == "06")){ echo "มิ.ย."; }elseif(($dataSub2[1] == "7") || ($dataSub2[1] == "07")){ echo "ก.ค."; }elseif(($dataSub2[1] == "8") || ($dataSub2[1] == "08")){ echo "ส.ค."; }elseif(($dataSub2[1] == "9") || ($dataSub2[1] == "09")){ echo "ก.ย."; }elseif(($dataSub2[1] == "10") || ($dataSub2[1] == "10")){ echo "ต.ค."; }elseif(($dataSub2[1] == "11") || ($dataSub2[1] == "11")){ echo "พ.ย."; }elseif(($dataSub2[1] == "12") || ($dataSub2[1] == "12")){ echo "ธ.ค."; } echo " - ".$dataSub3[2]." "; if(($dataSub3[1] == "1") || ($dataSub3[1] == "01")){ echo "ม.ค."; }elseif(($dataSub3[1] == "2") || ($dataSub3[1] == "02")){ echo "ก.พ."; }elseif(($dataSub3[1] == "3") || ($dataSub3[1] == "03")){ echo "มี.ค."; }elseif(($dataSub3[1] == "4") || ($dataSub3[1] == "04")){ echo "เม.ย."; }elseif(($dataSub3[1] == "5") || ($dataSub3[1] == "05")){ echo "พ.ค."; }elseif(($dataSub3[1] == "6") || ($dataSub3[1] == "06")){ echo "มิ.ย."; }elseif(($dataSub3[1] == "7") || ($dataSub3[1] == "07")){ echo "ก.ค."; }elseif(($dataSub3[1] == "8") || ($dataSub3[1] == "08")){ echo "ส.ค."; }elseif(($dataSub3[1] == "9") || ($dataSub3[1] == "09")){ echo "ก.ย."; }elseif(($dataSub3[1] == "10") || ($dataSub3[1] == "10")){ echo "ต.ค."; }elseif(($dataSub3[1] == "11") || ($dataSub3[1] == "11")){ echo "พ.ย."; }elseif(($dataSub3[1] == "12") || ($dataSub3[1] == "12")){ echo "ธ.ค."; } $dataSub3[0] = $dataSub3[0] + 543; echo " ".substr ( $dataSub3[0], 2 ).""; }else{ echo $dataSub2[2]." - ".$dataSub3[2]." "; if(($dataSub2[1] == "1") || ($dataSub2[1] == "01")){ echo "ม.ค."; }elseif(($dataSub2[1] == "2") || ($dataSub2[1] == "02")){ echo "ก.พ."; }elseif(($dataSub2[1] == "3") || ($dataSub2[1] == "03")){ echo "มี.ค."; }elseif(($dataSub2[1] == "4") || ($dataSub2[1] == "04")){ echo "เม.ย."; }elseif(($dataSub2[1] == "5") || ($dataSub2[1] == "05")){ echo "พ.ค."; }elseif(($dataSub2[1] == "6") || ($dataSub2[1] == "06")){ echo "มิ.ย."; }elseif(($dataSub2[1] == "7") || ($dataSub2[1] == "07")){ echo "ก.ค."; }elseif(($dataSub2[1] == "8") || ($dataSub2[1] == "08")){ echo "ส.ค."; }elseif(($dataSub2[1] == "9") || ($dataSub2[1] == "09")){ echo "ก.ย."; }elseif(($dataSub2[1] == "10") || ($dataSub2[1] == "10")){ echo "ต.ค."; }elseif(($dataSub2[1] == "11") || ($dataSub2[1] == "11")){ echo "พ.ย."; }elseif(($dataSub2[1] == "12") || ($dataSub2[1] == "12")){ echo "ธ.ค."; } $dataSub2[0] = $dataSub2[0] + 543; echo " ".substr ( $dataSub2[0], 2 ).""; } if(strpos($arr2['comment'], 'recommend') !== false) ?></div> <div class="g"><? if ($arr['cost1']=="") echo "<span style='color:red;'>สอบถาม</span>"; else echo number_format($arr['cost1']);?></div> <div class="h"><? if ($arr['cost2']=="") echo "<span style='color:red;'>สอบถาม</span>"; else echo number_format($arr['cost2']);?></div> <div class="i"><? if ($arr['cost3']=="") echo "<span style='color:red;'>สอบถาม</span>"; else echo number_format($arr['cost3']);?></div> <div class="j"><? if ($arr['cost4']=="") echo "<span style='color:red;'>สอบถาม</span>"; else echo number_format($arr['cost4']);?></div> </div> <? } } else { echo "<div class=\"h3\" style=\"font-weight:bold;text-align:center;padding:5px;\">กรุณาสอบถามเจ้าหน้าที่ โทร 02 539 5770 หรือ line@ happytokorea</div>"; } ?> </div> <div class="clear"></div> <div class="condition"> <h3 class="title">เงือนไขการจอง</h3> <? $rs=$db->Query("SELECT * FROM tour_content_condition WHERE condition_tour_id = '".$_GET['id']."' ORDER BY condition_order ASC"); while($arr=mysql_fetch_array($rs)){ ?> <div class="box"> <div class="tes"><?=$arr['condition_name'];?></div> <ul> <?=$arr['condition_detail'];?> </ul> </div> <? } ?> </div> </div> </div> </div> <!-- จบ content --> <!-- footer --> <? require_once('footer.php');?> <!-- จบ footer --> <!-- เมนู social --> <? require_once('menu-social.php');?> <!-- จบ เมนู social --> <!-- ลูกศรเลือนขึ้น --> <? require_once('go-to-top.php');?> <!-- จบ ลูกศรเลือนขึ้น --> <? require_once('script.php');?> </body> </html>