<?php
$path="../../";
include("../../map.php");
include("../../scripts.php");
if ($_GET["ne"] == "kayit"){
	$q="u";
	$climit=$a4;
}elseif ($_GET["ne"] == "sayfa"){	
	$q="s";
	$climit=$d10;
}elseif ($_GET["ne"] == "haber"){
	$q="h";
	$climit=$b1;
}elseif ($_GET["ne"] == "msayfa"){
	$q="m";
	$climit=$g7;
}elseif ($_GET["ne"] == "marka"){
	$q="n";
	$climit="5";
}elseif ($_GET["ne"] == "uye"){
	$q="k";
	$climit="3";
}elseif ($_GET["ne"] == "reklam"){
	$q="r";
	$climit="3";
}elseif ($_GET["ne"] == "forum"){
	$q="f";
}else{
	$q=substr($_GET["ne"],0,1);
	$climit = $module["d10_".$_GET["ne"].""];
}
if ($_GET["Cat_ID"]<>""){
	$sql=mysqli_query($conn, "select * from kategoriler where Cat_ID=".$_GET["Cat_ID"].""); $rsc=mysqli_fetch_assoc($sql);
	$kategori=$rsc["Cat_".$_SESSION["lang"].""];
	$Cat_ID=$rsc["Cat_ID"];
	if($rsc["ne"]=="".$q."kategori"){
		$ne="".$q."alt_kategori"; $c1=$rsc["Cat_ID"]; $c2=$rsc["c2"]; $s3=$rsc["s3"]; $s4=$rsc["s4"]; $s5=$rsc["s5"];
	}elseif($rsc["ne"]=="".$q."alt_kategori"){
		$ne="".$q."alt_kategori2"; $c1=$rsc["c1"]; $c2=$rsc["Cat_ID"]; $s3=$rsc["s3"]; $s4=$rsc["s4"]; $s5=$rsc["s5"];
	}elseif($rsc["ne"]=="".$q."alt_kategori2"){
		$ne="".$q."alt_kategori3"; $c1=$rsc["c1"]; $c2=$rsc["c2"]; $s3=$rsc["Cat_ID"]; $s4=$rsc["s4"]; $s5=$rsc["s5"];
	}elseif($rsc["ne"]=="".$q."alt_kategori3"){
		$ne="".$q."alt_kategori4"; $c1=$rsc["c1"]; $c2=$rsc["c2"]; $s3=$rsc["s3"]; $s4=$rsc["Cat_ID"]; $s5=$rsc["s5"];
	}elseif($rsc["ne"]=="".$q."alt_kategori4"){
		$ne="".$q."alt_kategori5"; $c1=$rsc["c1"]; $c2=$rsc["c2"]; $s3=$rsc["s3"]; $s4=$rsc["s4"]; $s5=$rsc["Cat_ID"];
	}
}else{
	$ne="".$q."kategori";
	$kategori="Ana Kategori";
	$Cat_ID=""; $c1="0"; $c2="0"; $s3="0"; $s4="0"; $s5="0";
}
?>
<html style="background-color:white">
<style type="text/css">
	.col-md-12		{margin-bottom:5px; min-height: 34px !important;}	
	.form-control	{font-weight:100;}
</style>
<div class="panel panel-default">
	<div class="panel-heading">
		<div style="display: flow-root;">
			<div style="float:left;">
				<?php echo $sdil[12]; //Kategoriler?> [<?php echo $kategori;?> > <?php echo $sdil[200]; //Yeni?> <?php echo $sdil[73]; //Kategori?>]
			</div>
			<div style="float:right;">
				<a class="btn btn-default" href="?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>"><strong title="<?php echo $sdil[203]; //Güncelle?>"> <i class="fa fa-home"></i></a>
				</div>
			</div>
		</div>
		<?php if ($_GET["status"]=="ok"){?>
			<div class="col-md-12 alert alert-success" style="padding: 5px 27px;">
				<?php echo $sdil[212]; //Islem Basariyla Gerçeklestirilmistir !?>
			</div>
		<?php }?>
		<div class="panel-body">
			<form action="?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&nedir=<?php echo $_GET["nedir"];?>&cmd=add" method="post">
				<ul class="nav nav-tabs" role="tablist">
					<li role="presentation" class="active"><a href="#tb1" aria-controls="tb1" role="tab" data-toggle="tab"><?php echo $sdil[200]; //Yeni?> <?php echo $sdil[73]; //Kategori?></a></li>
					<li role="presentation" class=""><a href="#tb2" aria-controls="tb2" role="tab" data-toggle="tab">Detay</a></li>
					<li role="presentation" class=""><a href="#tb3" aria-controls="tb3" role="tab" data-toggle="tab">Extra</a></li>
					<select size=1 name="s9" style="width: 200px; float: right; margin-top: 5px; background: whitesmoke;" class="form-control e">
						<option value="0">Admin</option>
						<?php $sqlm=mysqli_query($conn, "select * from t5 where s9=1 $luye"); while($rsm=mysqli_fetch_assoc($sqlm)){?>
						<option value="<?php echo $rsm["id"];?>" title="<?php echo $rsm["t1"];?>" alt="<?php echo $rsm["t1"];?>" style="color:#6699FF" <?php if (($rs["s9"]=="" and $rsm["id"]==$_SESSION["user_id"]) or ($rs["s9"]<>"" and $rsm["id"]==$rs["s9"])) {?>Selected<?php }?>><?php echo $rsm["t1"];?></option>
						<?php }?>
					</select>
				</ul>
				<div class="tab-content">
					<div role="tabpanel" class="tab-pane active" id="tb1">
						<div class="row">
							<div class="col-md-12">
								<select id="scat" class="form-control" style="height:34px;">
									<option ne="<?php echo $q."kategori";?>" Cat="Ana grup" Cat_ID="" c1="0" c2="0" s3="0" s4="0" s5="0"><?php echo translate("Ana kategori seçiniz")?></option>
									<?php $sql=mysqli_query($conn, "select * from kategoriler where ne='".$q."kategori' order by sira asc"); while($rsc=mysqli_fetch_assoc($sql)){?>
										<option class="c0" ne="<?php echo $q."alt_kategori";?>" Cat="<?php echo $rsc["Cat_".$_SESSION["lang"].""]?> > Yeni alt grup" Cat_ID="<?php echo $rsc["Cat_ID"];?>" c1="<?php echo $rsc["Cat_ID"];?>" c2="<?php echo $rsc["c2"];?>" s3="<?php echo $rsc["s3"];?>" s4="<?php echo $rsc["s4"];?>" s5="0" <?php if($_GET["Cat_ID"]==$rsc["Cat_ID"]){echo "Selected";}?>>[x] <?php echo $rsc["Cat_".$_SESSION["lang"].""]?></option>	
										<?php $sql1=mysqli_query($conn, "select * from kategoriler where ne='".$q."alt_kategori' and c1=".$rsc["Cat_ID"]." order by sira asc");?>
										<?php if(mysqli_num_rows($sql1)>0){?>
											<?php while($rsc1=mysqli_fetch_assoc($sql1)){?>
												<?php if(($rsc1["ne"]=="".$q."kategori" and $climit>1) or ($rsc1["ne"]=="".$q."alt_kategori" and $climit>2) or ($rsc1["ne"]=="".$q."alt_kategori2" and $climit>3) or ($rsc1["ne"]=="".$q."alt_kategori3" and $climit>4) or ($rsc1["ne"]=="".$q."alt_kategori4" and $a5=="5")){?>
													<option class="c1" ne="<?php echo $q."alt_kategori2";?>" Cat="<?php echo $rsc["Cat_".$_SESSION["lang"].""]?> > <?php echo $rsc1["Cat_".$_SESSION["lang"].""]?> > Yeni alt grup" Cat_ID="<?php echo $rsc1["Cat_ID"];?>" c1="<?php echo $rsc1["c1"];?>" c2="<?php echo $rsc1["Cat_ID"];?>" s3="<?php echo $rsc1["s3"];?>" s4="<?php echo $rsc1["s4"];?>" s5="0" <?php if($_GET["Cat_ID"]==$rsc1["Cat_ID"]){echo "Selected";}?>>[y] <?php echo $rsc1["Cat_".$_SESSION["lang"].""]?></option>	
											<?php }else{?>
													<option class="c1" ne="last" value="#">[y] <?php echo $rsc1["Cat_".$_SESSION["lang"].""]?></option>
												<?php }?>
												<?php $sql2=mysqli_query($conn, "select * from kategoriler where ne='".$q."alt_kategori2' and c2=".$rsc1["Cat_ID"]." order by sira asc");?>
												<?php if(mysqli_num_rows($sql2)>0){?>
													<?php while($rsc2=mysqli_fetch_assoc($sql2)){?>
														<?php if(($rsc2["ne"]=="".$q."kategori" and $climit>1) or ($rsc2["ne"]=="".$q."alt_kategori" and $climit>2) or ($rsc2["ne"]=="".$q."alt_kategori2" and $climit>3) or ($rsc2["ne"]=="".$q."alt_kategori3" and $climit>4) or ($rsc2["ne"]=="".$q."alt_kategori4" and $a5=="5")){?>
															<option class="c2" ne="<?php echo $q."alt_kategori3";?>" Cat="<?php echo $rsc["Cat_".$_SESSION["lang"].""]?> > <?php echo $rsc1["Cat_".$_SESSION["lang"].""]?> > <?php echo $rsc2["Cat_".$_SESSION["lang"].""]?> > Yeni alt grup" Cat_ID="<?php echo $rsc2["Cat_ID"];?>" c1="<?php echo $rsc2["c1"];?>" c2="<?php echo $rsc2["c2"];?>" s3="<?php echo $rsc2["Cat_ID"];?>" s4="<?php echo $rsc2["s4"];?>" s5="0" <?php if($_GET["Cat_ID"]==$rsc2["Cat_ID"]){echo "Selected";}?>>[z] <?php echo $rsc2["Cat_".$_SESSION["lang"].""]?></option>
														<?php }else{?>
															<option class="c2" ne="last" value="#">[z] <?php echo $rsc2["Cat_".$_SESSION["lang"].""]?></option>
														<?php }?>
														<?php $sql3=mysqli_query($conn, "select * from kategoriler where ne='".$q."alt_kategori3' and s3=".$rsc2["Cat_ID"]." order by sira asc");?>                                                        
														<?php if(mysqli_num_rows($sql3)>0){?>
															<?php while($rsc3=mysqli_fetch_assoc($sql3)){?>
																<?php if(($rsc3["ne"]=="".$q."kategori" and $climit>1) or ($rsc3["ne"]=="".$q."alt_kategori" and $climit>2) or ($rsc3["ne"]=="".$q."alt_kategori2" and $climit>3) or ($rsc3["ne"]=="".$q."alt_kategori3" and $climit>4) or ($rsc3["ne"]=="".$q."alt_kategori4" and $a5=="5")){?>
																	<option class="c3" ne="<?php echo $q."alt_kategori4";?>" Cat="<?php echo $rsc["Cat_".$_SESSION["lang"].""]?> > <?php echo $rsc1["Cat_".$_SESSION["lang"].""]?> > <?php echo $rsc2["Cat_".$_SESSION["lang"].""]?> > <?php echo $rsc3["Cat_".$_SESSION["lang"].""]?> > Yeni alt grup" Cat_ID="<?php echo $rsc3["Cat_ID"];?>" c1="<?php echo $rsc3["c1"];?>" c2="<?php echo $rsc3["c2"];?>" s3="<?php echo $rsc3["s3"];?>" s4="<?php echo $rsc3["Cat_ID"];?>" s5="0" <?php if($_GET["Cat_ID"]==$rsc3["Cat_ID"]){echo "Selected";}?>>[w] <?php echo $rsc3["Cat_".$_SESSION["lang"].""]?></option>
																<?php }else{?>
																	<option class="c3" ne="last" value="#">[w] <?php echo $rsc3["Cat_".$_SESSION["lang"].""]?></option>
																<?php }?>
																<?php $sql4=mysqli_query($conn, "select * from kategoriler where ne='".$q."alt_kategori4' and s4=".$rsc3["Cat_ID"]." order by sira asc");?>
																<?php if(mysqli_num_rows($sql4)>0){?>
																	<?php while($rsc4=mysqli_fetch_assoc($sql4)){?>
																		<?php if(($rsc4["ne"]=="".$q."kategori" and $climit>1) or ($rsc4["ne"]=="".$q."alt_kategori" and $climit>2) or ($rsc4["ne"]=="".$q."alt_kategori2" and $climit>3) or ($rsc4["ne"]=="".$q."alt_kategori3" and $climit>4) or ($rsc4["ne"]=="".$q."alt_kategori4" and $a5=="5")){?>
																			<option class="c4" ne="<?php echo $q."alt_kategori5";?>" Cat="<?php echo $rsc["Cat_".$_SESSION["lang"].""]?> > <?php echo $rsc1["Cat_".$_SESSION["lang"].""]?> > <?php echo $rsc2["Cat_".$_SESSION["lang"].""]?> > <?php echo $rsc3["Cat_".$_SESSION["lang"].""]?> > <?php echo $rsc4["Cat_".$_SESSION["lang"].""]?> > Yeni alt grup" Cat_ID="<?php echo $rsc4["Cat_ID"];?>" c1="<?php echo $rsc4["c1"];?>" c2="<?php echo $rsc4["c2"];?>" s3="<?php echo $rsc4["s3"];?>" s4="<?php echo $rsc4["s4"];?>" s5="<?php echo $rsc4["Cat_ID"];?>" <?php if($_GET["Cat_ID"]==$rsc4["Cat_ID"]){echo "Selected";}?>>[j] <?php echo $rsc4["Cat_".$_SESSION["lang"].""]?></option>
																		<?php }else{?>
																			<option class="c4" ne="last" value="#">[j] <?php echo $rsc4["Cat_".$_SESSION["lang"].""]?></option>
																		<?php }?>                                             
																		<?php $sql5=mysqli_query($conn, "select * from kategoriler where ne='".$q."alt_kategori5' and s5=".$rsc4["Cat_ID"]." order by sira asc");?>
																		<?php if(mysqli_num_rows($sql5)>0){?>
																			<?php while($rsc5=mysqli_fetch_assoc($sql5)){?>
																				<option class="c5" ne="last" value="#"><?php echo $rsc5["Cat_".$_SESSION["lang"].""]?></option>
																			<?php }?>
																		<?php }?>                                                   
																	<?php }?>
																<?php }?>                                                     
															<?php }?>
														<?php }?>                                                   
													<?php }?>
												<?php }?>
											<?php }?>
										<?php }?>
									<?php }?>
								</select>
							</div>
								<input type="hidden" name="Cat_ID" id="Cat_ID" value="<?php echo $Cat_ID?>" />
								<input type="hidden" name="c1" id="c1" value="<?php echo $c1?>" />
								<input type="hidden" name="c2" id="c2" value="<?php echo $c2?>" />
								<input type="hidden" name="s3" id="s3" value="<?php echo $s3?>" />
								<input type="hidden" name="s4" id="s4" value="<?php echo $s4?>" />
								<input type="hidden" name="s5" id="s5" value="<?php echo $s5?>" />
								<input type="hidden" name="ne" id="ne" value="<?php echo $ne;?>" />
							
							<div class="row">
								<div class="col-md-12">
									<div class="col-xs-8">
										<input type="text" class="form-control b1o" placeholder="<?php echo $sdil[200]; //Yeni?> <?php echo $sdil[73]; //Kategori?>" value="" name="cat" style="">
									</div>
									<div class="col-xs-2">
										<input type="text" class="form-control" placeholder="ID" value="" name="t4" style="">
									</div>
									<div class="col-xs-2">
										<input type="text" class="form-control" placeholder="<?php echo $sdil[74]; //Sıra?>" value="0" name="sira" style="">
									</div>
								</div>
							</div>
						</div>			
					</div>
					<div role="tabpanel" class="tab-pane" id="tb2">
						<div class="row">
							<div class="col-xs-12" style="margin-top:10px;">
								<input type="text" style="" name="n1" class="form-control" title="n1_langx" value="" placeholder="<?php echo $sdil[39]; //Title?>" />
							</div>
							<div class="col-xs-12" style="margin-top:10px;">
								<textarea style="height:60px;" class="form-control" name="n2" title="n2_langx" placeholder="<?php echo $sdil[207]; //Açıklama?>"></textarea>
							</div>
							<div class="col-xs-12" style="margin-top:10px;">
								<input id="input-tags" data_role="tagsinput" style="height:60px;" class="form-control" name="n4" title="n4_langx" placeholder="<?php echo $sdil[41]; //Etiket?>" value="">
							</div>
							<div class="col-xs-12" style="margin-top:10px;">
								<input type="text" style="" name="n3" class="form-control" title="n3" value="" placeholder="Extra / Renk" />
							</div>
							<div class="col-xs-8" style="margin-top:10px;">
								<input type="text" name="n5" style="" class="form-control" value="" placeholder="http://www.">
							</div>
							<div class="col-xs-4">
								<select size="1" name="t6" style="margin-top:10px;" class="form-control">
									<option value=""> Target</option>
									<option value="_self" >_self</option>
									<option value="_blank" >_blank</option>
									<option value="_top" >_top</option>
								</select>
							</div>
						</div>
						<script>
							jQuery('#scat').change(function(){
								var Cat = jQuery('option:selected', this).attr('Cat');
								var Cat_ID = jQuery('option:selected', this).attr('Cat_ID');
								var ne = jQuery('option:selected', this).attr('ne');
								var c1 = jQuery('option:selected', this).attr('c1');
								var c2 = jQuery('option:selected', this).attr('c2');
								var s3 = jQuery('option:selected', this).attr('s3');
								var s4 = jQuery('option:selected', this).attr('s4');
								var s5 = jQuery('option:selected', this).attr('s5');
								jQuery('.b1o').attr("placeholder",Cat);
								if(ne!=="last"){
									jQuery('#Cat_ID').val(Cat_ID);
									jQuery('#ne').val(ne);
									jQuery('#c1').val(c1);
									jQuery('#c2').val(c2);
									jQuery('#s3').val(s3);
									jQuery('#s4').val(s4);
									jQuery('#s5').val(s5);
									jQuery('.fsb').removeAttr('disabled');
								} else {
									jQuery('.fsb').attr('disabled','disabled');
									alert('Seçilen grubun altına, grup açılamaz!');
								}
							});
						</script>
					</div>
					<div role="tabpanel" class="tab-pane" id="tb3">
						<div class="row">
<div class="col-xs-12" style="margin-top:10px;">
								<?php
								$i=0;$sqli=mysqli_query($conn, "select * from genel where ne='inputs' and (t2='All' or t2='".$_SESSION["lang"]."') and n3='kategori' and n4<>'switch' and (n2='0' or n2='".$rs["Cat_ID"]."') and s1=0 order by s10 asc");
								if(mysqli_num_rows($sqli)>0){
									?>
									<div class="">
										<div class="row">
											<?php while($rsi=mysqli_fetch_assoc($sqli)){$i++;?>
												<div class="col-xs-4 col-md-4" style="">
													<label><i class="<?php echo $rsi["n14"]?>"></i> <?php echo $rsi["n1"];?> <span style="font-size:8px; color:#ccc;"> (i<?php echo $i;?>)</span></label>
													<?php if($rsi["n4"]=="input"){?>
														<input class="form-control <?php echo $rsi["n13"]?>" type="<?php echo $rsi["n5"]?>" name="i<?php echo $i;?>" value="<?php echo $jsi["i".$i.""];?>" placeholder="<?php echo $rsi["n11"]?>" style="" <?php echo $rsi["n8"]?> <?php echo $rsi["n6"]?>>
													<?php }elseif($rsi["n4"]=="textarea"){?>
														<textarea class="form-control <?php echo $rsi["n13"]?>" name="i<?php echo $i;?>" placeholder="<?php echo $rsi["n11"]?>" <?php echo $rsi["n8"]?> <?php echo $rsi["n6"]?>><?php echo $jsi["i".$i.""];?></textarea>
													<?php }elseif($rsi["n4"]=="select"){?>
														<select class="form-control <?php echo $rsi["n13"]?> chosen-select" name="i<?php echo $i;?>[]" style="" <?php echo $rsi["n8"]?> <?php echo $rsi["n6"]?>>
															<option value=""><?php echo $sdil[221]; //Lütfen Seçiniz?></option>
															<?php $o=0;$sqlo=mysqli_query($conn, "select * from genel where ne='inputs' and s1=".$rsi["id"]." order by s10 asc"); while($rso=mysqli_fetch_assoc($sqlo)){$o++;?>
																<option value="<?php echo $rso["n2"]?>" <?php $q="";foreach($jsi["i".$i.""] as $q){?><?php if($q==$rso["n2"] or $rso["n3"]==1){echo "selected";}}?>><?php echo $rso["n1"]?></option>
															<?php }?>
														</select>
													<?php }elseif($rsi["n4"]=="radio"){?>
														<?php $o=0;$sqlo=mysqli_query($conn, "select * from genel where ne='inputs' and t2='".$_SESSION["lang"]."' and s1=".$rsi["id"]." order by s10 asc"); while($rso=mysqli_fetch_assoc($sqlo)){$o++;?>
															<div style="float:left; margin-right: 5px;">
																<label style="float:left; margin-right:5px;"><?php echo $rso["n1"];?>
																<input type="radio" name="i<?php echo $i;?>" value="<?php echo $rso["n2"];?>" <?php echo $rsi["n8"]?> <?php if($jsi["i".$i.""]==$rso["n2"] or $rso["n3"]==1){echo "checked";}?>></label>
															</div>
														<?php }?>
													<?php }elseif($rsi["n4"]=="checkbox"){?>
														<?php $o=0;$sqlo=mysqli_query($conn, "select * from genel where ne='inputs' and t2='".$_SESSION["lang"]."' and s1=".$rsi["id"]." order by s10 asc"); while($rso=mysqli_fetch_assoc($sqlo)){$o++;?>
															<div style="float:left; margin-right: 5px;">
																<label style="float:left; margin-right:5px;"><?php echo $rso["n1"];?>
																<input type="checkbox" name="i<?php echo $i;?>[]" value="<?php echo $rso["n2"];?>" <?php echo $rsi["n8"]?> <?php foreach($jsi["i".$i.""] as $q){?><?php if($q==$rso["n2"] or $rso["n3"]==1){echo "checked";}?><?php }?>></label>
															</div>
														<?php }?>
													<?php }?>
													<p style="font-size:10px;"><?php echo $rsi["n9"];?></p>
												</div>
											<?php }?>
										</div>
									</div>
								<?php }?>
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-12">
					<button type="submit" style="float:right;" class="btn btn-warning fsb"><?php echo $sdil[200]; //Yeni?> <?php echo $sdil[201]; //Ekle?></button>
				</div>
			</form>
		</div>
	</div>
	<?php
	if ($_GET["cmd"]=="add"){
		$iarr = array(); $marr = array();
		foreach ($_POST as $key => $value){ if(substr($key,0,1)=="i"){ $iarr = $iarr + array( $key => $value); }}
		foreach ($_POST as $key => $value){ if(substr($key,0,1)=="m"){ $marr = $marr + array( $key => $value); }}
		$rjsi = json_encode($iarr, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_NUMERIC_CHECK);
		$rjsm = json_encode($marr, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_NUMERIC_CHECK);
		if($_POST["s3"]>0){$s3=$_POST["s3"];}else{$s3=0;}
		if($_POST["s4"]>0){$s4=$_POST["s4"];}else{$s4=0;}
		if($_POST["s5"]>0){$s5=$_POST["s5"];}else{$s5=0;}
		if($_POST["s9"]>0){$s9=$_POST["s9"];}else{$s9=$_SESSION["user_id"];}
		//echo "'".$_POST["nedir"]."', '".$_GET["ne"]."', '".$_POST["t4"]."', '".addslashes(stripslashes($_POST["cat"]))."', '".$_POST["sira"]."', '".$_POST["c1"]."', '".$_POST["c2"]."', '".$s3."', '".$s4."', '".$s5."', '0', '".$s9."', '".$_POST["n2"]."', '".$_POST["n4"]."','".$_POST["n5"]."','".addslashes(stripslashes($rjsi))."', '".addslashes(stripslashes($rjsm))."'"; exit();
		$sql = $conn->query("insert into kategoriler (ne,t1,t4,Cat_".$_SESSION["lang"].",sira,c1,c2,s3,s4,s5,s6,s9,n2,n4,n5,n6,n7) VALUES ('".$_POST["ne"]."', '".$_GET["ne"]."', '".$_POST["t4"]."', '".addslashes(stripslashes($_POST["cat"]))."', '".$_POST["sira"]."', '".$_POST["c1"]."', '".$_POST["c2"]."', '".$s3."', '".$s4."', '".$s5."', '0', '".$s9."', '".$_POST["n2"]."', '".$_POST["n4"]."', '".$_POST["n5"]."', '".addslashes(stripslashes($rjsi))."', '".addslashes(stripslashes($rjsm))."')");
		
		$sqlc=mysqli_query($conn, "select * from kategoriler order by Cat_ID desc"); $rsc=mysqli_fetch_assoc($sqlc);
		for ($l = 1; $l <= $lx; $l++){
			$Rss = mysqli_query($conn, "update kategoriler set Cat_lang".$l."='".$rsc["Cat_".$_SESSION["lang"].""]."' where Cat_ID=".$rsc["Cat_ID"]."");
		}
		echo location("?ne=".$_GET["ne"]."&islem=".$_GET["islem"]."&Cat_ID=".$_POST["Cat_ID"]."&status=ok",self,500,1);
	}
	?>
<?php echo $footer;?>