/
var
/
www
/
vhosts
/
isyapemlak.com
/
httpdocs
/
Upload File
HOME
<? session_start(); error_reporting(E_ERROR | E_WARNING | E_PARSE); include "includes/config.php"; include "includes/functions.php"; include "includes/arrays.php"; $rootDir = dirname(__FILE__); $pFolder = "emlak_img/"; $pSmallFolder = "emlak_img/small/"; include "includes/SimpleImage.php"; define("BASE_URL" ,BASE.$_SESSION['lang']."/"); define("TBASE_URL" ,TBASE.$_SESSION['lang']."/"); include "lang/".fnIncludeLang(); ?> <div class="row clearfix"> <? $StrSQL = "SELECT e_id, emlak_turu, sub_type, title, spot, cephe, fiyat, indirimli_fiyat, para_turu, satis_turu, create_date, update_date, (SELECT resim FROM emlak_img WHERE e_id=emlak.e_id AND is_default='1' ORDER BY img_id LIMIT 0,1) AS emlak_img , (SELECT resim FROM emlak_img WHERE e_id=emlak.e_id ORDER BY img_id LIMIT 0,1) AS emlak_first , (SELECT il FROM il WHERE il_id=emlak.il_id) AS emlak_il , (SELECT ilce FROM ilce WHERE ilce_id=emlak.ilce_id) AS emlak_ilce , (SELECT mahalle FROM mahalle WHERE mahalle_id=emlak.mahalle_id) AS emlak_mah FROM emlak WHERE lang='".$_SESSION['lang']."' AND status='1' AND ana_sayfa='1' AND emlak_turu='".intval($_GET['cat_id'])."' ORDER BY e_id DESC"; //echo $StrSQL."<br>"; $query = mysql_db_query($db_name,$StrSQL) or die ($strMysqlError); while($row = mysql_fetch_assoc($query)){ if(isset($row['emlak_img'])){ if(file_exists($rootDir."/images/".$pFolder.$row['emlak_img'])){ if(!file_exists($rootDir."/images/".$pSmallFolder.$row['emlak_img'])){ $objImage = new SimpleImage(); $objImage->ImageToFit($row['emlak_img'],IMG_SMALL_WIDTH,IMG_SMALL_HEIGHT,"images/".$pFolder,"images/".$pSmallFolder); } } } else { if(file_exists($rootDir."/images/".$pFolder.$row['emlak_first'])){ if(!file_exists($rootDir."/images/".$pSmallFolder.$row['emlak_first'])){ $objImage = new SimpleImage(); $objImage->ImageToFit($row['emlak_first'],IMG_SMALL_WIDTH,IMG_SMALL_HEIGHT,"images/".$pFolder,"images/".$pSmallFolder); } } } $eTitle = str_replace(" m2 "," m<sup>2</sup> ",$row['title']); $eTitle = str_replace(" M2 "," m<sup>2</sup> ",$eTitle); $ctrlCephe = 1; $arrCephe = explode(".",$row['cephe']); if(($arrCephe[0] == 0) && ($arrCephe[1] == 0) && ($arrCephe[2] == 0) && ($arrCephe[3] == 0)) $ctrlCephe = 0; ?> <div class="col-lg-4 col-md-6 col-sm-6 col-xm-6 col-xs-12 mainajaxcont"> <div class="onecikan-cont"> <div class="one-fotocont"> <? //if(file_exists(TBASE."images/".$pSmallFolder.$row['emlak_img'])){?> <img src="<?=TBASE?>images/<? echo $pSmallFolder.$row['emlak_img']?>" class="img-responsive center-block"> <? //} else {?> <? //}?> <div class="one-tur"><? echo $strEmlakSatisTuru[$row['satis_turu']]?></div> <? if(intval($row['indirimli_fiyat']) > 0){?><div class="salebadge"> <img src="<?=BASE?>images/salebadge_<? echo $_SESSION['lang']?>.png" class="img-responsive"> </div><? }?> <? if($ctrlCephe == 1){?> <div class="compasmain"> <div class="compass2-cont"> <div class="compass2"> <img src="<?=BASE?>images/pusula/kuzeyc.png" class="kuzeyc <? if($arrCephe[0] == 1) echo "active";?>" alt=""> <img src="<?=BASE?>images/pusula/doguc.png" class="doguc <? if($arrCephe[1] == 1) echo "active";?>" alt=""> <img src="<?=BASE?>images/pusula/guneyc.png" class="guneyc <? if($arrCephe[2] == 1) echo "active";?>" alt=""> <img src="<?=BASE?>images/pusula/batic.png" class="batic <? if($arrCephe[3] == 1) echo "active";?>" alt=""> </div> </div> </div> <? }?> <a class="one-hover" href="<?=BASE_URL?>emlak/<? echo fnUrlTitle(stripslashes($row['title'])."-".$row['e_id'])?>.html"> <p><? echo $row['spot']?></p> </a> </div> <div class="one-detay"> <div class="one-baslik"><? echo $eTitle?></div> <address class="one-adres"> <? echo $row['emlak_il']." ".$row['emlak_ilce']." ".$row['emlak_mah']?> </address> <div class="one-fiyat"> <? if(intval($row['indirimli_fiyat']) == 0){ echo number_format(fnEmlakFiyat($row['fiyat'],$row['para_turu']),0,",",".")." ".$_SESSION['kur']; } else { echo '<span style="text-decoration:line-through; color:#F59499;">'.number_format(fnEmlakFiyat($row['fiyat'],$row['para_turu']),0,",",".").'</span> '.number_format(fnEmlakFiyat($row['indirimli_fiyat'],$row['para_turu']),0,",",".")." ".$_SESSION['kur']; } ?> </div> <ul class="tarih-link"> <li> <span>İlan Tarihi <? echo fnMakeDate($row['update_date'])?></span> </li> <li class="one-detaylink"> <a class="btn btn-line" href="<?=BASE_URL?>emlak/<? echo fnUrlTitle(stripslashes($row['title'])."-".$row['e_id'])?>.html"> DETAYLAR </a> </li> </ul> </div> </div> </div> <? }?> </div> <div class="ajaxpagelink"> <a href="<?=BASE_URL?>emlak_list/<? echo fnURLTitle($strEmlakCat[intval($_GET['cat_id'])]."-".intval($_GET['cat_id']))?>.html">Tümünü Listele</a> </div> <script> var swiper = new Swiper('#onecikas', { scrollbar: '.swiper-scrollbar', paginationClickable: true, scrollbarHide: false, mousewheelControl: true, spaceBetween: 0, autoplay: 2500, slidesPerView: 3, breakpoints: { 1024: { slidesPerView: 3, spaceBetween: 0 }, 768: { slidesPerView: 3, spaceBetween: 0 }, 640: { slidesPerView: 2, spaceBetween:0 }, 320: { slidesPerView: 1, spaceBetween: 0 } } }); </script>