getCountryId($countryName);
if((int)$countryId>0)
{
$objTour=new Tour();
$rsTour=$objTour->getToursByCountry($countryId);
}
}
?>
Tour Packages
display($rsTour);
?>
function display($rs)
{
global $themeId;
$recordsOnAPage=7;
if(empty($_GET[ci]))
$currentIndex=1;
else
$currentIndex=$_GET[ci];
$search_url='tour-packages.html?destination='.$_GET[destination];
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]);
?>