kohjhjhصثقص5572hjkhk7872ثقصثقgdfgdg
Ele57885fddfg872782782782 hjkhj782dfgfghgقفغفغفقhfg555434536
/
home4
/
kisgavwq
/
bioav.co.in
/
includes
/
Upload FileeE
HOME
<div style="min-height:300px;"> <?php if($res_pho['NO_OF_ITEMS']>0) { ?> <span style="float:right;"></span> <div style="font-size:22px;"><?=outText($res_pho['oDATA'][0]['category_name']);?></div> <div style="float:right;"><a href="<?=SITE_HOME?>photogallery.php" title="Back"><img src="../images/go-back-btn.png" border="0"/></a></div><br /> <hr size="1px" color="#CCCCCC" /><br /> <span style="color:#999999; font-style:italic;">Click on the images to view an enlarged version.</span> <br /> <?php for($i=0;$i<$res_pho['NO_OF_ITEMS'];$i++){ $category_id = cleanInput($res_pho['oDATA'][$i]['category_id']); $category_name = outText($res_pho['oDATA'][$i]['category_name']); $category_url = outText($res_pho['oDATA'][$i]['category_url']); $photo_caption = outText($res_pho['oDATA'][$i]['photo_caption']); $photo_file = outText($res_pho['oDATA'][$i]['photo_file']); ?> <figure class=" col-md-3" style="margin-bottom: 25px;"> <div class="popup_wrap relative r_corners wrapper m_bottom_20 d_xs_inline_b d_mxs_block"> <?php if($photo_file){?> <img src="../photo/<?=$photo_file;?>" alt="<?=$photo_file;?>" height="180" width="100%" class="tr_all"> <div class="popup_buttons tr_all_long"> <a href="../photo/<?=$photo_file;?>" data-group="portfolio" data-title="../photo/<?=$photo_file;?>" class="jackbox icon_wrap_size_3 color_light n_sc_hover d_block circle f_left m_right_10"> <i class="icon-plus"></i> </a> </div> <?php }?> </div> </figure> <?php } ?> <?php } else{ $res_cat = $phoObj->getCategory(); //print "Category:::Vijaya::::".$res_cat; $total_cat = $res_cat['NO_OF_ITEMS']; if($res_cat['NO_OF_ITEMS']>0) { ?> <!--<h1 class="h1">Photo Gallery </h1>--> <span style="color:#999999; font-style:italic;">Click on the images to view catagory images.</span> <div align="left"> <ul> <?php for($i=0;$i<$total_cat;$i++){ $category_id = cleanInput($res_cat['oDATA'][$i]['category_id']); $category_name = outText($res_cat['oDATA'][$i]['category_name']); $category_url = outText($res_cat['oDATA'][$i]['category_url']); //print "Category URL and ID is ::::".$category_id ; $sql="SELECT * from ".PHOTO_GALLERYS." where photo_category='$category_id' order by photo_id desc limit 0,1"; $pdata = $db->getData($sql); $photo_caption = outText($pdata['oDATA'][0]['photo_caption']); $photo_file = outText($pdata['oDATA'][0]['photo_file']); $sql1="SELECT count(*) as total_pages from ".PHOTO_GALLERYS." where photo_category='$category_id'"; $res1 = $db->getData($sql1); $total_photo = $res1['oDATA'][0]['total_pages']; if($photo_file){ ?> <div class="col-md-3 margin category" > <a href="photogallery.php?page=<?= $category_url?>"><img src="../photo/<?=$photo_file;?>" alt="<?= $photo_caption;?>" title="<?=$photo_caption;?>" width="150" height="100" style="width:100%;height:191.5px"/></a> <div class="pht_div"><b><?=$category_name;?></b><br /> <i>(<?=$total_photo?> photos)</i> </div> </div> <?php } }?> </ul> </div> <?php } }?> </div>