<?php
header('Content-Type: text/html; charset=utf-8');
$path="../../../../"; $path2="config/";
include("".$path."deppo/tools/script/cevir.php");
include("".$path."config/map.php");
include("".$path."deppo/tools/script/fonksiyon".$ver.".php");
if($_GET["col"]==2){ $col=6; }elseif($_GET["col"]==3){ $col=4; }elseif($_GET["col"]==4){ $col=3; }
$lmt=round($_GET["row"]*$_GET["col"]);
if($_GET["type"]=="yeni"){
	$sorgu="and s2=1";
}elseif($_GET["type"]=="vitrin"){
	$sorgu="and s1=1";
}elseif($_GET["type"]=="indirim"){
	$sorgu="and pb2<>'0'";
}
?>
<?php if($_GET["slide"]==0){?>
<?php $sql=mysqli_query($conn, "select * from ".$_SESSION["lang"]." where ne='".$_GET["ne"]."' $sorgu limit 0,".$lmt.""); while($rs=mysqli_fetch_assoc($sql)){ ?>
<div class="col-xs-6 col-md-<?php echo $col?>">
	<a href="<?php echo linked("s",$rs["id"]);?>" class="thumbnail" style="height:210px; text-align:center;">
		<img src="<?php echo medya($rs["id"],1,"resim","t1","", $weburl)?>" alt="<?php echo $rs["t1"]?>" style="height:200px;">
	</a>
	<h1 style="font-size: 12px; height:45px; width:100%; text-align:center; font-weight:bold;"><?php echo $rs["t1"]?></h1>
</div>
<?php }?>
<?php }else{?>
<h4 style="color:white;">data-items="2-4-4-4" data-interval="2000" data-slide="1" data-animator="lazy"</h4>
<div class="resCarousel" data-items="2-4-4-4" data-interval="2000" data-slide="1" data-animator="lazy">
<div class="resCarousel-inner">
<?php $sql=mysqli_query($conn, "select * from ".$_SESSION["lang"]." where ne='".$_GET["ne"]."' $sorgu limit 0,".$lmt.""); while($rs=mysqli_fetch_assoc($sql)){ ?>
<div class="item">
	<a href="<?php echo linked("s",$rs["id"]);?>" class="thumbnail" style="height:210px; text-align:center;">
		<img src="<?php echo medya($rs["id"],1,"resim","t1","", $weburl)?>" alt="<?php echo $rs["t1"]?>" style="height:200px;">
	</a>
	<h1 style="font-size: 12px; height:45px; width:100%; text-align:center; font-weight:bold;"><?php echo $rs["t1"]?></h1>
</div>
<?php }?>
</div>
<button class='btn btn-default leftRs' style="top: 75px; bottom:auto; left:-30px;"><</button>
<button class='btn btn-default rightRs' style="top: 75px; bottom:auto; right:-30px;">></button>
</div>
<?php }?>