<?php
$path="../../";
include("../../map.php");
?>
<table class="v3-table" style="">
<thead style="">
	<tr class="mdn">
		<th class="mw8 w8">ID</th>
		<th class=""><?php echo ctranslate($task)?></th>
		<th class="mw30 w30"><?php echo ctranslate($t25);?></th>
		<th class="mw20 w10"><?php echo ctranslate("Tarih")?></th>
	</tr>
</thead>
<tbody>
		<?php
		$sqlg = mysqli_query($conn, "select * from genel where ne='gorev' and s2=0 ".$luye." order by t10 desc limit 0,10"); while($rsg=mysqli_fetch_assoc($sqlg)){
		$gt11 = explode(',',$rsg["t11"]); $ct11 = count($gt11);
		for ($i = 0; $i < $ct11; $i++) {$sqlm=mysqli_query($conn, "select id,t1 from t5 where id=".$gt11[$i].""); $rsm=mysqli_fetch_assoc($sqlm); $users[]=$rsm["t1"];}
		?>
		<?php //if($rs["t10"]<>"" and (dt($rsg["t10"])==1 or dt($rsg["t10"])==0)){?>
			<tr class="<?php if($rs["t10"]<>"" and dt($rsg["t10"])==1){?>alert alert-warning<?php }elseif($rs["t10"]<>"" and dt($rsg["t10"])==0){?>alert alert-success<?php }?>"  style="cursor:pointer;" onclick="location.href='?ne=gorev&islem=dgorev&id=<?php echo $rsg["id"]?>'">
				<td class="mdn"><?php echo i2a($rsg["id"],7);?></td>
				<td><?php echo $rsg["t1"];?> <?php if($rsg["s3"]==1){?><i class="fa fa-check"></i><?php }?></td>
				<td class="">
					<?php foreach($users as $user){echo "<span class=\"badge bg-warning mr5 fas fa-user\"> ".$user."</span>";};?>
				</td>
				<td class=""><div title="<?php echo dtarih($rsg["t10"],"gg ka yyyy");?> <?php echo $rsg["t8"]?>" class="v3-date"><span><?php echo dtarih($rsg["t10"],"gg");?></span><span><?php echo dtarih($rsg["t10"],"ka");?></span></div></td>
			</tr>
		<?php }?>
	</tbody>
</table>