searchItineraries($flag);
$url_all="flag=ALLRESULTS&countryid=".$countryId."&themeid=".$themeId."&city=".$city."&keyword=".$keyword."&days=".$days."&";
$url_days="countryid=".$countryId."&themeid=".$themeId."&city=".$city."&keyword=".$keyword."&days=".$days."&";
$url_all=bslUrlEncode($url_all);
$url_days=bslUrlEncode($url_days);
/*if((int)$_GET[page]>0)
$page=(int)$_GET[page];
else
$page=1;
$displayRecord=4; //how many records display at a time.
*/
?>
India Holidays and Tour Packages, International Tour Package Search Result
function display($rs)
{
global $themeId,$city,$keyword,$countryId,$days;
$recordsOnAPage=7;
if(empty($_GET[ci]))
$currentIndex=1;
else
$currentIndex=$_GET[ci];
$search_url='search-result.html?searchflag=set&countryid='.$countryId.'&keyword='.$keyword.'&city='.$city.'&themeid='.$themeId.'&days='.$days.'';
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.'';?>
=html_entity_decode($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);
}
}
?>