<div class="inner-wrapper">
	<?php
		if($cols["c_kayit_kategori"]<>""){
			$ucats = json_decode(GetArr("u","categories"), true);
		}
		if($cols["c_kayit_yonetici"]<>""){
			$users = json_decode(GetArr("","users","(s9=1 or s1=1)"), true);
		}
		$sqli=mysqli_query($conn, "select id,t3,n1,n4,n13,n14 from genel where ne='inputs' and n3='".$_GET["ne"]."' and s1=0 order by s10,id asc");$a=0; while($rsi=mysqli_fetch_assoc($sqli)){$a++; $inputs[] = $rsi; }
		if($cols["c_medya"]<>""){
			$sqlm=mysqli_query($conn, "select id,ne,t1,s1,s2 from medya where t3='".$_GET["ne"]."'"); while($rsm=mysqli_fetch_assoc($sqlm)){$medias[] = $rsm;}
		}
		if(!empty($_POST["s5"])){$s5=$_POST["s5"];}else{$s5="";}
		$slmt = !empty($_GET["show"]) ? $_GET["show"] : (!empty($cols["c_".$_GET["ne"]."_limit"]) ? $cols["c_".$_GET["ne"]."_limit"] : (!empty($module["slmt"]) ? $module["slmt"] : 20));
		$sayfa = $_GET['sayfa'];
		if($_SESSION["user_id"]<>0 and $_SESSION["y19"]<>1){$ulist="and s19=".$_SESSION["user_id"]."";}	//Sadece Yetkisi olanları göster
		if($_GET['sayfa'] == "") {$sayfa = 0; $ss = 1;}else{$sayfa = ($sayfa-1) * $slmt; $ss = $_GET['sayfa'];}
		if($_POST["min_pb1"]<>"" and $_POST["max_pb1"]<>""){$filters .= " and (pb1>=".$_POST["min_pb1"]." and pb1<=".$_POST["max_pb1"].")";}
		if($_POST["s13"]<>""){$filters .= " and (s13=".$_POST["s13"].")";}
		if($_POST["cat"]<>""){$filters .= " and (s9='".$_POST["cat"]."' or s10='".$_POST["cat"]."')";}
		if($_POST["min_s5"]<>"" and $_POST["max_s5"]<>""){$filters .= " and (s5>=".$_POST["min_s5"]." and s5<=".$_POST["max_s5"].")";}
		$order = "order by s12 asc, id desc";
		$sorgu = "";

		if (!empty($_GET["key"])) {
			$key = $_GET["key"];
			$sorgu = "and (id LIKE '%$key%' or t1 LIKE '%$key%' or t4 LIKE '%$key%' or t5 LIKE '%$key%' or n2 LIKE '%$key%' or n4 LIKE '%$key%' or n16 LIKE '%$key%' or n17 LIKE '%$key%')";
		} elseif (!empty($_GET['grupID'])) {
			$grupID = $_GET['grupID'];
			$sorgu = "and (s9='$grupID' or s10='$grupID' or s11='$grupID')";
		} elseif (!empty($_GET["order"])) {
			$order = "order by " . qa($_GET["order"]);
		} elseif (!empty($_GET["ne"]) && !empty($cols["c_{$_GET["ne"]}_order"])) {
			$order = $cols["c_{$_GET["ne"]}_order"];
		}
		//echo "ne='".$_GET["ne"]."' ".$sorgu." ".$filters." ".$lkayit." ".$order."";

		if ($_SESSION["ProjeID"] != "") { $sorgu .= "AND n17 LIKE '%\"iclient_project\":[".$_SESSION["ProjeID"]."]%'";}
		$sql = mysqli_query($conn, "select SQL_CALC_FOUND_ROWS id,t1,t2,t4,t5,t16,pb1,pb2,pb3,s1,s4,s5,s9,s10,s11,s12,s13,s19,ts1,n1,n2,n3,n4,n16,n17,n18 from ".$_SESSION['lang']." where ne='".$_GET["ne"]."' $sorgu $filters $lkayit $order limit $sayfa,$slmt"); 
		//Kayıt Sayısı
		$total_result = mysqli_query($conn, "SELECT FOUND_ROWS()"); $rcount = mysqli_fetch_array($total_result)[0];
	?>
	<section role="main" class="content-body">
		<header class="page-header">
			<h2><?php echo $t24;?></h2>
			
			<div class="right-wrapper text-right">
				<ol class="breadcrumbs">
					<li>
						<a href=".">
							<i class="fa fa-home"></i>
						</a>
					</li>
					<li><span>Crm Plus+</span></li>
					<li><span><?php echo ctranslate($t24);?></span></li>
				</ol>
				
				<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
			</div>
		</header>
		<?php if($_GET["durum"]=="ok"){?>
			<div class="alert alert-success">
				<?php echo ctranslate("İşlem Başarıyla Gerçeklestirilmistir")?>
			</div>
		<?php }?>
		<div class="v3-row" id="process"></div>
		<div class="row">
			<div class="col">
				<section class="card">
					<header class="card-header v3-bg-info">
						<div class="card-actions" id="v-<?php echo $_GET['islem'];?>">
							<?php include("modules/public/filter.php");?>
                            <a class="mb-1 mt-1 mr-1 btn btn-success savebtn" style="display:none;" onclick="AjaxPost('?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&durum=mupdate','#lform','?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>','')"><i class="fa fa-refresh" aria-hidden="true"></i> <?php echo ctranslate("Güncelle")?></a>
                            <a class="mb-1 mt-1 mr-1 btn btn-danger delbtn" style="display:none;" onclick="AjaxPost('?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&durum=mdel','#lform','?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>','')"><i class="fa fa-times" aria-hidden="true"></i> <?php echo ctranslate("Sil")?></a>
							<a class="mb-1 mt-1 mr-1 btn btn-default" id="data-prev" href="<?php if($_GET["sayfa"]=="" or $_GET["sayfa"]==1){?>#<?php }else{?>?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&grupID=<?php echo $_GET["grupID"];?>&key=<?php echo $_SESSION["key"];?>&durum=<?php echo $_GET["durum"];?>&order=<?php echo $_GET["order"];?>&show=<?php echo $_GET["show"];?>&sayfa=<?php echo $ss-1;?><?php }?>"><i class="fa fa-chevron-circle-left" aria-hidden="true"></i></a>
							<div class="mb-1 mt-1 mr-1 btn btn-default">
								<select onChange="self.location.href=this.options[this.selectedIndex].value;" class="form-control v3-input-xs sna" style="padding:0px; height: 19px;">
									<?php
									$rsay=$rcount/$slmt;
									for ($i = 0; $i <= $rsay; $i++) { $x=$i+1;
									?>
										<option value="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&durum=<?php echo $_GET["durum"];?>&order=<?php echo $_GET["order"];?>&grupID=<?php echo $_GET["grupID"];?>&show=<?php echo $_GET["show"];?>&sayfa=<?php echo $x;?>" <?php if(($_GET["sayfa"]=="" and $x==1) or $_GET["sayfa"]==$x){?>selected<?php }?>><?php echo $x;?></option>
									<?php }?>
								</select>
							</div>
							<a class="mb-1 mt-1 mr-1 btn btn-default" id="data-next" href="<?php if($x >= $ss+1){?>?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&durum=<?php echo $_GET["durum"];?>&order=<?php echo $_GET["order"];?>&grupID=<?php echo $_GET["grupID"];?>&show=<?php echo $_GET["show"];?>&sayfa=<?php echo $ss+1;?><?php }else{?>#<?php }?>"><i class="fa fa-chevron-circle-right" aria-hidden="true"></i></a>
							<div class="mb-1 mt-1 mr-1 btn btn-default mdn">
								<select onChange="self.location.href=this.options[this.selectedIndex].value;" class="form-control v3-input-xs sna" style="padding:0px; height: 19px;">
									<option value="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&grupID=<?php echo $_GET["grupID"];?>&sayfa=<?php echo $_GET["sayfa"];?>&show=<?php echo $_GET["show"];?>"><?php echo translate("Sırala");?></option>
									<option value="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&grupID=<?php echo $_GET["grupID"];?>&sayfa=<?php echo $_GET["sayfa"];?>&show=<?php echo $_GET["show"];?>&durum=order&order=t1+asc" <?php if($_GET["order"]=="t1+asc"){echo "selected";}?>>A->Z</option>
									<option value="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&grupID=<?php echo $_GET["grupID"];?>&sayfa=<?php echo $_GET["sayfa"];?>&show=<?php echo $_GET["show"];?>&durum=order&order=t1+desc" <?php if($_GET["order"]=="t1+desc"){echo "selected";}?>>Z->A</option>
									<option value="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&grupID=<?php echo $_GET["grupID"];?>&sayfa=<?php echo $_GET["sayfa"];?>&show=<?php echo $_GET["show"];?>&durum=order&order=id+desc" <?php if($_GET["order"]=="id+desc"){echo "selected";}?>><?php echo ctranslate("Yeni->Eski")?></option>
									<option value="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&grupID=<?php echo $_GET["grupID"];?>&sayfa=<?php echo $_GET["sayfa"];?>&show=<?php echo $_GET["show"];?>&durum=order&order=id+asc" <?php if($_GET["order"]=="id+asc"){echo "selected";}?>><?php echo ctranslate("Eski->Yeni")?></option>
									<option value="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&grupID=<?php echo $_GET["grupID"];?>&sayfa=<?php echo $_GET["sayfa"];?>&show=<?php echo $_GET["show"];?>&durum=order&order=s13+asc" <?php if($_GET["order"]=="s13+asc"){echo "selected";}?>><?php echo ctranslate("Pasif->Aktif")?></option>
									<option value="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&grupID=<?php echo $_GET["grupID"];?>&sayfa=<?php echo $_GET["sayfa"];?>&show=<?php echo $_GET["show"];?>&durum=order&order=s13+desc" <?php if($_GET["order"]=="s13+desc"){echo "selected";}?>><?php echo ctranslate("Aktif->Pasif")?></option>
									<option value="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&grupID=<?php echo $_GET["grupID"];?>&sayfa=<?php echo $_GET["sayfa"];?>&show=<?php echo $_GET["show"];?>&durum=order&order=s1+desc" <?php if($_GET["order"]=="s1+desc"){echo "selected";}?>><?php echo ctranslate("Vitrin")?></option>
								</select>
							</div>
								<a class="mb-1 mt-1 mr-1 btn btn-warning mfrm" data-toggle="modal" data-width="50%" data-target="#myModal" data-url="modules/public/add.php?ne=kayit&islem=kayitlar&durum=ykayit" data-ref="?ne=kayit&islem=kayitlar" data-title="<?php echo ctranslate("Yeni ".$t24s[0]);?>"><i class="fa fa-plus" aria-hidden="true"></i> <?php echo ctranslate("".$t24s[0]." Ekle");?></a>
								<!--<a class="mt1 mmt4 mr2 mmr2 btn btn-default mfrm" data-toggle="modal" data-target="#myModal" data-url="modules/products/filter.php?ne=<?php echo $_GET["ne"]?>&islem=cols" href="#" title="<?php echo ctranslate("Filtre")?>"><i class="fa fa-filter" aria-hidden="true"></i></a>-->
								<div class="mb-1 mt-1 mr-1 btn btn-default" onclick="toggle('.ddd')" style="position: relative;"><i class="fa fa-ellipsis-v" aria-hidden="true"></i>
									<div class="dropdown-menu ddd" role="menu" style="right: 0px;">
										<a class="dropdown-item text-1 mfrm" data-toggle="modal" data-width="50%" data-target="#myModal" data-url="modules/products/multiupdate.php" data-ref="?ne=kayit&islem=kayitlar" data-title="<?php echo ctranslate("Toplu Güncelle");?>">Toplu Güncelle</a>
									</div>
								</div>
						</div>
						<h2 class="card-title mdn"><?php echo ctranslate($t24);?></h2>
					</header>
					<div class="card-body w1600">
						<table class="v3-table resizable" id="t<?php echo $_GET["ne"]?>">
							<thead>
								<tr class="mdn <?php if($_SESSION["kim"]=="Admin" or ($_SESSION["kim"]=="yonetici" and $_SESSION["y15"]<>0)){echo "cols";}?>" data-ne="kayit">
									<th class="w2 mw2" style="text-align:center;" id="th1">
										<div class="checkbox-custom" style="display: inline;">
											<input type="checkbox" id="c0" onclick="Checks(this); toggle('#alldel')" <?php if($_SESSION["kim"]=="yonetici" and $_SESSION["y15"]==0){echo "disabled";}?>>
											<label for="c0"></label>
										</div>
									<div id='th1-sizer'></div>
									</th>
									<th class="w4 mw5" class="black-cell" style="text-align:center;" id="th2">
										ID
										<div class="sort fa fa-sort" onclick="sortTable('plist',1)"> </div>
										<div id='th2-sizer'></div>
									</th>
									<th id="th3">
										<span class="column-sort"> <a href="#" title="Sort up" class="sort-up"></a> <a href="#" title="Sort down" class="sort-down"></a> </span> 
										<?php echo ctranslate("Başlık")?>
										<div class="sort fa fa-sort" onclick="sortTable('plist',2)"> </div>
									<div id='th3-sizer'></div>
									</th>
									<th class="w7 mw7 <?php if($cols["c_kayit_islem"]==""){echo "dn";}?>" id="th4">
										<div style="margin-top: 10px;">
											<?php echo ctranslate("Durum")?>
										</div>
									<div id='th4-sizer'></div>
									</th>
									<th class="w7 mw6 <?php if($cols["c_kayit_medya"]==""){echo "dn";}?>" id="th5"><?php echo ctranslate("Medya")?><div id='th5-sizer'></div></th>
									<?php
									$i=0;foreach($inputs as $key=>$value){
									if($value["n4"]<>"switch"){$i++;}
									if($value["n4"]<>"switch" and $cols["c_kayit_input_".$value["id"].""]<>""){
									?>
									<th class="w5 mw5">
										<?php echo cevir1($value["n1"])?>
											<i class="fa-regular fa-square-caret-down" onclick="toggle('#<?php echo cevir1($value["n1"])?>')"></i>
											<ul class="col_filter" id="<?php echo cevir1($value["n1"])?>">
											<?php
												$arr = array();
												foreach($fcol as $ckey=>$cvalue){ $jsi = json_decode($cvalue["n17"], true);
												if($jsi["i".$i.""]<>""){ $arr[] = $jsi["i".$i.""]; } }
											?>
											<?php foreach (array_unique($arr) as $ar){?>
												<li><label for="cf<?php echo $i;?>"><input type="checkbox" id="cf<?php echo $i;?>" name="<?php echo $value["n1"]?>[]" value="<?php echo $ar?>"> <?php echo $ar?></label></li>
											<?php }?>
											</ul>
									</th>
									<?php }}?>
									<th class="w8 mw8 tac <?php if($cols["c_kayit_marka"]==""){echo "dn";}?>" id="th6"><?php echo ctranslate("Marka");?><div id='th6-sizer'></div></th>
									<?php if($a4<>0){?>
										<th class="w8 mw8 <?php if($cols["c_kayit_kategori"]==""){echo "dn";}?>" id="th7"> <span class="column-sort"> <a href="#" title="Sort up" class="sort-up"></a> <a href="#" title="Sort down" class="sort-down"></a> </span>
											<?php echo ctranslate("x Grup")?>
											<div id='th7-sizer'></div>
										</th>
									<?php }?>
									<?php if($a4>1){?>
										<th class="w8 mw8 tac <?php if($cols["c_kayit_akategori"]==""){echo "dn";}?>" id="th8"> <span class="column-sort"> <a href="#" title="Sort up" class="sort-up"></a> <a href="#" title="Sort down" class="sort-down"></a> </span>
											<?php echo ctranslate("y Grup")?>
											<div id='th8-sizer'></div>
										</th>
									<?php }?>
									<?php if($a4>2){?>
										<th class="w8 mw8 tac <?php if($cols["c_kayit_a2kategori"]==""){echo "dn";}?>" id="th8"> <span class="column-sort"> <a href="#" title="Sort up" class="sort-up"></a> <a href="#" title="Sort down" class="sort-down"></a> </span>
											<?php echo ctranslate("z Grup")?>
											<div id='th8-sizer'></div>
										</th>
									<?php }?>
									<th class="w6 mw6 tac <?php if($cols["c_kayit_afiyat"]==""){echo "dn";}?>" scope="col" id="th9">
										<?php if($e5==1){?>
											<?php echo ctranslate("A.Fiyat")?>
										<?php }?>
										<div class="order">
											<a href="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&grupID=<?php echo $_GET["grupID"];?>&show=<?php echo $_GET["show"];?>&sayfa=<?php echo $_GET["sayfa"];?>&durum=order&order=pb1+asc" class="fa fa-sort-asc"></a>
											<a href="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&grupID=<?php echo $_GET["grupID"];?>&show=<?php echo $_GET["show"];?>&sayfa=<?php echo $_GET["sayfa"];?>&durum=order&order=pb1+desc" class="fa fa-sort-desc"></a>
										</div>
										<div id='th9-sizer'></div>
									</th>
									<th class="w6 mw7 tac <?php if($cols["c_kayit_lfiyat"]==""){echo "dn";}?>" scope="col" style="text-decoration: line-through;" id="th10">
											<?php echo ctranslate("Liste Fiyatı")?>
										<div class="order">
											<a href="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&grupID=<?php echo $_GET["grupID"];?>&show=<?php echo $_GET["show"];?>&sayfa=<?php echo $_GET["sayfa"];?>&durum=order&order=pb2+asc" class="fa fa-sort-asc"></a>
											<a href="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&grupID=<?php echo $_GET["grupID"];?>&show=<?php echo $_GET["show"];?>&sayfa=<?php echo $_GET["sayfa"];?>&durum=order&order=pb2+desc" class="fa fa-sort-desc"></a>
										</div>
									<div id='th310-sizer'></div>
									</th>
									<th class="w8 mw5  tac <?php if($cols["c_kayit_sfiyat"]==""){echo "dn";}?>" scope="col" id="th11">
										<?php echo ctranslate("Fiyat")?>
										<div class="order">
											<a href="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&grupID=<?php echo $_GET["grupID"];?>&show=<?php echo $_GET["show"];?>&sayfa=<?php echo $_GET["sayfa"];?>&durum=order&order=pb1+asc" class="fa fa-sort-asc"></a>
											<a href="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&grupID=<?php echo $_GET["grupID"];?>&show=<?php echo $_GET["show"];?>&sayfa=<?php echo $_GET["sayfa"];?>&durum=order&order=pb1+desc" class="fa fa-sort-desc"></a>
										</div>
										<div id='th11-sizer'></div>
									</th>
									<th class="w5 mw5 <?php if($cols["c_kayit_kdv"]==""){echo "dn";}?>" scope="col" id="th12">
										<?php echo ctranslate("Kdv")?>
										<div id='th12-sizer'></div>
									</th>
									<?php if($f7==1){?>
										<th class="w5 mw5 <?php if($cols["c_kayit_stok"]==""){echo "dn";}?>" id="th13">
										<?php echo ctranslate("Stok")?>
										<div class="order">
											<a href="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&grupID=<?php echo $_GET["grupID"];?>&show=<?php echo $_GET["show"];?>&sayfa=<?php echo $_GET["sayfa"];?>&durum=order&order=s5+asc" class="fa fa-sort-asc"></a>
											<a href="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&grupID=<?php echo $_GET["grupID"];?>&show=<?php echo $_GET["show"];?>&sayfa=<?php echo $_GET["sayfa"];?>&durum=order&order=s5+desc" class="fa fa-sort-desc"></a>
										</div>
										<div id='th13-sizer'></div>
									</th>
								<?php }?>
									<th class="w8 mw8 e <?php if($cols["c_kayit_yonetici"]==""){echo "dn";}?>" style="" id="th14">
										<?php echo ctranslate("Yönetici(ler)")?>
									<div id='th14-sizer'></div>
									</th>
								<th class="w5 mw5 <?php if($cols["c_kayit_sira"]==""){echo "dn";}?>" style="text-align:center;" id="th15"> <span class="column-sort"> <a href="#" title="Sort up" class="sort-up"></a> <a href="#" title="Sort down" class="sort-down"></a> </span> <?php echo ctranslate("Sıra")?>  <i class="fas fa-broom"></i></th>
								<th class="w10 mw10 <?php if($cols["c_kayit_tarih"]==""){echo "dn";}?>" style="text-align:center;" id="th16"> <span class="column-sort"> <a href="#" title="Sort up" class="sort-up"></a> <a href="#" title="Sort down" class="sort-down"></a> </span> <?php echo ctranslate("Tarih"); //Tarih?> </th>
								<th class="w5 mw5" style="text-align:center;" id="th17"><?php echo ctranslate("İşlemler")?><div id='th17-sizer'></div></th>
							</tr>
						</thead>
									<!--#edit-->
									<form method="post" id="lform">
										<tbody class="filterable">
											<?php
											while($rs=mysqli_fetch_assoc($sql)){ $jsi = json_decode($rs["n17"], true); $jsm = json_decode($rs["n18"], true);
												if($rs["t5"]=="" or $rs["t5"]=="0"){$barcode=i2a($rs["id"],13);}else{$barcode=$rs["t5"];}
												if($rs["t4"]=="" or $rs["t4"]=="0"){$qr=substr(ihb(cevir($t24)),0,1).i2a($rs["id"],7);}else{$qr=$rs["t4"];}
												$spuan = 0; $scolor = ""; $tpuan = ""; // Seo Puan
												$fields = [ "t1" => ["puan" => 20, "label" => "Title,"], "n2" => ["puan" => 30, "label" => "Desc,"], "n1" => ["puan" => 28, "label" => "Detail,"], "n3" => ["puan" => 20, "label" => "Xtitle,"] ];
												foreach ($fields as $key => $data){
													if (!empty($rs[$key])){
														$spuan += $data["puan"];
														$tpuan .= $data["label"];
													}
												}
												if ($authority==0){ $dauth=0; }else{ $dauth=1; }
												if($f7==0){
													if($rs["s13"]==1){ $clr="text-success"; $tit=ctranslate("Aktif");}else{ $clr="text-muted"; $tit=ctranslate("Pasif");}
												}else{
													if($rs["s13"]==1 and $rs["s5"]==1){ $clr="text-warning";  $tit=ctranslate("Kritik Stok");}elseif($rs["s13"]==1 and $rs["s5"]<1){ $clr="text-danger";  $tit=ctranslate("Stokta Yok");}elseif($rs["s13"]==1 and $rs["s5"]>1){ $clr="text-success"; $tit=ctranslate("Stokta Var");}elseif($rs["s13"]==0){ $clr="text-muted"; $tit=ctranslate("Pasif");}
												}
												$i=0;$f=0;$v=0;$thumbnail=""; $k="";
												foreach($medias as $key=>$value){
													if($value["ne"]=="resim" and $value["s1"]==$rs["id"] and $value["s2"]==1){$thumbnail=$value["t1"];}
													if($value["ne"]=="resim" and $value["s1"]==$rs["id"]){$i++;}
													if($value["ne"]=="dosya" and $value["s1"]==$rs["id"]){$f++;}
													if($value["ne"]=="video" and $value["s1"]==$rs["id"]){$v++;}
												}
												if(substr($thumbnail,-4)<>"webp" and substr($thumbnail,-3)<>"svg"){$k="k_";}
												?>
												<tr data-id="<?php echo $rs["id"];?>" id="tr<?php echo $rs["id"];?>" style="position:relative">
													<td style="text-align:center;" class=" tw5">
														<div class="cflip" onclick="jQuery(this).toggleClass('active'); var chk = jQuery(this).find('.dchck'); chk.prop('checked', !chk.prop('checked'));">
															<div class="shadow flip_card">
																<div class="front ff<?php echo $rs["id"]?>" data-id="<?php echo $rs["id"]?>">
																	<img src="<?php if($thumbnail<>""){echo "../deppo/image/".$k.$thumbnail;}else{echo $favicon;}?>" class="" style="" title="">
																</div>
																<div class="back fb<?php echo $rs["id"]?>" data-id="<?php echo $rs["id"]?>"><i class="fas fa-check mfs20"></i></div>
															</div>
															<input type="checkbox" style="display:none;" id="c<?php echo $rs["id"]?>" class="dchck" name="SID[]" value="<?php echo $rs["id"]?>" <?php if($dauth==0){echo "Disabled";}?>>
														</div>
														<input type="hidden" name="KID[]" value="<?php echo $rs["id"]?>" /></td>
														<th scope="row" class="mdn table-check-cell " style="<?php if($rs["s13"]==2){echo "text-decoration:line-through;";}?>">
															<div class="cp v3-text-info mfrm" data-toggle="modal" data-width="90%" data-target="#myModal" data-url="modules/products/product.php?<?php echo uri("get")?>&key=<?php echo $_SESSION["key"];?>&id=<?php echo $rs["id"];?>" data-ref="?ne=kayit&islem=kayitlar" data-title="#<?php echo $rs["id"];?>" title="<?php if(empty($t46)){echo $rs["id"];}else{echo $qr;}?>" style="font-size:11px;"><?php if(empty($t46)){echo i2a($rs["id"],7);}else{echo substr($qr,0,9);}?></div>
															<?php if(!empty($t46)){?>
																<input type="text" class="form-control v3-input-sm" id="t5_<?php echo $rs["id"]?>" name="t5[]" value="<?php echo $barcode?>" style="font-size:9px;padding: 0px; height: 20px;">													
															<?php }?>
														</th>
														<td  style="position:relative;">
															<span class="dn"><?php echo $rs["t1"]?></span>
															<input type="text" class="form-control v3-input-sm <?php echo $clr?> t1" name="t1[]" value="<?php echo para($rs["t1"])?>" style="width: 100%; background: transparent; border: 0px" />
															<span class="fa fa-<?php if(empty($rs["n5"])){?>pencil<?php }else{?>external-link<?php }?> clnspan" title="<?php echo $rs["n5"]?>"></span>
															<div class="mdn" style="width:<?php echo $spuan;?>%; height:2px; background: linear-gradient(to right, #fff, #95b75d); float:left;"></div>
															<div class="dn" style="font-size: 9px; margin-top: -15px; position:absolute;" title="<?php echo $tpuan?>">%<?php echo $spuan;?></div>
														</td>
														<td style="" class="mdn <?php if($cols["c_kayit_islem"]==""){echo "dn";}?>">
															<?php if(($_SESSION["kim"]=="Admin" or ($_SESSION["kim"]=="yonetici" and $_SESSION["y2_sp"]==1))){?>
																<div class="mdn" style="position: absolute; left: 10px; top: -3px;">
																	<?php $sqlp=mysqli_query($conn, "select id,n4 from genel where ne='tanim' and t2='sp' order by t2,n4 asc"); while($rsp=mysqli_fetch_assoc($sqlp)){?>
																	<a class="mfrm full cp" style="float:right; margin-right:2px;" data-toggle="modal" data-target="#myModal" data-url="../sanalpazar/<?php echo $rsp["n4"];?>/?id=<?php echo $rs["id"]?>&sp=<?php echo $rsp["n4"];?>" data-title="<?php echo ihb($rsp["n4"]);?>"><img style="<?php if($jsi['is'.$rsp["n4"].'']==0){echo 'filter: grayscale(1);';}?>height:14px;" src="https://cdn.<?php echo $cdnurl?>/images/<?php echo $rsp["n4"];?>.ico"></a>
																	<?php }?>
																</div>
															<?php }?>
															<div style="margin-top: 10px;">
																<div class="checkbox-custom checkbox-<?php if($rs["s13"]==1){echo "success";}else{echo "danger";}?>" alt="<?php echo ctranslate("Açık/Kapalı")?>" title="<?php echo ctranslate("Açık/Kapalı")?>" style="float:left;">
																	<input type="checkbox" id="checkboxExample4" <?php if($rs["s13"]==1){?>checked<?php }?> onclick="if(!confirm('<?php echo ctranslate("Açık/Kapalı")?> durumunu değiştirmek istediğinize eminmisiniz?')) return false;AjaxGet('?islem=<?php echo $_GET["islem"];?>&ne=<?php echo $_GET["ne"];?>&durum=s13&id=<?php echo $rs["id"];?>&s13=<?php if($rs["s13"]=="1"){?>0<?php }else{?>1<?php }?>&sayfa=<?php echo $_GET["sayfa"];?>','#')">
																	<label for="checkboxExample4"></label>
																</div>
																<div class="checkbox-custom checkbox-<?php if($rs["s1"]==1){echo "success";}else{echo "info";}?>" alt="<?php echo ctranslate("Vitrin")?>" title="<?php echo ctranslate("Vitrin")?>" style="float:left;">
																	<input type="checkbox" id="checkboxExample4" <?php if($rs["s1"]==1){?>checked<?php }?> onclick="if(!confirm('<?php echo ctranslate("Vitrin")?> durumunu değiştirmek istediğinize eminmisiniz?')) return false;AjaxGet('?islem=<?php echo $_GET["islem"];?>&ne=<?php echo $_GET["ne"];?>&durum=s1&id=<?php echo $rs["id"];?>&s1=<?php if($rs["s1"]=="1"){?>0<?php }else{?>1<?php }?>&sayfa=<?php echo $_GET["sayfa"];?>','#')">
																	<label for="checkboxExample4"></label>
																</div>
																<?php
																$m=0; foreach($inputs as $key=>$value){
																if($value["n4"]=="switch"){$m++;}
																if($value["t3"]<>""){$ival=$value["t3"];}else{$ival = "ms".$m."";}
																if($value["n4"]=="switch" and $cols["c_kayit_input_".$value["id"].""]<>""){
																?>
																<div class="checkbox-custom p0 mp0 cp <?php if($jsm[$ival]=="1"){echo "v3-bg-success";}else{echo "v3-bg-danger";}?>" title="<?php echo $value["n1"]?>" style="float: left; margin-top: -9px; width: 20px; height: 20px; border-radius:3px; margin-right:2px;" onclick="if(!confirm('<?php echo $value["n1"]?> durumunu değiştirmek istediğinize eminmisiniz?')) return false; AjaxGet('?islem=<?php echo $_GET["islem"];?>&ne=<?php echo $_GET["ne"];?>&durum=ms&id=<?php echo $rs["id"];?>&k=ms<?php echo $m?>&v=<?php if($jsm[$ival]=="1"){?>0<?php }else{?>1<?php }?>&sayfa=<?php echo $_GET["sayfa"];?>','#'); jQuery(this).toggleClass('v3-bg-danger v3-bg-success'); jQuery('.c<?php echo $rs["id"]?>').toggleClass('fa-check')">
																	<?php if($value["n14"]<>""){?><i class="checkbox-custom <?php echo $value["n14"]?>" style="padding:0px 3px;"></i><?php }else{?><i class="fa <?php if($jsm[$ival]=="1"){echo "fa-check";}?> c<?php echo $rs["id"]?>" style="padding:0px 3px;"></i><?php }?>
																</div>
																<?php }}?>
															</div>
														</td>
														<?php if($cols["c_kayit_medya"]<>""){?>
														<td class="mdn">
															<div class="keywords">
																<?php if($a1==1){?>
																	<span class="badge badge-success" alt="<?php echo $i;?> <?php echo ctranslate("Resim")?>" title="<?php echo $i;?> <?php echo ctranslate("Resim")?>" style="margin-left:1px; cursor:pointer;">
																		<a class="mfrm ufile" data-toggle="modal" data-target="#myModal" data-width="50%" data-url="modules/upload/upload_image.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $rs["id"]; ?>">
																			<i id="d0<?php echo $rs["id"]?>"><?php echo $i;?></i>
																		</a>
																	</span>
																<?php }?>
																<?php if($a2<>0){?>
																	<span class="badge badge-success" alt="<?php echo $f;?> <?php echo ctranslate("Video")?>" title="<?php echo $v;?> <?php echo ctranslate("Video")?>" style="margin-right:1px; cursor:pointer;">
																		<a class="mfrm ufile" data-toggle="modal"  data-target="#myModal" data-width="50%" data-url="modules/video/video_add.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $rs["id"]; ?>">
																			<i id="i0<?php echo $rs["id"]?>"><?php echo $v;?></i>
																		</a>
																	</span>
																<?php }?>
																<?php if($a3==1){?>
																	<span class="badge badge-success" alt="<?php echo $f;?> <?php echo ctranslate("Dosya")?>" title="<?php echo $d;?> <?php echo ctranslate("Dosya")?>" style="margin-right:1px; cursor:pointer;">
																		<a class="mfrm ufile" data-toggle="modal" data-target="#myModal" data-width="50%" data-url="modules/upload/upload_file.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $rs["id"]; ?>">
																			<i id="d0<?php echo $rs["id"]?>"><?php echo $f;?></i>
																		</a>
																	</span>
																<?php }?>
															</div>
														</td>
													<?php }?>
														<?php
														$i=0;foreach($inputs as $key=>$value){
														if($value["t3"]<>""){$ival=$value["t3"];}else{$ival = "i".$i."";}
														if($value["n4"]<>"switch"){$i++;}
														if($value["n4"]<>"switch" and $cols["c_kayit_input_".$value["id"].""]<>""){
														?>
														<td class="mdn <?php echo $value["n13"]?>">
															<?php if(is_array($jsi[$ival])){?>
																<?php foreach($jsi[$ival] as $k=>$v){$val = "".$val.", ".$v."";}?>
																<?php echo ltrim($val,",");?>
															<?php }else{?>
																<?php if($jsi["i".$i.""]<>""){echo $jsi[$ival];}else{echo "...";}?>
															<?php }?>
														</td>
														<?php }}$val="";?>
														<th class="mdn <?php if($cols["c_kayit_marka"]==""){echo "dn";}?>">
															<input type="text" class="form-control v3-input-sm" id="t16_<?php echo $rs["id"]?>" name="t16[]" value="<?php echo $rs["t16"]?>">
														</th>
														<?php if($a4<>0){?>
															<td class="mdn <?php if($cols["c_kayit_kategori"]==""){echo "dn";}?>">
															<?php
															$xcat="";
															foreach($ucats as $key=>$value){
																if(($module["ajax_categories"]<>1 and $value["ne"]=="".$q."kategori" or ($module["ajax_categories"]==1 and $value["t1"]=="".$_GET["ne"]."" and $value["c1"]==0))){ 
																	$xcat .= ($value["id"] == $rs["s9"] || in_array($value["id"], multivalues($rs["s9"]))) ? "<a href=\"?ne=kayit&islem=kayitlar&grupID=".$value["id"]."\" class=\"badge badge-success\">".$value["item"]."</a>" : '';
																}
															}
															echo empty(rtrim($xcat, ', ')) ? "..." : rtrim($xcat, ', ');
															?>
															</td>
														<?php }?>
														<?php if($a4>1){?>
															<td class="mdn <?php if($cols["c_kayit_akategori"]==""){echo "dn";}?>">
																<?php
																$ycat="";
																foreach($ucats as $key=>$value){
																	if(($module["ajax_categories"]<>1 and $value["ne"]=="".$q."alt_kategori" or ($module["ajax_categories"]==1 and $value["t1"]=="".$_GET["ne"]."" and $value["s3"]==0))){
																		$ycat .= ($value["id"] == $rs["s10"] || in_array($value["id"], multivalues($rs["s10"]))) ? "<a href=\"?ne=kayit&islem=kayitlar&grupID=".$value["id"]."\" class=\"badge badge-warning\">".$value["item"]."</a>" : '';
																	}
																}
																echo empty(rtrim($ycat, ', ')) ? "..." : rtrim($ycat, ', ');
																?>
															</td>
														<?php }?>
														<?php if($a4>2){?>
															<td class="mdn <?php if($cols["c_kayit_a2kategori"]==""){echo "dn";}?>">
																<?php
																$zcat="";
																foreach($ucats as $key=>$value){
																	if(($module["ajax_categories"]<>1 and $value["ne"]=="".$q."alt_kategori2" and $value["c2"]==$rs["s10"] or ($module["ajax_categories"]==1 and $value["t1"]=="".$_GET["ne"]."" and $value["c2"]==$rs["s10"] and $value["s3"]==0))){
																		$zcat .= ($value["id"] == $rs["s11"] || in_array($value["id"], multivalues($rs["s11"]))) ? "<a href=\"?ne=kayit&islem=kayitlar&grupID=".$value["id"]."\" class=\"badge badge-danger\">".$value["item"]."</a>" : '';
																	}
																}
																echo empty(rtrim($zcat, ', ')) ? "..." : rtrim($zcat, ', ');
																?>
															</td>
														<?php }?>
														<td class="mdn <?php if($cols["c_kayit_afiyat"]==""){echo "dn";}else{echo "";}?>">
															<input type="text" name="pb3[]" onfocus="if(this.value == '0') { this.value = ''} "  onblur="if(this.value == '') { this.value='0'; }" value="<?php echo wprice($rs["pb3"]);?>" class="form-control digi fs16 tar" style="font-size:11px; background: transparent; border: 0px">
														</td>
														<td class="mdn <?php if($cols["c_kayit_lfiyat"]==""){echo "dn";}else{echo "";}?>">
															<input type="text" name="pb2[]" onfocus="if(this.value == '0') { this.value = ''} "  onblur="if(this.value == '') { this.value='0'; }" value="<?php echo wprice($rs["pb2"]);?>" class="form-control digi fs16 tar" style="font-size:11px; background: transparent; border: 0px;text-decoration: line-through;">
														</td>
														<td class="mw20 tw15 <?php if($cols["c_kayit_sfiyat"]==""){echo "dn";}else{echo "";}?>" style="position:relative;">
																<i class="fa fa-<?php echo strtolower($rs["t2"])?> pa ddn"></i>
															<div class="input-group">
																<input type="text" name="pb1[]" onfocus="if(this.value == '0') { this.value = ''} "  onblur="if(this.value == '') { this.value='0'; }" value="<?php echo wprice($rs["pb1"]);?>" data-id="<?php echo $rs["id"];?>" data-pb="<?php echo $rs["t2"];?>" class="mp0 form-control digi fs16 tar" style="font-size:11px; font-weight: bold; background: transparent; <?php //if($mobile==""){echo "border: 1px solid #ced4da !important;";}?>">
																<span class="input-group-addon mdn" style="border: 0px; background: unset; padding: 0;">
																<select size=1 name="t2[]" class="sna sfa form-control tar sna" style="padding: 6px 0px; font-size: 11px; background: transparent; border: 0px !important;<?php if($b4==1){?>display:none;<?php }?>">
																	<option value="TRY" <?php if($rs["t2"]=="TL" or $rs["t2"]=="TRY") {?>Selected<?php }?>>&#xf195;</option>
																	<option value="EUR" <?php if($rs["t2"]=="EUR") {?>Selected<?php }?>>&#xf153;</option>
																	<option value="USD" <?php if($rs["t2"]=="USD") {?>Selected<?php }?>>&#xf155;</option>
																	<option value="GBP" <?php if($rs["t2"]=="GBP") {?>Selected<?php }?>>&#xf154;</option>
																</select>
																</span>
																</div>
															
															<?php if($rs["t2"]<>trim($module["currency"])) {?><p class="mdn pb<?php echo $rs["id"];?>" style="position:absolute;bottom: -<?php if($mobile==""){echo "25";}else{echo "35";}?>px; right:0px; font-size:9px;">* <?php echo nice_number(sprice(price($rs["id"],"pb1")));?> <?php echo $ikpb?></p><?php }?>
														</td>
														<td class="mdn <?php if($cols["c_kayit_kdv"]==""){echo "dn";}else{echo "";}?>">
															<input type="text" name="s4[]" onfocus="if(this.value == '0') { this.value = ''} "  onblur="if(this.value == '') { this.value='0'; }" value="<?php echo $rs["s4"];?>" class="form-control digi fs16" style="font-size:11px; background: transparent; border: 0px">
														</td>
														<?php if($f7==1){?>
															<td class="mw10  tw10 <?php if($cols["c_kayit_stok"]==""){echo "dn";}?>" style="position: relative;">
																<?php if($rs["s5"]=="0"){?><i class="fa fa-exclamation-triangle text-danger" style="position:absolute; right:3px;" aria-hidden="true"></i><?php }elseif($rs["s5"]<=$s17){?><i class="fa fa-exclamation-triangle text-warning" style="position:absolute; right:3px;" title="Stok Alarmı [<?php echo $s17?>]" aria-hidden="true"></i><?php }?>
																<input type="text" name="s5[]" onfocus="if(this.value == '0') { this.value = ''} "  onblur="if(this.value == '') { this.value='0'; }" value="<?php echo $rs["s5"];?>" class="mp0 tac form-control  digi fs16" style="font-size:11px; float:left; background: transparent; <?php if($rs["s5"]=="0"){?>border: 1px solid #d2322d !important;<?php }elseif($rs["s5"]<=$s17){?>border: 1px solid #ed9c28 !important;<?php }?> <?php if($e5<>1){?>display:none;<?php }?>">
															</td>
														<?php }?>
															<td class="mdn e <?php if($cols["c_kayit_yonetici"]==""){echo "dn";}?>" style="">
																<?php
																	$s19s=""; $s19s .= ($rs["s19"] == '0' || in_array('0', multivalues($rs["s19"]))) ? '<span class="badge badge-warning">Admin</span>' : '';
																	foreach($users as $key=>$value){
																		$s19s .= ($value["id"] == $rs["s19"] || in_array($value["id"], multivalues($rs["s19"]))) ? "<span class='badge badge-info'>".$value["item"]."</span>" : '';
																	}
																	echo empty(rtrim($s19s, ', ')) ? "..." : rtrim($s19s, ', ');
																?>
															</td>
														<td class="tar mdn <?php if($cols["c_kayit_sira"]==""){echo "dn";}?>"><input type="number" name="S12[]" onfocus="if(this.value == '0') { this.value = ''} "  onblur="if(this.value == '') { this.value='0'; }" value="<?php echo $rs["s12"];?>" class="form-control v3-input-sm orders" style="background: transparent; border: 0px"><span class="fa fa-pencil clnspan"></span></td>
														<td class="tar mdn <?php if($cols["c_kayit_tarih"]==""){echo "dn";}?>"><i class="fa fa-plus" aria-hidden="true"></i> <?php echo dtarih($rs["ts1"],"gg.aa.yyyy time");?><br><i class="fa fa-refresh" aria-hidden="true"></i> <?php echo dtarih($rs["ts2"],"gg.aa.yyyy time");?></td>
														<td class="tar mw10 tw10">
															<div class="input-group-btn" id="btns<?php echo $rs["id"];?>">
																<a class="btn btn-info mr2 mfrm" id="p<?php echo $rs["id"];?>" data-toggle="modal" data-width="90%" data-target="#myModal" data-url="modules/products/product.php?islem=dkayit&ne=<?php echo $_GET["ne"];?>&id=<?php echo $rs["id"];?>&grupID=<?php echo $_GET["grupID"];?>&key=<?php echo $_SESSION["key"];?>&sayfa=<?php echo $_GET["sayfa"];?>" data-ref="?ne=kayit&islem=kayitlar" data-title="#<?php echo $rs["id"];?>"><i class="fa fa-pencil"></i></a>
																<?php if ($dauth==0){?>
																	<a title="<?php echo ctranslate("Yetkili Değilsiniz")?>" class="btn btn-danger btn-ban-row mdn" href="#"><i class="fa fa-lock" aria-hidden="true"></i></a>
																<?php }else{ ?>
																	<a title="<?php echo ctranslate("Kaldir")?>" class="btn btn-danger btn-delete-row mdn" data-href="?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&grupID=<?php echo $_GET["grupID"];?>&order=<?php echo $_GET["order"];?>&show=<?php echo $_GET["show"];?>&sayfa=<?php echo $_GET["sayfa"];?>&key=<?php echo $_SESSION["key"];?>&id=<?php echo $rs["id"];?>&durum=skayit"><i class="fa fa-times" aria-hidden="true"></i></a>
																<?php } ?>
															</div>
														</td>
													</tr>
												<?php }?>
											</tbody>
											<button id="isle" style="display:none;" type="submit"></button>
										</form>
										<!--#edit-->
									</table>
									<div class="tar mt10">
										<span class="fl fs11" id="sub">Toplam : <?php echo $rcount?> Kayıt</span>
										<div class="" id="">
											<select onChange="self.location.href=this.options[this.selectedIndex].value;" class="mb-1 mt-1 mr-1 btn btn-default sna">
												<option value="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&order=<?php echo $_GET["order"];?>&grupID=<?php echo $_GET["grupID"];?>&sayfa=<?php echo $_GET["sayfa"];?>&show=<?php echo $slmt;?>" <?php if($_GET["show"]=="" or $_GET["show"]==$slmt){echo "selected";}?>><?php echo $slmt;?></option>
												<option value="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&order=<?php echo $_GET["order"];?>&grupID=<?php echo $_GET["grupID"];?>&sayfa=<?php echo $_GET["sayfa"];?>&show=<?php echo ($slmt*2);?>" <?php if($_GET["show"]==($slmt*2)){echo "selected";}?>><?php echo $slmt*2;?></option>
												<option value="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&order=<?php echo $_GET["order"];?>&grupID=<?php echo $_GET["grupID"];?>&sayfa=<?php echo $_GET["sayfa"];?>&show=<?php echo ($slmt*4);?>" <?php if($_GET["show"]==($slmt*4)){echo "selected";}?>><?php echo $slmt*4;?></option>
												<option value="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&order=<?php echo $_GET["order"];?>&grupID=<?php echo $_GET["grupID"];?>&sayfa=<?php echo $_GET["sayfa"];?>&show=<?php echo ($slmt*10);?>" <?php if($_GET["show"]==($slmt*10)){echo "selected";}?>><?php echo $slmt*10;?></option>
											</select>
											<a class="mb-1 mt-1 mr-1 btn btn-default" href="<?php if($_GET["sayfa"]=="" or $_GET["sayfa"]==1){?>#<?php }else{?>?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&grupID=<?php echo $_GET["grupID"];?>&key=<?php echo $_SESSION["key"];?>&order=<?php echo $_GET["order"];?>&show=<?php echo $_GET["show"];?>&sayfa=<?php echo $ss-1;?><?php }?>" title="<?php echo $sdil[146]; //Önceki?>"><i class="fa fa-chevron-circle-left" aria-hidden="true"></i></a>
											<div class="mb-1 mt-1 mr-1 btn btn-default">
												<select onChange="self.location.href=this.options[this.selectedIndex].value;" class="form-control v3-input-xs sna" style="padding:0px; height: 21px;">
													<?php for ($i = 0; $i <= $rsay; $i++){ $x=$i+1;?>
														<option value="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&order=<?php echo $_GET["order"];?>&grupID=<?php echo $_GET["grupID"];?>&show=<?php echo $_GET["show"];?>&sayfa=<?php echo $x;?>" <?php if(($_GET["sayfa"]=="" and $x==1) or $_GET["sayfa"]==$x){?>selected<?php }?>><?php echo $x;?></option>
													<?php }?>
												</select>
											</div>
											<a class="mb-1 mt-1 mr-1 btn btn-default" href="<?php if($x >= $ss+1){?>?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&key=<?php echo $_SESSION["key"];?>&order=<?php echo $_GET["order"];?>&grupID=<?php echo $_GET["grupID"];?>&show=<?php echo $_GET["show"];?>&sayfa=<?php echo $ss+1;?><?php }else{?>#<?php }?>"  title="<?php echo $sdil[147]; //Sonraki?>"><i class="fa fa-chevron-circle-right" aria-hidden="true"></i></a>
										</div>
									</div>
								</div>
							</section>
						</div>
					</div>
					<!-- end: page -->
				</section>
			</div>
			<aside id="sidebar-right" class="sidebar-right">
				<div class="nano">
					<div class="nano-content">
						<a href="#" class="mobile-close d-md-none">
							Collapse <i class="fa fa-chevron-right"></i>
						</a>
						<div class="sidebar-right-wrapper">
							...
						</div>
					</div>
				</div>
			</aside>
		</section>
<script>
jQuery('.pb1').keyup(function(){
	var id = jQuery(this).attr('data-id');
	var pb = jQuery(this).attr('data-pb');
	var val = jQuery(this).val();
	if(pb!='<?php echo trim($module["currency"]);?>') {
		jQuery('.pb'+id+'').load('fonksiyon.php?islem=ex&val='+val+'&pb='+pb+'');
	}
});
jQuery('.fa-broom').click(function(){
	jQuery('.orders').each(function(){
		jQuery(this).val('0');
	});
});
</script>
<?php
if($_GET["durum"]=="sira"){
	$Rs = mysqli_query($conn, "update ".$_SESSION['lang']." set s1='".$_POST["s1"]."' where id=".$_GET["id"]."");
	echo location("?ne=".$_GET["ne"]."&islem=".$_GET["islem"]."&id=".$_GET["id"]."&show=".$_GET["show"]."&sayfa=".$_GET["sayfa"]."&key=".$_SESSION["key"]."&cat=".$_GET["cat"]."&durum=ok",self,0,0);
}elseif($_GET["durum"]=="s13"){
	$sql=mysqli_query($conn, "select * from ".$_SESSION['lang']." where id=".$_GET["id"]." order by id desc"); $rs=mysqli_fetch_assoc($sql);
	for ($l = 1; $l <= $lx; $l++) {$Rs = mysqli_query($conn, "update lang".$l." set s13='".$_GET["s13"]."' where id=".$_GET["id"]."");}
	//Onay Maili
	if($h3==1 and ($rs["s19"]<>0) and $rs["s13"]<>1 and $_GET["s13"]==1){
	$sqlu=mysqli_query($conn, "select * from t5 where id=".$rs["s19"].""); $rsu=mysqli_fetch_assoc($sqlu);
	$mesaj	= "".translate("Sayın")." <b>".$rsu["t1"]."</b> \"".$_POST["t1"]."\" ".translate("ilan_monay")."";
	$malici	= base64_decode($rsu["t2"]);
	$konu		= translate("".$t24s[0]." Onaylama");
	$path		= "../";
	$mesaj	= $design_top.$mesaj.$design_bottom;
	emailgonder($malici,$konu,$cc,$mesaj);
	}
	//Onay Maili
	echo location("?ne=".$_GET["ne"]."&islem=".$_GET["islem"]."&id=".$_GET["id"]."&show=".$_GET["show"]."&sayfa=".$_GET["sayfa"]."&order=".$_GET["order"]."&key=".$_SESSION["key"]."&cat=".$_GET["cat"]."&durum=ok",self,0,0);
}elseif($_GET["durum"]=="s1"){
	for ($l = 1; $l <= $lx; $l++) {$Rs = mysqli_query($conn, "update lang".$l." set s1='".$_GET["s1"]."' where id=".$_GET["id"]."");}
	echo location("?ne=".$_GET["ne"]."&islem=".$_GET["islem"]."&id=".$_GET["id"]."&show=".$_GET["show"]."&sayfa=".$_GET["sayfa"]."&order=".$_GET["order"]."&key=".$_SESSION["key"]."&cat=".$_GET["cat"]."&durum=ok",self,0,0);
}elseif($_GET["durum"]=="s2"){
	for ($l = 1; $l <= $lx; $l++) {$Rs = mysqli_query($conn, "update lang".$l." set s2='".$_GET["s2"]."' where id=".$_GET["id"]."");}
		echo location("?ne=".$_GET["ne"]."&islem=".$_GET["islem"]."&id=".$_GET["id"]."&show=".$_GET["show"]."&sayfa=".$_GET["sayfa"]."&order=".$_GET["order"]."&key=".$_SESSION["key"]."&cat=".$_GET["cat"]."&durum=ok",self,0,0);
}elseif($_GET["durum"]=="ms"){
	$marr = uparr($jsm, $_GET["k"], $_GET["v"]);
	$rjsm = json_encode($marr, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_NUMERIC_CHECK);
	for ($l = 1; $l <= $lx; $l++) {$Rs = mysqli_query($conn, "update lang".$l." set n18='".addslashes(stripslashes($rjsm))."' where id=".$_GET["id"]."");}
}
if($_GET["durum"] == "ykayit" or $_GET["durum"] == "dkayit"){
	if($_POST["t1"]==""){ $kt1="".trim($sdil[200])." ".trim($nedir).""; $kislem="dkayit";}elseif($_GET["durum"] == "dkayit"){$kt1=$_POST["t1"]; $kislem="dkayit";}else{ $kt1=$_POST["t1"]; $kislem="dkayit";}
	if($_POST["pb1"]==""){ $kpb1="0";}else{ $kpb1=$_POST["pb1"];}
	if($_POST["s5"]==""){ $ks5="0"; }else{ $ks5=$_POST["s5"]; }
	$ss9 = implode(',',$_POST["s9"]);
	$ss10 = implode(',',$_POST["s10"]);
	$ss11 = implode(',',$_POST["s11"]);
	if($ss9==""){ $ks9="0"; }else{ $ks9=$ss9; }
	if(ss10==""){ $ks10="0"; }else{ $ks10=$ss10; }
	if(ss11==""){ $ks11="0"; }else{ $ks11=$ss11; }
	if($_POST["s12"]==""){ $ks12="0"; }else{ $ks12=$_POST["s12"]; }
	if($_POST["s13"]==""){ $ks13="1"; }else{ $ks13=$_POST["s13"]; }
	if($_POST["s1"]==""){ $ks1="0"; }else{ $ks1=$_POST["s1"]; }
	if($_POST["s2"]==""){ $ks2="0"; }else{ $ks2=$_POST["s2"]; }
	if($_POST["t2"]==""){ $kt2=$module["currency"]; }else{ $kt2=$_POST["t2"]; }
	for ($l = 1; $l <= $lx; $l++){
		$Sql = $conn->query("insert into lang".$l." (t1,ne,ts1,s1,s2,s4,s5,s6,pb1,pb2,pb3,s9,s10,s11,s12,s13,s14,s15,s19,t2,t4,t11,t12) values ('".addslashes(stripslashes($kt1))."', '".$_GET["ne"]."', now(), '".$ks1."', '".$ks2."', '".$s12."', '".$ks5."', '0', '".$kpb1."', '0', '0', '".$ks9."', '".$ks10."', '".$ks11."', '".$ks12."', '".$ks13."', '1', '1', '".$_SESSION["user_id"]."', '".$kt2."', '0', '0', now())");
	}
	$sql=mysqli_query($conn, "select * from ".$_SESSION['lang']." where ne='".$_GET["ne"]."' order by id desc"); $rs=mysqli_fetch_assoc($sql);
		echo location("?ne=".$_GET["ne"]."&islem=".$kislem."&id=".$rs["id"]."&cat=".$_GET["cat"]."&show=".$_GET["show"]."&sayfa=".$_GET["sayfa"]."&order=".$_GET["order"]."&durum=ok",self,500,1);
	}
if($_GET["durum"] == "skayit"){
	$dsql=mysqli_query($conn, "select * from ".$_SESSION["lang"]." where id='".$_GET["id"]."'"); $drs=mysqli_fetch_assoc($dsql); $lt1=$drs["t1"];
	if($drs["t5"]<>""){
		$sql = mysqli_query($conn, "delete from t1 where t5='".$drs["t5"]."'");
	}
	if($module["del"]==0){
		for ($l = 1; $l <= $lx; $l++) {$sql = mysqli_query($conn, "delete from lang".$l." where id=".$_GET["id"]);}
			$sql=mysqli_query($conn, "select * from medya where t3='".$_GET["ne"]."' and s1=".$_GET["id"].""); while($rsi=mysqli_fetch_assoc($sql)){
			if($_SESSION["V3Server"]==""){
				$dosya1="../deppo/image/".$rsi["t1"].""; unlink($dosya1);
				$dosya2="../deppo/image/k_".$rsi["t1"].""; unlink($dosya2);
				$dosya3="../deppo/video/".$rsi["t7"].".jpg";unlink($dosya3);
				$dosya4="../deppo/dosya/".$rsi["t1"]."";unlink($dosya4);
				$sql = mysqli_query($conn, "delete from medya where id=".$rsi["id"]);
			}
				$Rs = mysqli_query($conn, "delete from t4 where s1=".$_GET["id"]." and t5='".$_GET["ne"]."'");
		}
	}else{
		for ($l = 1; $l <= $lx; $l++){ $Rs = mysqli_query($conn, "update ".$_SESSION["lang"]." set s13='2' where id='".$_GET["id"]."'"); }
	}
	echo location("?ne=".$_GET["ne"]."&islem=".$_GET["islem"]."&id=".$_GET["id"]."&show=".$_GET["show"]."&sayfa=".$_GET["sayfa"]."&order=".$_GET["order"]."&key=".$_SESSION["key"]."&cat=".$_GET["cat"]."&durum=ok",self,500,1);
}
if($_GET["durum"] == "mupdate"){
	$KID0 = implode(',',$_POST["KID"]); $KIDS = explode(',',$KID0);
	$S120 = implode(',',$_POST["S12"]); $S12S = explode(',',$S120);
	$a=0;foreach($S12S as $S12) {$a++;
		for ($l = 1; $l <= $lx; $l++) {$Rs = mysqli_query($conn, "update ".$_SESSION['lang']." set s12='".$S12."' where id=".$KIDS[$a-1]."");}
	}
	$pb10 = implode(',',virgul($_POST["pb1"],"boz")); $pb1S = explode(',',$pb10);
	$b=0;foreach($pb1S as $pb1) {$b++;
		for ($l = 1; $l <= $lx; $l++) {$Rs = mysqli_query($conn, "update ".$_SESSION['lang']." set pb1='".sprice(virgul($pb1,"duz"))."' where id=".$KIDS[$b-1]."");}
	}
	$pb20 = implode(',',virgul($_POST["pb2"],"boz")); $pb2S = explode(',',$pb20);
	$c=0;foreach($pb2S as $pb2) {$c++;
		for ($l = 1; $l <= $lx; $l++) {$Rs = mysqli_query($conn, "update ".$_SESSION['lang']." set pb2='".sprice(virgul($pb2,"duz"))."' where id=".$KIDS[$c-1]."");}
	}
	$s50 = implode(',',$_POST["s5"]); $s5S = explode(',',$s50);
	$d=0;foreach($s5S as $s5) {$d++;
		for ($l = 1; $l <= $lx; $l++) {$Rs = mysqli_query($conn, "update ".$_SESSION['lang']." set s5='".$s5."' where id=".$KIDS[$d-1]."");}
	}
	$t20 = implode(',',$_POST["t2"]); $t2S = explode(',',$t20);
	$e=0;foreach($t2S as $t2) {$e++;
		for ($l = 1; $l <= $lx; $l++) {$Rs = mysqli_query($conn, "update ".$_SESSION['lang']." set t2='".$t2."' where id=".$KIDS[$e-1]."");}
	}
	$T10 = implode(',',virgul($_POST["t1"],"boz")); $T1s = explode(',',$T10);
	$f=0; foreach($T1s as $T) {$f++;
		$Rs = mysqli_query($conn, "update ".$_SESSION["lang"]." set t1='".addslashes(stripslashes(virgul($T,"duz")))."' where id=".$KIDS[$f-1]."");
	}
	$T50 = implode(',',$_POST["t5"]); $T5s = explode(',',$T50);
	$g=0; foreach($T5s as $T) {$g++;
		$Rs = mysqli_query($conn, "update ".$_SESSION["lang"]." set t5='".addslashes(stripslashes($T))."' where id=".$KIDS[$g-1]."");
	}
	$T160 = implode(',',$_POST["t16"]); $T16s = explode(',',$T160);
	$h=0; foreach($T16s as $T) {$h++;
		$Rs = mysqli_query($conn, "update ".$_SESSION["lang"]." set t16='".addslashes(stripslashes($T))."' where id=".$KIDS[$h-1]."");
	}
	$N30 = implode(',',$_POST["n3"]); $N3s = explode(',',$N30);
	$h=0; foreach($N3s as $N) {$h++;
		$Rs = mysqli_query($conn, "update ".$_SESSION["lang"]." set n3='".addslashes(stripslashes($N))."' where id=".$KIDS[$h-1]."");
	}
	if($_POST["s4"]<>""){
		$s40 = implode(',',$_POST["s4"]); $s4S = explode(',',$s40);
		$y=0;foreach($s4S as $s4) {$y++;
			for ($l = 1; $l <= $lx; $l++) {$Rs = mysqli_query($conn, "update ".$_SESSION['lang']." set s4='".$s4."' where id=".$KIDS[$y-1]."");}
		}
	}
}elseif($_GET["durum"] == "mdel"){
	if(isset($_POST['SID'])){
		$SID0 = implode(',',$_POST["SID"]); $SIDS = explode(',',$SID0);
		foreach($SIDS as $SID){
			$dsql=mysqli_query($conn, "select * from ".$_SESSION["lang"]." where id='".$SID."'"); $drs=mysqli_fetch_assoc($dsql); $lt1=$drs["t1"];
			if($drs["t5"]<>""){
				$sql = mysqli_query($conn, "delete from t1 where t5='".$drs["t5"]."'");
			}
			if($module["del"]==0){
				for ($l = 1; $l <= $lx; $l++) {$sql = mysqli_query($conn, "delete from lang".$l." where id=".$SID."");}
				$sql=mysqli_query($conn, "select * from medya where t3='".$_GET["ne"]."' and  and s1=".$SID.""); while($rsi=mysqli_fetch_assoc($sql)){
					if($_SESSION["V3Server"]==""){
						$dosya1="../deppo/image/".$rsi["t1"].""; unlink($dosya1);
						$dosya2="../deppo/image/k_".$rsi["t1"].""; unlink($dosya2);
						$dosya3="../deppo/video/".$rsi["t7"].".jpg"; unlink($dosya3);
						$dosya4="../deppo/dosya/".$rsi["t1"].""; unlink($dosya4);
						$sql = mysqli_query($conn, "delete from medya where id=".$rsi["id"]."");
					}
				}
			}else{
				for ($l = 1; $l <= $lx; $l++){ $Rs = mysqli_query($conn, "update ".$_SESSION["lang"]." set s13='2' where id='".$SID."'"); }
			}
		}
	}
}
?>