getInboundDomesticCountry();
if(is_resource($rsCountry) && mysql_num_rows($rsCountry)>0)
{
$rowCountry=mysql_fetch_array($rsCountry);
$countryId=$rowCountry[id];
}
if(empty($flag))
$flag="domestic";
$categoryId=$objCategory->getCategoryId($flag);
$themeId=$objTravelTheme->getThemeId($themeName,$categoryId);
if((int)$themeId>0)
{
$objSearch=new Search($countryId,$themeId,$city,$keyword,$days);
$rsSearchResult=$objSearch->searchItineraries($flag);
}
}
else
{
$categoryId=$objCategory->getCategoryId($flag);
$objSearch=new Search(0,0,$city,$keyword,$days);
$rsSearchResult=$objSearch->searchTourPackageItineraries($categoryId,'');
$topdestinationCategory="OUTBOUND";
}
?>
Holiday Tour Packages, International Vacations from India
Holiday Tour Packages
display($rsSearchResult);
?>
function display($rs)
{
global $themeId,$city,$keyword,$countryId,$days;
$recordsOnAPage=7;
if(empty($_GET[ci]))
$currentIndex=1;
else
$currentIndex=$_GET[ci];
$search_url='index.html?flag='.$_GET[flag];
if(is_resource($rs))
{
autoLoad("class.TourPrice.php");
$objTourPrice = new TourPrice();
autoLoad('class.Category.php');
$objCategory=new Category();
autoLoad('class.ImageGallery.php');
$objImageGallery=new ImageGallery();
$start=0;
$start=($currentIndex-1)*$recordsOnAPage;
$end=$currentIndex*$recordsOnAPage;
$records=mysql_num_rows($rs);
if($records>0)
mysql_data_seek($rs,$start);
$count=0;
displayPaging($records,$search_url,$minLimit=5,$maxLimit=10,$recordsOnAPage,$currentIndex);
while($row=mysql_fetch_array($rs))
{
$categoryDir=$objCategory->findCategoryDir($row[id]);
$rowThumbnail=$objImageGallery->getThumbnail($row[id]);
$arrPrice=$objTourPrice->getTourLeastPrice($row[id]);
$url_booking=bslUrlEncode("url=".$categoryDir."/".$row[page_url]."&itid=".$row[id]."&price=".$arrPrice[0]."&roomcategory=".$arrPrice[1]."&validto=".$arrPrice[2]."&type=".$arrPrice[3]);
?>
$url='searchflag=set&countryid='.$countryId.'&keyword='.$keyword.'&city='.$city.'&themeid='.$themeId.'&days='.$days.'';?>
=$row[overview]?>
» View Detail Itinerary
Destination: =$row[destination_covered]?> |
Duration: =$row[duration]-1?> Night / =$row[duration]?> Days |
Tour Code: =$row[tour_code]?> |
if((int)$arrPrice[0] > 0) { ?>
Tour Price: /- Per Person ( echo $arrPrice[1];?> Basis)
}?>
$count++;
if($count>=$recordsOnAPage)
break;
}
displayPaging($records,$search_url,$minLimit=5,$maxLimit=10,$recordsOnAPage,$currentIndex);
}
}
?>