<?php
include("ust.php");


## HİZMETLER MODÜLÜ 
$m_kontrol=mysql_query("SELECT * FROM moduller WHERE modul_adi='referanslar'"); 
$getir=mysql_fetch_array($m_kontrol); 
$referans_m_durum = $getir['modul_durum'];
$hizmet_m_durum_ana = $getir['modul_asayfa'];
$hizmet_m_s_g = $getir['modul_v1'];
if($referans_m_durum == "acik"){
		
?>
	
	<br>
			
	<div class="container">
	<h2><?php echo $dil_v_getir['m50']; ?></h2>
	<?php echo $dil_v_getir['m51'];?>
	<hr>
	</div>
		
	<section class="services  section-space" style="background:#ededed;">

	<div class="container">

	<div class="row aucek">

	<?php
	$hizmet_al = mysql_query("SELECT * FROM referanslar WHERE veri_dil='$dil_durum' ORDER BY id DESC limit 0,999");
	while($yaz=mysql_fetch_array($hizmet_al)){
	$id = $yaz['id'];
	$referans_baslik = $yaz['baslik'];
	$referans_resim = $yaz['resim'];
	$referans_alt = $yaz['seo_anahtarkelime'];
	$referans_link = $yaz['seo_aciklama'];
	?>
	
	<div class="col-lg-<?php echo $hizmet_m_s_g;?> col-md-<?php echo $hizmet_m_s_g;?> col-12">
			
	<div class="single-service">
	<?php if(empty($referans_link)){}else{?><a href="<?php echo $referans_link;?>" target="_blank"><?php } ?>
	<center>
	<div class="service-head">
	<img src="<?php echo $referans_resim;?>" alt="<?php echo $referans_baslik;?>">
	</div>
	<div class="service-content">
	<h4><?php if(empty($referans_link)){ echo '<a>'.$referans_baslik.'</a>';}else{ echo '<a href="'.$referans_link.'" target="_blank">'.$referans_baslik.'</a>';}?></h4>
	<p><?php echo $referans_alt; ?></p>

	</div>
	</center>
	</div>
	<?php if(empty($referans_link)){}else{ ?></a><?php } ?>
	</div>
	<?php } ?>
	</div>
	
	
	</div>
	</section>

		
<?php
	include("alt.php"); }else {echo '<meta http-equiv="refresh" content="0;URL=anasayfa/">';}
?>		