<?php
$path="../../"; include("../../map.php");
include("../../scripts.php");
$sql=mysqli_query($conn, "select * from t5 where (id='".$_GET["id"]."' or id='".Guid2ID($_GET["id"])."')"); $rsu=mysqli_fetch_assoc($sql);
?>
<a class="v3-btn v3-btn-warning mfrm" data-toggle="modal" data-width="95%" data-target="#myModal" data-url="../../modules/public/add.php?ne=uye&islem=relations&durum=nrelations&id=<?php echo $_GET["id"];?>" style="position: absolute; border-radius: 50%; bottom: 15px; right: 15px; width: 70px; height: 70px; padding: 10px; font-size: 46px;"><i class="fas fa-plus"></i></a>
<div class="card-body">
    <div class="timeline timeline-simple mt-3 mb-3">
<div class="tm-body">
    <ol class="tm-items">
        <?php $sqlr=mysqli_query($conn, "select * from t1 where ne='relations' and (s1=".$_GET["id"]." or s19=".$_GET["id"].") $luye order by id desc"); ?>
				<?php
				while($rsr=mysqli_fetch_assoc($sqlr)){
				$jsri = json_decode($rsr["n17"], true);
				$sqlc=mysqli_query($conn, "select * from t5 where id=".$rsr["s1"]." order by id desc"); $rsc=mysqli_fetch_assoc($sqlc);
				?>
				<li class="cp mfrm" data-toggle="modal" data-width="95%" data-target="#myModal" data-url="client_relation_detail.php?id=<?php echo $rsr["id"]?>" data-title="#<?php echo $rsr["id"]?>" style="border-bottom: 1px solid #ccc;">
					<div class="tm-box">
						<p class="text-muted mb-0"><?php echo timeago($rsr["ts1"])?></p>
						<h4><?php echo $rsr["t1"]?></h4>
						<p><?php echo $rsr["n1"]?></p>
						<?php $i=0; $fci="i"; $sqli=mysqli_query($conn, "select * from genel where ne='inputs' $linputs and (t2='All' or t2='".$_SESSION["lang"]."') and (n3='".$_GET["ne"]."' or n3='".$_GET["islem"]."') and n4<>'switch' and n13='list' and s1=0 $luye order by s10,id asc"); while($rsi=mysqli_fetch_assoc($sqli)){$i++;?>
							<span class="text-primary">#<?php if($rsi["n4"]=="input"){echo $jsi[$fci.$i];}else{echo $jsi[$fci.$i][0];}?></span>
						<?php }?>
					</div>
				</li>
        <?php }?>
    </ol>
</div>
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>