<?php
	$path="../../";
	include("../../map.php");
	$ubol = explode("/", $_GET["order"]);
	if($_GET["q"]<>""){
		$sorgu=" and t1 like '%".$_GET["q"]."%' or t4 like '%".$_GET["q"]."%' or t5 like '%".$_GET["q"]."%'";
		$order="order by t1 asc";
	}else{
		if($_GET["order"]<>""){
			$order="order by ".$ubol[0]." ".$ubol[1]." limit 0,10";
		}else{
			$order="order by id desc limit 0,10";
		}
	}
?>
<table class="v3-table" style="min-width:350px;">
									<thead style="">
										<tr>
											<th class="w8 mw8 mdn">ID</th>
											<th><?php echo ctranslate("Başlık");?></th>
<?php if($f7==1){?>
											<th class="tac w10 mw8"><?php echo ctranslate("Stok")?></th>
<?php }?>
											<th class="w15 mw20 tar mtar"><?php if($e5==1){ echo $sdil[85];  }else{ echo $sdil[80];}?></th>
										</tr>
									</thead>
									<tbody>
										<?php $sql=mysqli_query($conn, "select * from ".$_SESSION["lang"]." where ne='kayit' $sorgu $lkayit $order"); while($rs=mysqli_fetch_assoc($sql)){ ?>
											<tr title="<?php if($rs["s13"]<>1){ echo ctranslate("Pasif"); } if($rs["s13"]==3){echo ctranslate("- Tedarik Edilemiyor");}?>" style="cursor:pointer;<?php if($rs["s13"]<>1){?>color:#ccc;<?php } if($rs["s13"]==3){?>text-decoration:line-through;<?php }?>" class="mfrm" data-toggle="modal" data-target="#myModal" data-width="90%" data-url="modules/products/product.php?islem=dkayit&ne=kayit&id=<?php echo $rs["id"]?>" data-title="#<?php echo $rs['id']?>">
												<td class="mdn"><?php echo i2a($rs["id"],7)?></td>
												<td><?php echo kisalt($rs["t1"],2);?></td>
<?php if($f7==1){?>
												<td class="tac"><?php echo $rs["s5"];?> <?php echo $rs["r10"];?></td>
<?php }?>
<?php if($e5==1){?>
												<td class=" tar mtar digi"><?php echo price($rs["id"],"pb1");?></td>
<?php  }else{?>
												<td class="tar mtar"><?php $sqlm=mysqli_query($conn, "select * from t5 where id=".$rs['s19'].""); $rsm=mysqli_fetch_assoc($sqlm); echo $rsm["t1"];?></td>
<?php }?>
											</tr>
										<?php }?>
									</tbody>
								</table>