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

$verino = g("verino");
$icerik_getir=mysql_query("SELECT * FROM paket_kategori WHERE seo_url='$verino'"); 
$getir=mysql_fetch_array($icerik_getir); 
$kat_id = $getir['id'];
$kat_baslik = $getir['baslik'];
$kat_icerik = $getir['icerik'];
$goruntuleme = $getir['goruntuleme'];
$seo_aciklama = $getir['seo_aciklama'];
if(empty($kat_baslik)){ echo '<meta http-equiv="refresh" content="0;URL=anasayfa/">';}else{
	
$sayi1= $goruntuleme;
$sayi2=1;
$toplam=$sayi1+$sayi2;
$duzenle = mysql_query("update paket_kategori set goruntuleme='$toplam' where id='$kat_id'") or die("Hata Olustu!");

##-> Fiyat Tablosu Modülü
$modul_getir=mysql_query("SELECT * FROM moduller WHERE modul_adi='fiyattablosu'"); 
$getir=mysql_fetch_array($modul_getir); 
$modul_durum = $getir['modul_durum'];
$modul_asayfa = $getir['modul_asayfa'];
$modul_v1 = $getir['modul_v1'];
$modul_v2 = $getir['modul_v2'];
$modul_v6 = $getir['modul_v6'];
if($modul_durum == "acik"){
?>
	
	<br>
	
	
	
	<section class="blog-layout news-default">
	<div class="container">
	<h2><?php echo $kat_baslik; ?></h2>
	<hr>
	<?php echo $seo_aciklama; ?>
	
	<div class="row">
	
	<?php
	$paketler_al = mysql_query("SELECT * FROM fiyattablosu WHERE m15='$kat_id' ORDER BY paket_sira ASC limit 0,999");
	while($yaz=mysql_fetch_array($paketler_al)){
	$id = $yaz['id'];
	$baslik = $yaz['baslik'];	
	$m4 = $yaz['m4'];	
	$m5 = $yaz['m5'];	
	$m6 = $yaz['m6'];	
	$m7 = $yaz['m7'];	
	$m8 = $yaz['m8'];	
	$m9 = $yaz['m9'];	
	$m10 = $yaz['m10'];		
	$m11 = $yaz['m11'];		
	$m12 = $yaz['m12'];		
	$m13 = $yaz['m13'];		
	$m14 = $yaz['m14'];	
	$tl_formati = number_format($m5, 2, ',', '.');
	?>
	
	<div class="col-lg-4 col-md-4 col-12">
	<div class="single-pricing">
	<div class="price-head">
	<?php if(empty($m7)){}else{?><div class="p-best" style="background:<?php echo $m8;?>"><p><?php echo $m7; ?></p></div><?php } ?>
	<h4 class="small-title"><?php echo $baslik;?><span><?php echo $m4;?></span></h4>
	</div>
	<h2 class="price"><span><?php echo $tl_formati;?> 	<?php echo $dil_v_getir['dil_para']; ?> </span><br><?php if($modul_v1 == "evet"){?><b class="renew" style="border:0px solid black;"><?php echo $m6;?></b><?php } ?></h2>
	<ul class="price-list">
	<?php echo $m9;?>
	</ul>
	<?php if($modul_v6 == "evet"){?>
	<?php if($modul_v2 == "evet"){?>
	<div class="button">
	<a class="bizwheel-btn theme-1" href="buy-pack/<?php echo $id;?>" target="_blank"><?php echo $dil_v_getir['m61']; ?></a>
	</div>
	<?php }} ?>
	
	</div>
	</div>
	
	<?php } ?> 
	
	</div>
	
	
	
	<br>
	
	</div>
	
	<div class="container">
	<?php echo $kat_icerik;?>
	</div>
	</section>
	<br><br>
		
<?php

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