Change Location ($pub_loc)
"; ?>
*/ ?>
  DESTINATION
"; $query="SELECT comm_trlocation, comm_trlocationcountry FROM $commontrlocation_tablename WHERE comm_trlocationcountry!=\"$locx\" ORDER BY `comm_trlocationcountry` ASC"; $result = mysql_query ($query); echo "
  PACKAGE TYPE
"; $query="SELECT comm_trtype FROM $commontrtype_tablename ORDER BY `comm_trtype` ASC"; $result = mysql_query ($query); echo "
  TRAVEL DATE
 
"; ////////////////////////////////////// GADGET ENDS HERE /////////////////////////////// ?>
Email a Tour Package
Dear '.$NAME.', please check out the following Tour Package by '.$agent_nameMY.'

'.$PACKAGE.' ('.$ITEMCODE.')  Click the link to open.  
     
We hope you are excited with this package, Our Tour Executives will be pleased to assist you if you interested to know more about this Tour Package.

Have a nice day!


Customer Service Executive
Tour Department


'.$agent_nameMY.'
'.$agent_addressMY.'
Telephone: '.$agent_phoneMY.' Fax: '.$agent_faxMY.'
Email: '.$agent_emailMY.' Web: '.$agent_web.'
NOTE: Message was auto-generated and intended to '.$EMAIL.' and was sent by '.$tafmanager_email.' via Email This Package at '.$agent_web.'. IF YOU DID NOT REQUEST FOR THIS SERVICE, PLEASE REPORT TO US IMMEDIATELY.
'; }else{ $message1 = ' Email a Tour Package
Dear '.$NAME.', please check out the following Tour Package by '.$agent_name.'

'.$PACKAGE.' ('.$ITEMCODE.')  Click the link to open.  
     
We hope you are excited with this package, Our Tour Executives will be pleased to assist you if you interested to know more about this Tour Package.

Have a nice day!


Customer Service Executive
Tour Department


'.$agent_name.'
'.$agent_address.'
Telephone: '.$agent_phone.' Fax: '.$agent_fax.'
Email: '.$agent_email.' Web: '.$agent_web.'
NOTE: Message was auto-generated and intended to '.$EMAIL.' and was sent by '.$tafmanager_email.' via Email This Package at '.$agent_web.'. IF YOU DID NOT REQUEST FOR THIS SERVICE, PLEASE REPORT TO US IMMEDIATELY.
'; } //end of message /* // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n"; // Additional headers $headers .= 'To:'.$EMAIL.'' . "\r\n"; $headers .= 'From:'.$tafmanager_email.'' . "\r\n"; //$headers .= 'Cc: ' . "\r\n"; $headers .= 'Cc: '.$tafmanager_email.'' . "\r\n"; $message = $message1; // now lets send the email. mail($to, $subject, $message, $headers); //echo"$message"; */ // SMTP MAILER STARTS require_once "Mail.php"; if($pub_loc=="MY"){ $from = "$agent_nameMY <$tafmanager_email>"; $to = "$NAME <$EMAIL>"; $cc = "$agent_nameMY <$tafmanager_email>"; }else{ $from = "$agent_name <$tafmanager_email>"; $to = "$NAME <$EMAIL>"; $cc = "$agent_name <$tafmanager_email>"; } $smtphost = $smtp_host; $smtpusername = $smtp_username; $smtppassword = $smtp_password; $headers = array ('From' => $from,'To' => $to,'Cc' => $cc,'Subject' => $subject,'MIME-Version' => 1.0,'Content-type' => 'text/html;charset=utf-8'); $smtp = Mail::factory('smtp',array ('host' => $smtphost,'auth' => true,'username' => $smtpusername,'password' => $smtppassword)); $mail = $smtp->send($to, $headers, $message1); if (PEAR::isError($mail)) {$msg_desc=$mail->getMessage();$msg_status=0;} else {$msg_status=1;} // SMTP MAILER ENDS /* // DO DB POSTING SUBSCRIBE STARTS $doDBpost = mysql_query("SELECT id,cdbpry_emailpri FROM $cdbprmyhdr_tablename WHERE cdbpry_emailpri=\"$EMAIL\"",$db); if ($doDBpostrow = mysql_fetch_array($doDBpost)){do{}while ($doDBpostrow = mysql_fetch_array($doDBpost));}else{ $query="SELECT id FROM $cdbprmyhdr_tablename ORDER BY `id` DESC LIMIT 0,1"; $result = mysql_query ($query);$ret_id=mysql_fetch_array($result);$count = $ret_id[id];$prfx = $cdbprmyhdr_prefix;$prfxcon = "-";$countx= $count+1;$count_format=str_pad($countx, 6, "0", STR_PAD_LEFT);$code = $prfx.$prfxcon.$count_format; $cdbpry_type = "EPC";$cdbpry_category = "WEB POST";$cdbpry_method = "USER DIRECT";$cdbpry_status = "SUBMITTED"; $doDBpost=mysql_query("INSERT INTO $cdbprmyhdr_tablename (`cdbpry_itemcode`,`cdbpry_type`,`cdbpry_category`,`cdbpry_method`,`cdbpry_status`,`cdbpry_firstname`,`cdbpry_emailpri`,`cdbpry_phmobilepri`,`cdbpry_ctsource`,`cdbpry_ctlocpage`,`cdbpry_datereg`,`cdbpry_ipreg`) VALUES ('$code','$cdbpry_type','$cdbpry_category','$cdbpry_method','$cdbpry_status','$NAME','$EMAIL','$PHONE','$SOURCE','$pagename','$sys_date','$ip')",$db);} // DO DB POSTING SUBSCRIBE ENDS */ if($msg_status==1){ echo"

 

  Dear $NAME, we have successfully emailed this Tour Itinerary to $EMAIL. ×
";}else{echo"
ERROR: $msg_desc
";} } // END EMAIL PACKAGE PROCCESSING. MAILER WITH DB POSTING FEATURES ?>
= \"$date_pw\" AND tpack_state!=\"$locx\" AND tpack_itemcode=\"$itemcode\" AND complete=\"1\""); $pager = new PS_Pagination($conn,$sql,$directory_packagelistresult,$directory_packagerowresult); $rs = $pager->paginate(); while ($row = mysql_fetch_assoc($rs)) { //$extand_var1=$row["tpack_itemcode"]; $extand_var1=$row["id"]; $saledateline=$row["tpack_saleabledate"]; $saleablemarket=$row["tpack_saleablemarket"]; $pack_headthumb=$row["tpack_location"]; $tpack_mode=$row["tpack_mode"]; $tpacktitle = $row["tpack_title"]; /* $tpack_feature6=$row["tpack_feature6"]; $tpack_feature2=$row["tpack_feature2"]; $tpack_feature3=$row["tpack_feature3"]; $tpack_feature4=$row["tpack_feature4"]; $tpack_feature5=$row["tpack_feature5"]; $tpack_feature1=$row["tpack_feature1"]; $tpack_season=$row["tpack_season"]; */ $regdate=$row["tpack_regdate"]; $dateout7 = "$regdate"; $dateout7 = dateconvertout($dateout7); if ($saledateline>=$date_pw && $saleablemarket==$market1||$saleablemarket==$market2) { echo "
"; echo""; echo"
";print($row["tpack_title"]);echo"  ( ";if($row["tpack_tourcode"]==""){$tpackcode=$row["tpack_itemcode"]; print($row["tpack_itemcode"]);}else{$tpackcode=$row["tpack_tourcode"]; print($row["tpack_tourcode"]);}echo" )

";if($row["tpack_route"]==""){}else{print($row["tpack_route"]);}echo"
"; echo""; if($row["tpack_subtitle"]==""){}else{ echo"

  ";print($row["tpack_subtitle"]);echo"  

";} if($row["tpack_highlights"]=="" || $row["tpack_highlights"]=="

 

"|| $row["tpack_highlights"]=="
"|| $row["tpack_highlights"]=="
"){}else{ echo"

";echo"PACKAGE HIGHLIGHTS: ";print($row["tpack_highlights"]);echo"

"; echo"
";} // GALLERY THUMBNAIL STARTS HERE echo"
    "; $tpackid = $row["id"]; $upload_dir = '../../../../public/images/gal_img/'; $imgresult = mysql_query("SELECT * FROM $commontrpckimggal_tablename WHERE tpackgal_glyid=\"$tpackid\" AND tpackgal_status=\"1\" ORDER BY `tpackgal_id` DESC LIMIT 0, 12",$db); while($therow = mysql_fetch_array($imgresult)) { $do_photo = $therow["tpackgal_id"]; $tpckgal_description = $therow["tpackgal_description"];$tpckgal_imgsrc = $therow["tpackgal_imgsrc"];$imgsrcGLF = $upload_dir.$tpckgal_imgsrc; if($tpckgal_description="" ||!$tpckgal_description){echo"
  • ";} else{echo"
  • ";} } //if(!$do_photo){} echo"
"; // GALLERY THUMBNAIL ENDS HERE if($row["tpack_embed1"]==""){}else{ echo"
"; if(preg_match("/youtube/i", $row["tpack_embed1"])){echo"
";print($row["tpack_embed1"]);echo"
";}else{echo"

";print($row["tpack_embed1"]);echo"

";} echo"
";} if($row["tpack_embed2"]==""){}else{ echo"
"; if(preg_match("/youtube/i", $row["tpack_embed2"])){echo"
";print($row["tpack_embed2"]);echo"
";}else{echo"

";print($row["tpack_embed2"]);echo"

";} echo"
";} echo"
"; echo"

";print($row["tpack_itinerary"]);echo"

"; // OPTION BOX STARTS HERE // DATA QUERY FOR LINKING RECORDS if($dateselect){$date_a ="$dateselect";$date_a = dateconvertout($date_a);} if($date_a){$query_1 = "SELECT * FROM $allotmenttour_tablename WHERE alttour_refid=\"$extand_var1\" AND alttour_saleend >= \"$date_a\" ORDER BY alttour_proprating ASC LIMIT 0,30";} else{$query_1 = "SELECT * FROM $allotmenttour_tablename WHERE alttour_refid=\"$extand_var1\" ORDER BY alttour_proprating ASC LIMIT 0,30";} $result_1 = mysql_query($query_1); $is_null_1 = "true"; while($row_1 = mysql_fetch_array($result_1)) { $travel_sdate=$row_1["alttour_salestart"]; $travel_edate=$row_1["alttour_saleend"]; $valid_sdate=$row_1["alttour_vsdate"]; $valid_edate=$row_1["alttour_vedate"]; $alttour_currency=$row_1["alttour_currency"]; $dateout3 = "$valid_sdate"; $dateout3 = dateconvertout($dateout3); $dateout4 = "$valid_edate"; $dateout4 = dateconvertout($dateout4); $total1 = $row_1[alttour_adttw] * $row[tpack_webtier]; $selling1 = round($total1); $total2 = $row_1[alttour_adtsg] * $row[tpack_webtier]; $selling2 = round($total2); $total3 = $row_1[alttour_adttr] * $row[tpack_webtier]; $selling3 = round($total3); $total4 = $row_1[alttour_chdwb] * $row[tpack_webtier]; $selling4 = round($total4); $total5 = $row_1[alttour_chdnb] * $row[tpack_webtier]; $selling5 = round($total5); $total6 = $row_1[alttour_chdif] * $row[tpack_webtier]; $selling6 = round($total6); $total7 = $row_1[alttour_propextranite] * $row[tpack_webtier]; $selling7 = round($total7); //printf($row_1["alttour_salestart"]); printf($row_1["alttour_saleend"]); //if ($date_pw>=$travel_sdate && $date_pw<=$travel_edate && $date_pw>=$valid_sdate) if ($date_pw>=$travel_sdate && $date_pw<=$travel_edate && $date_pw<=$valid_edate){ echo"
"; // OPTION INFO STARTS echo"
";printf($row_1["alttour_proptitle"]);echo"
";printf($row_1["alttour_proplocation"]);echo"
"; $strcount = $row_1["alttour_proprating"];for($i = 0; $i < $strcount; ++$i){echo " ";} echo"
"; if ($row_1[alttour_recommend]=="1"){echo" RECOMMENDED";}else{echo" ";} echo"
"; // OPTION INFO ENDS // PRICE BOX STARTS echo"
ADULT TWIN
";if ($row_1[alttour_adttw]=="0"){echo"N/A";}else{echo"$alttour_currency $selling1";}echo"
"; /*
ADULT SINGLE
";if ($row_1[alttour_adtsg]=="0"){echo"N/A";}else{echo"$alttour_currency $selling2";}echo"
CHILD TWIN
";if ($row_1[alttour_adttr]=="0"){echo"N/A";}else{echo"$alttour_currency $selling3";}echo"
*/ echo"
CHILD WITH BED
";if ($row_1[alttour_chdwb]=="0"){echo"N/A";}else{echo"$alttour_currency $selling4";}echo"
CHILD NO BED
";if ($row_1[alttour_chdnb]=="0"){echo"N/A";}else{echo"$alttour_currency $selling5";}echo"
"; /*
Infant
 
";if ($row_1[alttour_chdif]==""){echo"N/A";}else{echo"$package_currency $selling6";}echo"
Extra
Night
";if ($row_1[alttour_propextranite]==""){echo"N/A";}else{echo"$package_currency $selling7";}echo"
*/ echo"
"; // PRICE BOX ENDS // HOTEL INFO STARTS if($row_1["alttour_condition"]=="" || $row_1["alttour_condition"]=="
" ||$row_1["alttour_condition"]==" "){}else{ echo"
"; echo"HOTEL DETAILS

";print($row_1["alttour_condition"]);echo"

";} // HOTEL INFO ENDS // FLIGHT INFO STARTS echo"
"; if(!$row_1["alttour_depdate"]){} else{echo"

DEPARTURE DATE
";$keyword = explode('*', $row_1["alttour_depdate"]);foreach( $keyword as $keyword ) { $keyword = $keyword; $keyword = dateconvertoutSH($keyword); echo" $keyword   "; } echo"

";} echo"
"; if($row_1["alttour_fltschedule"]=="" || $row_1["alttour_fltschedule"]=="
" ||$row_1["alttour_fltschedule"]==" "){}else{ echo"
"; echo"FLIGHT DETAILS

";print($row_1["alttour_fltschedule"]);echo"

"; if($row_1["alttour_airline"]==""){}else { $airlinechk=$row_1["alttour_airline"]; $query_4 = "SELECT comm_afcarrier,comm_afnthumb FROM $commonafcarrier_tablename WHERE comm_afcarrier=\"$airlinechk\" LIMIT 0,1"; $result_4 = mysql_query($query_4); while($row_4 = mysql_fetch_array($result_4)) { if($row_4["comm_afnthumb"]==""){echo"

";printf($row_4["comm_afcarrier"]); echo"

";} else{echo"\"";printf($row_4["comm_afcarrier"]);echo"\"";} } } echo"
";} // FLIGHT INFO ENDS echo"
"; if ($row_1[alttour_vsdate]==""){echo" ";}else{echo"VALIDITY DATE

From $dateout3 Until $dateout4

";} echo"
"; echo"
"; echo"
"; $is_null_1 = "false";}else{}} // OPTION BOX ENDS HERE if($is_null_1=="true"){ // DEFAULT OPTION BOX ENDS HERE echo"

 CONTACT US

Contact Us today for an exclusive Rate / Offer. Click CONTACT US OR Call Us ";if($pub_loc=="MY"){echo"$agent_phoneMY";}else{echo"$agent_phone";}echo"

";} // MAIN BODY RESUMES if($row["tpack_optionaltours"]=="" || $row["tpack_optionaltours"]=="
" ||$row["tpack_optionaltours"]==" " || $row["tpack_optionaltours"]=="

 

"){}else{ echo"
"; echo"OPTIONAL TOURS

";print($row["tpack_optionaltours"]);echo"

"; echo"
";} echo"
PACKAGE INCLUDES"; echo"

"; if($row["tpack_mealplan"]=="None"){}else{echo"  Meals (";print($row["tpack_mealplan"]);echo")
";} if($row["tpack_includes"]=="" || $row["tpack_includes"]=="

 

"|| $row["tpack_includes"]=="
"|| $row["tpack_includes"]=="
"){}else {$keyword = explode('*', $row["tpack_includes"]);foreach( $keyword as $keyword ){echo"  $keyword
";}} echo"

"; if($row["tpack_excludes"]=="" || $row["tpack_excludes"]=="
" ||$row["tpack_excludes"]==" " || $row["tpack_excludes"]=="

 

"){}else{ echo"
"; echo"PACKAGE EXCLUDES

"; $keyword = explode('*', $row["tpack_excludes"]);foreach( $keyword as $keyword ){echo"  $keyword
";} echo"

"; echo"
";} if($row["tpack_gencondition"]=="" || $row["tpack_gencondition"]=="
" ||$row["tpack_gencondition"]==" " || $row["tpack_gencondition"]=="

 

"){}else{ echo"
    "; echo"
  • IMPORTANT NOTES

    ";print($row["tpack_gencondition"]);echo"

  • "; echo"
";} if($row["tpack_depopay"]=="" || $row["tpack_depopay"]=="
" ||$row["tpack_depopay"]==" " || $row["tpack_depopay"]=="

 

"){}else{ echo"
    "; echo"
  • DEPOSIT & TOUR PAYMENTS

    ";print($row["tpack_depopay"]);echo"

  • "; echo"
";} if($row["tpack_cancellation"]=="" || $row["tpack_cancellation"]=="
" ||$row["tpack_cancellation"]==" " || $row["tpack_cancellation"]=="

 

"){}else{ echo"
    "; echo"
  • CANCELLATION

    ";print($row["tpack_cancellation"]);echo"

  • "; echo"
";} echo"

  PRINT   EMAIL "; if($row["tpack_pdf1"]==""){}else{if(preg_match("/famousworldtours.com/i", $row["tpack_pdf1"])){echo"  DOWNLOAD (PDF)";}else{}} echo"

"; echo"
"; echo" Last updated on $dateout7"; echo"
"; // END OF MAIN ROW echo"
"; }else{}}}else{} if (!$extand_var1){echo"

 

 ";echo"FATAL ERROR

Item Code Invalid or Not Found. Page URL has been modified or tampered OR Page has been removed and no longer Valid OR You are trying to access through a Bookmark which might expired. Please Try Again OR Contact Us ";if($pub_loc=="MY"){echo"$agent_phoneMY";}else{echo"$agent_phone";}echo"

";} // END PACKAGE DETAILS ?>

 

Subscribe Our Newsletter
"; // SUBSCRIPTION BOX ?>
We are a Member of
  • MATTA
  • NATAS
"; echo"
"; //echo""; /* // BANNER DB CODE STARTS HERE $smallresult = mysql_query("SELECT * FROM $package_tablename WHERE tpack_itemcode=\"$itemcode\" AND complete=\"1\"",$db); if ($therow = mysql_fetch_array($smallresult)){do{ $tpacktitle = $therow["tpack_title"]; if($therow["tpack_thumbnail"]==""){}else{ echo "
\"";print($therow["tpack_title"]);
"; }}while ($therow = mysql_fetch_array($smallresult));}else{} */ echo"
  EMAIL THIS ITINERARY
$tpacktitle ($tpackcode)
"; echo" "; // EMAIL PACKAGE ENDS ?>