session_start(); include_once "../config_admin.php"; if(!isset($_SESSION['lang'])) { $_SESSION['lang']='1'; } if(isset($_GET['lang'])) { $_SESSION['lang']=$_GET['lang']; } $LANGDIR="tw"; if($_SESSION['lang']=="1") $LANGDIR="tw"; else if($_SESSION['lang']=="2") $LANGDIR="en"; else if($_SESSION['lang']=="3") $LANGDIR="jp"; if($_SESSION['lang']=="1") { $about1="關於我們"; $about2=" 飯店式服務及管理"; $about3="Q&A "; $contact_name="姓名:"; $contact_sex="性別:"; $contact_phone="電話:"; $contact_email="E-mail:"; $contact_area="需求區域:"; $contact_roomcount="需求房數:"; $contact_note="其他需求及建議:"; $contact_verify="驗證碼:"; $contact_companyname="公司名稱:"; $contact_invoice="統一編號:"; $contact_position="職稱:"; $contact_phoneext="分機:"; $contact_mobile="行動電話:"; $contact_address="公司地址:"; $contact_require1="請填姓名"; $contact_require2="請填電話"; $contact_require3="請填需求或建議"; $contact_require4="請填驗證碼"; $contact_require5="請填公司名稱"; $contact_msg="我們將盡快為您服務!!"; } else if($_SESSION['lang']=="2") { $about1="About us"; $about2="Service and Management"; $about3="Q&A "; $contact_name="Name:"; $contact_sex="Gender:"; $contact_phone="Telephone No:"; $contact_email="E-mail:"; $contact_area="Demanded District:"; $contact_roomcount="Demanded-Size(ping):"; $contact_note="Other requirements and suggestions:"; $contact_verify="verification code:"; $contact_companyname="Company Name:"; $contact_invoice="ID No.:"; $contact_position="Position:"; $contact_phoneext="Ext:"; $contact_mobile="Mobile:"; $contact_address="Company Address:"; $contact_require1="Name Required"; $contact_require2="Telephone No Required"; $contact_require3="Other requirements and suggestions Required"; $contact_require4="verification code Required"; $contact_require5="Company Name Required"; $contact_msg="We Will Contact You As Soon As Fast!!"; } else if($_SESSION['lang']=="3") { $about1="安捷について"; $about2="ホテルサービスとマネジメント"; $about3="Q&A "; $contact_name="お名前:"; $contact_sex="性別:"; $contact_phone="お電話:"; $contact_email="メール:"; $contact_area="希望地域:"; $contact_roomcount="希望部屋数:"; $contact_note="他のニーズ/アドバイス:"; $contact_verify="確認コード:"; $contact_companyname="会社名:"; $contact_invoice="統一編號:"; $contact_position="職務:"; $contact_phoneext="内線:"; $contact_mobile="ケイタイ:"; $contact_address="会社住所:"; $contact_require1="請填姓名"; $contact_require2="請填電話"; $contact_require3="請填需求或建議"; $contact_require4="請填驗證碼"; $contact_require5="請填公司名稱"; $contact_msg="我們將盡快為您服務!!"; } require "../php/mainfile.php"; //$sql="select * from road where lang='".$_SESSION['lang']."' order by title asc"; $sql="select * from road where lang='".$_SESSION['lang']."' and `id` in (select `roadid` from station where `id` in (select `stationid` from `object` )) order by title asc"; $rs=mysql_query($sql); while($row=mysql_fetch_array($rs)) { $roads[]=$row; } $sql="select * from area where lang='".$_SESSION['lang']."' order by sort asc"; $rs=mysql_query($sql); while($row=mysql_fetch_array($rs)) { $areas[]=$row; } $sql="select * from object order by `sort` asc"; $rs=mysql_query($sql); while($row=mysql_fetch_array($rs)) { $objects[$row['areaid']][]=$row; } if(isset($_GET['id'])) { $sql="select * from object where `id`='".$_GET['id']."'"; $rs=mysql_query($sql); $row=mysql_fetch_array($rs); $object=$row; } if(basename($_SERVER['PHP_SELF'])=="hotel.php" || basename($_SERVER['PHP_SELF'])=="hotel02.php" || basename($_SERVER['PHP_SELF'])=="hotel03.php" || basename($_SERVER['PHP_SELF'])=="hotel04.php") $banner=$object['banner']; if(basename($_SERVER['PHP_SELF'])=="about.php" )//|| basename($_SERVER['PHP_SELF'])=="about02.php" || basename($_SERVER['PHP_SELF'])=="about03.php" $banner=$sysconfig['aboutusimg']['content']; if(basename($_SERVER['PHP_SELF'])=="about02.php" )//|| basename($_SERVER['PHP_SELF'])=="about02.php" || basename($_SERVER['PHP_SELF'])=="about03.php" $banner=$sysconfig['aboutusimg2']['content']; if(basename($_SERVER['PHP_SELF'])=="about03.php" )//|| basename($_SERVER['PHP_SELF'])=="about02.php" || basename($_SERVER['PHP_SELF'])=="about03.php" $banner=$sysconfig['aboutusimg3']['content']; if(basename($_SERVER['PHP_SELF'])=="news.php" || basename($_SERVER['PHP_SELF'])=="news02.php" ) $banner=$sysconfig['newsimg']['content']; if(basename($_SERVER['PHP_SELF'])=="member.php" ) $banner=$sysconfig['contactus1img']['content']; if(basename($_SERVER['PHP_SELF'])=="contact.php" ) $banner=$sysconfig['contactus2img']['content']; ?>