<?php
	$sqlq=mysqli_query($conn, "select * from t2 where ne='question' and s3=".$id." and s4=1"); while($rsq=mysqli_fetch_assoc($sqlq)){
	$sqlc=mysqli_query($conn, "select * from t5 where id=".$rsq["s1"].""); $client=mysqli_fetch_assoc($sqlc);
	$sqls=mysqli_query($conn, "select * from t5 where id=".$rsq["s2"].""); $store=mysqli_fetch_assoc($sqls); $jsi = json_decode($store["n17"],true);
?>
<div style="height:10px; clear:both;"></div>
<div class="" style="border:solid 1px #ccc; border-radius: 3px; padding: 5px; display: flow-root;">
	<div class="v3-col-md-1 v3-col-xs-2 tac mtac">
		<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 $client["t1"];?></div>
		<div style="font-size:12px; float:left; margin-left:10px"><?php echo timeAgo($rsq["ts1"]);?></div>
		<div style="font-size:12px;display: block; width: 100%; clear: both;"><?php echo $rsq["n1"];?></div>
	</div>
</div>
<?php if($rsq["n2"]<>""){?>
	<div class="v3-col-md-1 v3-col-xs-1 tac mtac">
		<i class="fas fa-level-up-alt fa-rotate-90" style="font-size: 30px; margin-top: 15px;"></i>
	</div>
	<div class="v3-col-md-11" style="border:solid 1px #ccc; border-radius: 3px;padding: 5px; margin-top:5px;">
		<div class="v3-col-md-1 v3-col-xs-2 tac mtac">
			<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;"><?php echo $jsi["imagaza"];?></div>
			<div style="font-size:12px; float:left; margin-left:10px"><?php echo timeAgo($rsq["ts2"]);?></div><br>
			<div style="font-size:12px"><?php echo $rsq["n2"];?></div>
		</div>
	</div>
<?php }}?>
<div style="height:10px; clear:both;"></div>