viewAll_PeaksImage();
if($rsImg){
while($row=mysql_fetch_assoc($rsImg)){
if($row['url_img']!=""){
$arrImg= array();
$arrImg[] = $row['url_img']; //large_img_url
$arrImg[] = $row['name'];
$arrImg[] = "photo-gallery-detail.html?heading=".$row['name']."&type=".$row['component']."&typeId=".$row['component_id'];
$arrImg[] = "Peaks";
array_push($imgarray,$arrImg);
}
}
}
}else{
$heading="Albums";
//Call All Photo gallery Image Category As Image Category
$rsImg=$objImage->viewAll_AdventureCategoryImage();
if($rsImg){
while($row=mysql_fetch_assoc($rsImg)){
if($row['url_img']!=""){
$arrImg= array();
$arrImg[] = $row['url_img']; //large_img_url
$arrImg[] = $row['category_name'];
$arrImg[] = "photo-gallery-detail.html?heading=".$row['category_name']."&type=".$row['component']."&typeId=".$row['component_id'];
$arrImg[] = "Photo Gallery";
array_push($imgarray,$arrImg);
}
}
}
//Call All Photo gallery Image Category As Destination
$rsImg=$objImage->viewAll_DestinationImage();
if($rsImg){
while($row=mysql_fetch_assoc($rsImg)){
if($row['url_img']!=""){
$arrImg= array();
$arrImg[] = $row['url_img']; //large_img_url
$arrImg[] = $row['name'];
$arrImg[] = "photo-gallery-detail.html?heading=".$row['name']."&type=".$row['component']."&typeId=".$row['component_id'];
$arrImg[] = "Destinations";
array_push($imgarray,$arrImg);
}
}
}
}
if(count($imgarray)==0){
$noImage="
";
}
//Pagination Section starts
$pgct=1;
if(isset($_GET['pg'])){
$pgct=$_GET['pg'];
}
$pagStr="";
$dataLimit=12;
$dataCount=count($imgarray);
if($dataCount>$dataLimit){
$ct=1;$i=1;
foreach($imgarray as $k=>$v){
$imageArray[$ct][$k]=$v;
if($i%$dataLimit == 0){
$pagtnArray[$ct]=$ct;
$ct++;
}
$dataCount--;
$i++;
}
$pagStr='