E - Booking
|
TH
|
EN
Sitemap
1 2 3 4 5 Next >>
session_start(); include('connect.inc.php'); echo"
Type of Transfer :
Round Trip
One Way
Origin:
"; // Call subroute $callorigin="select * from route group by origin order by origin"; $runcallorigin=mysql_query($callorigin); while($origin=mysql_fetch_row($runcallorigin)) { echo "
$origin[1]
"; }; echo"
Destination:
"; // Call subroute $calldest="select * from route group by dest order by dest"; $runcalldest=mysql_query($calldest); while($dest=mysql_fetch_row($runcalldest)) { echo "
$dest[2]
"; }; echo "
Departure Date:
"; $today=date("d"); for($a=1;$a<=31;$a++) { $length=strlen($a); if($length==1){$a="0".$a;}; if($a==$today+1) { echo"
$a
"; } else { echo "
$a
"; }; }; echo "
"; $thismonth=date("m"); for($b=1;$b<=12;$b++) { switch ($b){ case "1";{$month="January"; break;} case "2";{$month="February"; break;} case "3";{$month="March"; break;} case "4";{$month="April"; break;} case "5";{$month="May"; break;} case "6";{$month="June"; break;} case "7";{$month="July"; break;} case "8";{$month="August"; break;} case "9";{$month="September"; break;} case "10";{$month="October"; break;} case "11";{$month="November"; break;} case "12";{$month="December"; break;} }; $length=strlen($b); if($length==1){$b="0".$b;}; if($b==$thismonth) { echo"
$month
"; } else { echo "
$month
"; }; }; echo"
"; $getmaxdate="select max(depart_date) from route"; $rungetmaxdate=mysql_query($getmaxdate); $maxdate=mysql_fetch_row($rungetmaxdate); $formatmaxdate=jdtogregorian($maxdate[0]); $maxyear=substr($formatmaxdate,-4); $thisyear=date("Y"); for($year1=$thisyear;$year1<=$maxyear;$year1++) { if($year1==$thisyear) { echo "
$thisyear
"; } else { echo "
$year1
"; }; }; echo "
Return Date:
"; $today=date("d"); for($a=1;$a<=31;$a++) { $length=strlen($a); if($length==1){$a="0".$a;}; if($a==$today+1) { echo"
$a
"; } else { echo "
$a
"; }; }; echo "
"; $thismonth=date("m"); for($b=1;$b<=12;$b++) { switch ($b){ case "1";{$month="January"; break;} case "2";{$month="February"; break;} case "3";{$month="March"; break;} case "4";{$month="April"; break;} case "5";{$month="May"; break;} case "6";{$month="June"; break;} case "7";{$month="July"; break;} case "8";{$month="August"; break;} case "9";{$month="September"; break;} case "10";{$month="October"; break;} case "11";{$month="November"; break;} case "12";{$month="December"; break;} }; $length=strlen($b); if($length==1){$b="0".$b;}; if($b==$thismonth) { echo"
$month
"; } else { echo "
$month
"; }; }; echo"
"; $getmaxdate="select max(depart_date) from route"; $rungetmaxdate=mysql_query($getmaxdate); $maxdate=mysql_fetch_row($rungetmaxdate); $formatmaxdate=jdtogregorian($maxdate[0]); $maxyear=substr($formatmaxdate,-4); $thisyear=date("Y"); for($year1=$thisyear;$year1<=$maxyear;$year1++) { if($year1==$thisyear) { echo "
$thisyear
"; } else { echo "
$year1
"; }; }; echo "
Passenger (s):
1
2
3
4
5
6
7
8
9
10
"; ?>
Bangkok
Chumporn
Koh Tao
Koh Nangyuan
Koh Pangan
Koh Samui
Moo Koh Angthong
Home
|
Ship Particular
|
Services
|
Gallery
|
Links
|
Contact
599/1 Rimtangrotfal-chongnonsri Road, Klongtoey District, Bangkok, Thailand.
Tel : 02-240-2582 Fax : 02-249-5951
E-mail : info@seatrandiscovery.com
Copyright @ 2007. Seatran Discovery.com All Right Reseved.