<?php
$path="../../../";
$path2="config/"; include("".$path."config/map.php");
include("fonksiyon".$ver.".php");
$sqly=mysqli_query($conn, "select * from genel where ne='yorum' and s1=".$_GET["id"]." and s4=1 order by id desc"); while($rsy=mysqli_fetch_assoc($sqly)){
	$jsi = json_decode($rsy["n6"],true);
	$sqlm=mysqli_query($conn, "select * from t5 where id=".$rsy["s2"].""); $rsm=mysqli_fetch_assoc($sqlm);
	if(mysqli_num_rows($sqlm)<>0){$user=$rsm["t1"];}elseif($rsy["t4"]<>""){$user=$rsy["t4"];}else{$user=translate("Misafir");}
	?>
	<div style="height:10px; clear:both;"></div>
	<div class="v3-row" style="border:solid 1px #ccc; border-radius: 3px;padding: 5px;">
		<div class="v3-col-md-1 v3-col-xs-2">
			<i class="fa fa-user-circle-o" style="font-size:45px;"></i>
		</div>
		<div class="v3-col-md-11 v3-col-xs-10" style="">
			<div style="font-weight:bold; font-size:12px; float:left;"><?php echo $user?></div>
			<div style="font-size:12px; float:left; margin-left:10px"><?php echo timeAgo($rsy["ts1"]);?></div>
			<div style="float:right;">
				<?php for ($i = 1; $i <= $rsy["s3"]; $i++) {?>
					<i class="fa fa-star" aria-hidden="true"></i>
				<?php }?>
			</div>
			<div style="font-size:12px;display: block; clear: both;">
			<div class="v3-row">
				<div class="v3-col-md-12">
					<?php echo $rsy["n1"];?>
				</div>
				<?php if($rsy["n6"]<>""){?>
				<?php foreach($jsi as $key=>$value){ ?>
					<div class="v3-col-md-2 v3-col-xs-3" style="padding: 5px;">
						<a data-fancybox="gallery" href="<?php echo $media_path_slash?>deppo/dosya/<?php echo $value;?>" class="v3-thumbnail">
							<img src="<?php echo $media_path_slash?>deppo/dosya/<?php echo $value;?>">
						</a>
					</div>
				<?php }}?>
			</div>
			</div>
		</div>
	</div>
	<?php if($rsy["n2"]<>""){?>
		<div class="v3-row" style="border:solid 1px #ccc; border-radius: 3px;padding: 5px;">
			<div class="v3-col-md-1 v3-col-xs-2">
				<i class="fa fa-user-circle" style="font-size:45px;"></i>
			</div>
			<div class="v3-col-md-11 v3-col-xs-10" style="">
				<div style="font-weight:bold; font-size:12px; float:left;">Editör</div>
				<div style="font-size:12px; float:left; margin-left:10px"><?php echo timeAgo($rsy["ts2"]);?></div>
				<div style="font-size:12px"><?php echo $rsy["n2"];?></div>
			</div>
		</div>
	<?php }}?>
	<div style="height:10px; clear:both;"></div>