<?php
	header('Content-Type: text/html; charset=utf-8');
	error_reporting(0);
	$path="../../";
	include("../../map.php");
	include("../../scripts.php");
	include("../../secure.php");
	$sql=mysqli_query($conn, "select * from ".$_SESSION['lang']." where id=".$_GET["id"].""); $rs=mysqli_fetch_assoc($sql);
	if(mysqli_num_rows($sql)==0){
		$sqlk=mysqli_query($conn, "select * from lang1 where id=".$_GET["id"].""); $rsk=mysqli_fetch_assoc($sqlk);
		$sqli = $conn->query("insert into ".$_SESSION['lang']." (id, ne, t1, n1, s1, s9, s10, s11, s5, s7, s8, s13, s19, ts1) values ('".$rsk["id"]."', '".$rsk["ne"]."', '".addslashes(stripslashes($rsk["t1"]))."', '".addslashes(stripslashes($rsk["n1"]))."', '".$rsk["s1"]."', '".$rsk["s9"]."', '".$rsk["s10"]."', '".$rsk["s11"]."', '".$rsk["s5"]."', '".$rsk["s7"]."', '".$rsk["s8"]."', '".$rsk["s13"]."', '".$_SESSION["user_id"]."', now())");
		//echo location("?ne=".$_GET["ne"]."&islem=".$_GET["islem"]."&key=".$_GET["key"]."&sayfa=".$_GET["sayfa"]."&id=".$_GET["id"]."&durum=ok",self,0,1);
	}
	$jsl = json_decode($rs["n16"], true); $jsi = json_decode($rs["n17"], true); $jsm = json_decode($rs["m1"], true);
	$ucats = json_decode(GetArr("u","categories"), true);
	include("../upload/upload_image_drag.php");
	if ($authority==0){ $dauth=0; }else{ $dauth=1; }
?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title><?php echo $rs["t1"];?></title>
	</head>
	<body>
		<div class="qmodal">
			<div class="qmodal-content">
				<!-- Header with Action Buttons -->
				<div class="qmodal-header">
			<div class="header-title">
				<nav aria-label="breadcrumb">
					<ol class="breadcrumb">
						<li class="breadcrumb-item"><a href="?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"]; ?>"><i class="fa fa-home"></i></a></li>
						<li class="breadcrumb-item"><a href="#"><?php echo $t24;?></a></li>
						<li class="breadcrumb-item wide">
							<select class="ajax-select link" ><option><?php echo $rs["t1"];?></option></select>
						</li>
					</ol>
				</nav>
			</div>
					<button type="button" onclick="AjaxKaydet('','');"><i class="fas fa-save"></i><span class="mdn"> Kaydet</span></button>
						<?php if($f1=="1"){?>
							<button type="button" class="btn btn-default" onclick="window.open('http://www.facebook.com/sharer/sharer.php?u=<?php echo $weburl;?>/<?php echo linked("d",$rs["id"]);?>','noLov22us','status=1,width=550,height=350,resizable=no,scrollbars=no')" class="with-tip" title="Facebook Paylaş"><i class="fa fa-facebook" aria-hidden="true"></i></button>
							<button type="button" class="btn btn-default" onclick="window.open('https://twitter.com/intent/tweet?url=<?php echo $weburl;?>/<?php echo linked("d",$rs["id"]);?>','noLov22us','status=1,width=550,height=350,resizable=no,scrollbars=no')" class="with-tip" title="Twitter Paylaş"><i class="fa fa-twitter" aria-hidden="true"></i></button>
						<?php }?>
						<?php if($a1=="1"){?>
							<!--<a class="btn btn-success mfrm"  data-toggle="modal" data-target="#myModal" onclick="location.href='#tab-resim'" data-url="../upload/upload_crop.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"]; ?>"><strong><i class="fa fa-crop" aria-hidden="true"></i></strong></a>-->
							<button type="button" class="btn btn-success mfrm"  data-toggle="modal" data-width="50%" data-target="#myModal" onclick="location.href='#&tab-multimedia';" data-ajax="mresim" data-title="Multimedia" data-url="<?php echo $weburl."/".$crmpath."/"?>modules/upload/upload_image.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"]; ?>"><strong><i class="fa fa-image" aria-hidden="true"></i> <span class="mdn"><?php echo $sdil[75]; //Resim Ekle?></span></strong></button>
						<?php }?>
						<?php if($a2==1 or $a2==3){?>
							<button type="button" class="btn btn-danger mfrm"  data-toggle="modal" data-width="50%" data-target="#myModal" onclick="location.href='#&tab-multimedia&tab-videos'" data-ajax="mvideo" data-title="Multimedia" data-url="<?php echo $weburl."/".$crmpath."/"?>modules/video/video_add.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"]; ?>"><strong><i class="fa fa-play" aria-hidden="true"></i> <span class="mdn"><?php echo $sdil[76]; //Video Ekle?></span></strong></button>
						<?php }?>
						<?php if($a3=="1"){?>
							<button type="button" class="btn btn-warning mfrm"  data-toggle="modal" data-width="50%" data-target="#myModal" onclick="location.href='#&tab-multimedia&tab-files'" data-ajax="mdosya" data-title="Multimedia" data-url="<?php echo $weburl."/".$crmpath."/"?>modules/upload/upload_file.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"]; ?>"><strong><i class="fa fa-file-archive-o" aria-hidden="true"></i> <span class="mdn"><?php echo $sdil[77]; //Dosya Ekle?></span></strong></button>
						<?php }?>
						<?php if(($_SESSION["kim"]=="Admin" or ($_SESSION["kim"]=="yonetici" and $_SESSION["y2_sp"]==1))){?>
							<div class="btn-group flex-wrap" style="margin-left:10px;">
								<button data-toggle="dropdown" class="btn btn-warning" type="button" aria-expanded="false">
									<i class="fas fa-store"></i>
								</button>
								<div class="dropdown-menu dropdown-menu-right" x-placement="top-end" style="">
									<?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="dropdown-item btn btn-<?php if($jsi['is'.$rsp["n4"].'']==0){echo 'warning';}else{echo 'success';}?> mfrm full cp" 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 $rsp["n4"];?>"><img style="height:16px;" src="https://cdn.crmplus.com.tr/images/<?php echo $rsp["n4"];?>.ico"> <?php echo ihb($rsp["n4"]);?></a>
									<?php }?>
								</div>
							</div>
						<?php }?>
						<?php if(($_SESSION["kim"]=="Admin") or ($_SESSION["kim"]=="yonetici" and $_SESSION["y0"]>=2)){?>
							<button class="btn btn-warning mfrm" onclick="parent.reviewModal('modules/public/add.php?ne=kayit&islem=kayitlar&durum=ykayit', '50%');" style="margin-left:10px;"><i class="fa fa-plus" aria-hidden="true"></i></button>
						<?php }?>
						<!--<button type="button" class="btn btn-danger btn-delete-row" data-href="<?php echo $weburl."/".$crmpath?>?ne=kayit&islem=kayitlar&id=<?php echo $_GET["id"]?>&durum=skayit" onclick="setTimeout(function() { parent.postMessage({ action: 'closeModalAndHideRow', rowId: <?php echo (int)$_GET['id']; ?> }, '*'); }, 3000);"><strong><i class="fa fa-times" aria-hidden="true"></i></strong></button>-->
					<div class="btn-group flex-wrap">
						<button data-toggle="dropdown"  style="margin-left:10px;" class="btn btn-warning" type="button" aria-expanded="false">
							<i class="fa fa-ellipsis-v"></i>
						</button>
						<div class="dropdown-menu dropdown-menu-right" x-placement="top-end" style="">
							<a class="dropdown-item btn btn-warning" href="<?php echo $weburl."/".linked("d",$rs["id"]);?>" target="_blank" title=""><i class="fa fa-eye" aria-hidden="true"></i> <span class=""> <?php echo translate("+Önizle")?></span></a>
							<a class="dropdown-item btn btn-warning" onclick="FullScreen();" title=""><i class="fa fa-expand" aria-hidden="true"></i> <span class=""> <?php echo translate("+FullScreen")?></span></a>
						<?php if($MSA==1){?>
							<a class="dropdown-item btn btn-warning" href="?ne=ayarlar&islem=ayarlar&tab=master&module=hproduct" target="_blank" class="with-tip"><i class="fa fa-cog" aria-hidden="true"></i> <span class=""> <?php echo translate("+Ayarlar")?></span></a>
							<a class="dropdown-item btn btn-warning mfrm"  data-toggle="modal" data-width="50%" data-target="#myModal" data-url="<?php echo $weburl."/".$crmpath."/"?>fonksiyon.php?islem=google_translate&id=<?php echo $_GET["id"]; ?>"  data-title="<?php echo translate("+Auto Translate")?>"><i class="fas fa-language"></i> <span class=""> <?php echo translate("+Auto Translate")?></span></a>
							<a class="dropdown-item btn btn-warning mfrm"  data-toggle="modal" data-width="70%" data-target="#myModal" data-url="../public/ai.php?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $_GET['islem'];?>&id=<?php echo $_GET["id"];?>"  data-title="<?php echo translate("+AI Cms")?>"><i class="fas fa-robot"></i> <span class=""> <?php echo translate("+AI Cms")?></span></a>
						<?php }?>
						<?php if($e6==1 or $e6==5){?>
							<a class="dropdown-item btn btn-warning mfrm"  data-toggle="modal" data-width="50%" data-target="#myModal" data-url="../../fonksiyon.php?islem=clonerow&table=<?php echo $_SESSION['lang'];?>&id=<?php echo $_GET["id"];?>" data-title="<?php echo translate("+Klonla")?>"><i class="fa fa-files-o" aria-hidden="true"></i> <span class=""> <?php echo translate("+Klonla")?></span></a>
						<?php }?>
<?php if ($dauth>0){?>
							<a class="dropdown-item btn btn-danger btn-delete-modal" data-url="<?php echo $weburl?>/<?php echo $crmpath;?>?ne=<?php echo $_GET["ne"];?>&islem=kayitlar&id=<?php echo $_GET["id"]; ?>&durum=suye">
							   <i class="fa fa-trash"></i> <?php echo $sdil[204]; //Kaldir?>
							</a>
<?php }?>
						</div>
					</div>
				</div>
							<form class="form" action="?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"];?>&durum=kaydet" id="asave" name="aform" method="post">
							<!-- Left Tab Menu -->
							<div class="v8-columns">
								<div class="v8-col200pxL-left">
	                                <ul class="v8-side-tabs v8-js-tabs v8-same-height">
	                                    <li><a href="#tab-kayit"><i class="fa fa-file"></i><span> <?php echo $sdil[207]; //Detay?></span></a></li>
	                                    <?php if($e4<>0 or $e9<>0){?>
	                                    <li><a href="#tab-aciklama" <?php if(($MSA==1 or $s9==1 or $jsl["koordinat"]<>"" or $jsl["adres"]<>"") and $mapi<>""){echo "onclick='".$mapi."Map();'";}?>><i class="fa fa-file"></i> <span> <?php echo $sdil[207]; //Detay?> / <?php echo $sdil[208]; //Seo?></span></a></li>
	                                    <?php }?>
	                                    <?php if($a1<>0 or $a2<>0 or $a3<>0){?>
	                                    <li><a href="#tab-multimedia"><i class="fa fa-file-image-o" aria-hidden="true"></i> <span> Multimedia</span></a></li>
	                                    <?php }?>
	                                    <?php if($module["g1_kayit"]=="1"){?>
	                                    <li><a href="#tab-isayfa"><i class="fa fa-subscript"></i> <span><?php echo $module["a11_title"];?></span></a></li>
	                                    <?php }?>
	                                    <?php if($a6<>0){?>
	                                    <li> <a href="#tab-extra"> <i class="fa fa-list-ul"></i> <span> <?php echo $module["madde_kayit"]?></a> </li>
	                                    <?php }?>
	                                    <?php if($a7<>0){?>
	                                    <li><a href="#" class="mfrm cp" data-width="80%" data-toggle="modal" data-target="#myModal" data-title="<?php echo $vyonlar?>" data-url="../products/variations.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"]; ?>" data-ref="../products/product.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"]; ?>"><i class="fa fa-subscript" aria-hidden="true"></i> <span> <?php echo $vyonlar?></span></a></li>
	                                    <!--<li><a href="#tab-rb"><i class="fa fa-subscript"></i><span> <?php echo $vyonlar?></span></a> </li>-->
	                                    <?php }?>
	                                    <?php if($module["recipe"]>0){?>
	                                    <li><a href="#" class="mfrm cp" data-width="80%" data-toggle="modal" data-target="#myModal" data-title="<?php echo $module["recipe_title"]?>" data-url="../products/recipe.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"]; ?>" data-ref="../products/product.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"]; ?>"><i class="fa fa-vial" aria-hidden="true"></i> <span> <?php echo $module["recipe_title"]?></span></a></li>
	                                    <?php }?>
	                                    <?php if($module["rproduct"]<>0 and ($_SESSION["kim"]=="Admin" or ($_SESSION["kim"]=="yonetici" and $_SESSION["y29"]<>0))){?>
	                                    <li><a href="#" class="mfrm cp" data-width="80%" data-toggle="modal" data-target="#myModal" data-title="<?php echo ctranslate("Stok Hareketleri")?>" data-url="../products/report_product.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"]; ?>" data-ref="../products/product.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"]; ?>"><i class="fa fa-line-chart" aria-hidden="true"></i> <span> <?php echo ctranslate("Stok Hareketleri")?></span></a></li>
	                                    <?php }?>
	                                    <?php if($module["g5_kayit"]<>0 and (($_SESSION["kim"]=="Admin") or ($_SESSION["kim"]=="yonetici" and $_SESSION["y1_hizmet"]<>0))){?>
	                                    <li><a href="#tab-hizmet" onclick="loadFunction('../clients/ajax_client_service.php','#ihizmet', '');"><i class="fa fa-bell-o" aria-hidden="true"></i> <span> <?php echo ctranslate("Bildirim")?></span></a></li>
	                                    <?php }?>
	                                    <li class="ddn"><a href="#" onclick="show('switchs');window.scrollTo(0, 0);"><i class="fa fa-chevron-right" aria-hidden="true"></i></a></li>
	                                </ul>
	                                <div id="switchs">
	                                    <div class="v3-alert v3-alert-warning ddn">
	                                        <i class="fas fa-arrow-right" onclick="hide('switchs')"></i>
	                                    </div>
	                                    <?php if($t46<>""){?>
	                                    <fieldset class="grey-bg mdn" style="padding: initial;background-color:#fff !important;">
	                                        <legend>Barkod</legend>
	                                        <?php if($rs["t5"]=="" or $rs["t5"]=="0"){$barcode=i2a($rs["id"],13);}else{$barcode=$rs["t5"];}?>
	                                        <img src="../barcode/line/?f=svg&s=ean-128&d=<?php echo $barcode?>" style="width:100%; margin-top: -15px; margin-bottom: 5px;">
	                                    </fieldset>
	                                    <fieldset class="grey-bg mdn" style="background-color:#fff !important;">
	                                        <legend>QrKod</legend>
	                                        <?php if($rs["t4"]=="" or $rs["t4"]=="0"){$qr=substr(ihb(cevir($t24)),0,1).i2a($rs["id"],7);}else{$qr=$rs["t4"];}?>
	                                        <center><img src="<?php echo qrCode("".$weburl."/qr/".$qr."",175);?>" style="margin-top: -15px; margin-bottom: 0px; width: 100%;"></center>
	                                    </fieldset>
	                                    <?php }?>
	                                    <fieldset class="grey-bg">
	                                        <legend><i class="fa fa-power-off"></i> <?php echo $sdil[220]; //Açık/Kapalı?> <span style="font-size:8px; color:#ccc;">(s13)</span></legend>
	                                        <select size=1 name="ss13" class="form-control">
	                                            <option value="0" <?php if($rs["s13"]==0) {?>Selected<?php }?>>[0] <?php echo ctranslate("#Pasif")?></option>
	                                            <option value="1" <?php if($rs["s13"]==1) {?>Selected<?php }?>>[1] <?php echo ctranslate("#Aktif")?></option>
	                                            <option value="3" <?php if($rs["s13"]==3) {?>Selected<?php }?>>[3] <?php echo ctranslate("#Tedarik Edilemiyor")?></option>
	                                        </select>
	                                    </fieldset>
	                                    <fieldset class="grey-bg <?php if($module["crm"]==1){echo "dn";}?>">
	                                        <legend><i class="fa fa-check-square"></i> <?php echo $sdil[218]; //Vitrin?> <span style="font-size:8px; color:#ccc;">(s1)</span></legend>
	                                        <input type="checkbox" name="ss1" value="1" class="xl" <?php echo ($rs["s1"] == 1) ? 'checked' : ''; ?>>
	                                    </fieldset>
	                                    <fieldset class="grey-bg <?php if($module["crm"]==1){echo "dn";}?>">
	                                        <legend><i class="fa fa-check-square"></i> <?php echo $sdil[200]; //Yeni?> <span style="font-size:8px; color:#ccc;">(s2)</span></legend>
	                                        <input type="checkbox" name="ss2" value="1" class="xl" <?php echo ($rs["s2"] == 1) ? 'checked' : ''; ?>>
	                                    </fieldset>
	                                    <div id="side_inputs"></div>
	                                    <script type="text/JavaScript" language="JavaScript">
	                                        jQuery(document).ready(function () { jQuery('#side_inputs').load('../ajax/ajax_inputs.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&nedir=side&id=<?php echo $_GET["id"];?>'); });
										</script>
	                                    <fieldset class="grey-bg <?php if($module["crm"]==1){echo "dn";}?>">
	                                        <legend><i class="fa fa-sort"></i> <?php echo $sdil[74]; //Sıra?> <span style="font-size:8px; color:#ccc;">(s12)</span></legend>
	                                        <input class="form-control" type="number" name="ss12" value="<?php echo $rs["s12"];?>" placeholder="<?php echo $sira;?>" onfocus="if(this.value == '0') { this.value = '<?php echo $sira;?>'} " onblur="if(this.value == '') { this.value='0'; }">
	                                    </fieldset>
	                                    <fieldset class="grey-bg msa" style="">
	                                        <legend><i class="fa fa-map-marker"></i> <?php echo translate("Modül")?> <span style="font-size:8px; color:#ccc;">(ne)</span></legend>
	                                        <select size="1" name="ne" style="" class="form-control">
	                                            <?php if($module["m13"]==1){?>
	                                            <option value="sayfa" <?php if($rs["ne"]=="sayfa"){echo "selected";}?>><?php echo $t21s[0];?></option>
	                                            <?php }?>
	                                            <?php if($module["m11"]==1){?>
	                                            <option value="haber" <?php if($rs["ne"]=="haber"){echo "selected";}?>><?php echo $t22s[0];?></option>
	                                            <?php }?>
	                                            <?php if($module["m14"]==1){?>
	                                            <option value="kayit" <?php if($rs["ne"]=="kayit"){echo "selected";}?>><?php echo $t24s[0];?></option>
	                                            <?php }?>
	                                            <?php if($module["c1"]==1){?>
	                                            <option value="msayfa" <?php if($rs["ne"]=="msayfa"){echo "selected";}?>><?php echo $n8s[0];?></option>
	                                            <?php }?>
	                                            <?php $sqlx=mysqli_query($conn, "select id,n1,n2 from genel where ne='xmodules' order by s10 asc,id desc"); while($rsx=mysqli_fetch_assoc($sqlx)){?>
	                                            <option value="<?php echo $rsx["n2"];?>" <?php if($rs["ne"]==$rsx["n2"]){echo "selected";}?>><?php echo $rsx["n1"];?></option>
	                                            <?php }?>
	                                        </select>
	                                    </fieldset>
										<?php $sqlx=mysqli_query($conn, "select id,t1 from ".$_SESSION["lang"]." where ne='client_project' and s13=1 order by t2 asc");?>
										<?php if(mysqli_num_rows($sqlx)>0){?>
										<fieldset class="grey-bg mdn" style="">
											<legend>Projeler <span style="font-size:8px; color:#ccc;">(iclient_project)</span></legend>
												<select size="1" name="iclient_project" id="iclient_project" style="" data-plugin-selecttwo="" class="form-control populate">
													<option value="0"><?php echo $sdil[221]; //Lütfen Seçiniz?></option>
												<?php  while($rsx=mysqli_fetch_assoc($sqlx)){?>
												<option id="<?php echo $rsx["id"]?>" value="<?php echo $rsx["id"]?>" <?php if($jsi["iclient_project"]==$rsx["id"]){echo "selected";}?>><?php echo $rsx["t1"]?></option>
												<?php }?>
											</select>
										</fieldset>			
										<?php }?>
	                                    <fieldset class="grey-bg" style="">
	                                        <legend><?php echo translate("Yayın Tarihi")?> <span style="font-size:8px; color:#ccc;">()</span></legend>
	                                        <input class="form-control" type="date" name="ts3" value="<?php echo dtarih($rs["ts3"],"yyyy-aa-gg");?>" class="form-control">
	                                    </fieldset>
	                                    <?php if($c2==1){?>
	                                    <fieldset class="grey-bg">
	                                        <legend><i class="fa fa-list-alt"></i> <?php echo $form[0]; //Form?> <?php echo $sdil[201]; //Ekle?> <span style="font-size:8px; color:#ccc;">(s16)</span></legend>
	                                        <select size=1 name="ss16" class="form-control populate" data-plugin-selecttwo="">
	                                            <option value="0"><?php echo $sdil[221]; //Lütfen Seçiniz?></option>
	                                            <?php $sql=mysqli_query($conn, "select id,m1 from ".$_SESSION["lang"]." where ne='form'"); 	while($rsf=mysqli_fetch_assoc($sql)){?>
	                                            <option value="<?php echo $rsf["id"];?>" title="<?php echo $rsf["m1"];?>" style="color:#6699FF" <?php if ($rsf["id"]==$rs["s16"]) {?>Selected<?php }?>><?php echo $rsf["m1"];?></option>
	                                            <?php }?>
	                                        </select>
	                                    </fieldset>
	                                    <?php }?>
	                                    <fieldset class="grey-bg e">
	                                        <legend><i class="fa fa-user-plus" aria-hidden="true"></i> <?php echo ctranslate("Yönetici(ler)")?> <span style="font-size:8px; color:#ccc;">(s19)</span></legend>
	                                        <select size=1 name="ss19[]" class="form-control chosen-select" tabindex="8" multiple>
	                                            <option value="0" <?php echo ($rs["s19"] == '0' || in_array('0', multivalues($rs["s19"]))) ? 'selected' : '';?>>Admin</option>
	                                            <?php $sql=mysqli_query($conn, "select s2,id,t1 from t5 where (s9=1 or s1=1) $luye"); while($rsm=mysqli_fetch_assoc($sql)){?>
	                                            <option class="" value="<?php echo $rsm["id"];?>" title="<?php echo $rsm["t1"];?>" alt="<?php echo $rsm["t1"];?>" <?php echo ($rsm["id"] == $rs["s19"] || in_array($rsm["id"], multivalues($rs["s19"]))) ? 'selected' : '';?>><?php echo $rsm["t1"];?></option>
	                                            <?php }?>
	                                        </select>
	                                    </fieldset>
	                                </div>
	                            </div>
								<!-- Content Area -->
								<div class="v8-col200pxL-right" ts1="<?php echo dtarih($rs["ts1"],"gg ka yy time");?>" ts2="<?php echo dtarih($rs["ts2"],"gg ka yy time");?>" ts3="<?php echo dtarih($rs["ts3"],"gg ka yy time");?>">
	                                <ul class="v8-tabs v8-js-tabs v8-same-height dn" style="position:absolute; right:10px; margin:0px; margin-top:-24px">
	                                    <?php 	if($lx<5){$i = 0;$diller = explode(',',$m1); foreach($diller as $dil) {$i++; if($i > 99) {$i = 1;}?>
	                                    <li>
	                                        <a href="#" onclick="AjaxKaydet('',''); location.href='?lang=lang<?php echo $i?>&ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"];?>'" title="<?php echo $dil;?>" style="padding:1px 5px;">
	                                            <?php
														$file_headers = @get_headers("https://lipis.github.io/flag-icon-css/flags/4x3/".str_replace('en','gb',strtolower(cevir($dil))).".svg");
														if(!$file_headers || $file_headers[0] == 'HTTP/1.1 404 Not Found'){
													?>
	                                            <?php echo $dil;?>
	                                            <?php } else {?>
	                                            <img src="https://lipis.github.io/flag-icon-css/flags/4x3/<?php echo str_replace('en','gb',strtolower(cevir($dil)));?>.svg" style="height:16px;">
	                                            <?php }?>
	                                        </a>
	                                    </li>
	                                    <?php }}?>
	                                </ul>
	                                <div id="tab-kayit" class="v8-tabs-content">
	                                    <div class="v3-row">
	                                        <div class="">
	                                            <fieldset class="grey-bg v3-col-md-<?php if(!empty($t46)){?>9<?php }else{?>12<?php }?>" style="">
	                                                <?php $kt1="".trim($sdil[200])." ".trim($nedir)."";?>
	                                                <legend> <?php echo $sdil[39]; //Başlık?>  <span style="color:grey;">#<?php echo $_GET["id"];?></span></legend>
	                                                <a class="mfrm cp" data-toggle="modal" data-width="50%" data-target="#myModal" data-url="https://dev.crmplus.com.tr/crmplus/hints.php?seo=title" data-title="Başlık" style="position: absolute; right: 10px; top: -30px;">Nasıl Yapmalıyım <i class="fa fa-question-circle" aria-hidden="true"></i></a>
	                                                <input type="text" name="t1" value="<?php echo $rs["t1"];?>" class="form-control qcontrol" qcontrol="qt1" data-plugin-maxlength="" maxlength="<?php echo $module["klmt"];?>" onfocus="if(this.value == '<?php echo $kt1;?>') { this.value = ''} " onblur="if(this.value == '') { this.value='<?php echo $kt1;?>'; }">
	                                                <span class="cspan" id="qt1" style="bottom: 0px;"></span>
	                                            </fieldset>
	                                            <?php if(!empty($t46)){?>
	                                            <fieldset class="v3-col-md-3">
	                                                <legend><?php echo $t46;?> <span style="font-size:8px; color:#ccc;">(t4-t5)</span></legend>
	                                                <div class="v3-col-md-5" style="padding: 0px;">
	                                                    <input type="text" class="v3-form-control qcontrol" qcontrol="qt4" name="t4" value="<?php echo $qr?>" onfocus="if(this.value == '<?php echo $qr;?>') { this.value = '<?php echo $qr;?>'} " onblur="if(this.value == '') { this.value='<?php echo i2a($rs["id"],7);?>'; }" placeholder="<?php $t46s = explode('/',$t46); echo $t46s[0];?>">
	                                                    <span class="cspan" id="qt4"></span>
	                                                </div>
	                                                <div class="v3-col-md-7" style="padding: 0px;">
	                                                    <input type="text" class="v3-form-control qcontrol" qcontrol="qt5" name="t5" value="<?php echo $barcode?>" onfocus="if(this.value == '<?php echo $barcode;?>') { this.value = '<?php echo $barcode;?>'} " onblur="if(this.value == '') { this.value='<?php echo $barcode;?>'; }" placeholder="<?php echo $t46s[1];?>">
	                                                    <span class="cspan" id="qt5"></span>
	                                                </div>
	                                            </fieldset>
	                                            <?php }?>
	                                            <?php if($s9==1){?>
	                                            <fieldset class="grey-bg v3-col-md-3" style="<?php if($module["loc"]=="sis" or $module["loc"]=="si"){$lsql="and s1=".$module["countrycode"]."";?>display:none;<?php }?>">
	                                                <legend><?php echo $sdil[98]; //Ülke?> <span style="font-size:8px; color:#ccc;">(n16)</legend>
	                                                <select id="ulke" name="ulke" class="form-control">
	                                                    <option value=""><?php echo ctranslate("Yükleniyor")?></option>
	                                                </select>
	                                            </fieldset>
	                                            <fieldset class="grey-bg v3-col-md-3" style="<?php if($module["loc"]=="u"){?>display:none;<?php }?>">
	                                                <legend><?php echo $sdil[98]; //Şehir?> <span style="font-size:8px; color:#ccc;">(n16)</legend>
	                                                <select name="sehir" id="il" class="form-control">
	                                                    <option value=""><?php echo ctranslate("Yükleniyor")?></option>
	                                                </select>
	                                                <script type="text/javascript">
	                                                    jQuery(document).ready(function() {
	                                                        jQuery('#ulke').load('<?php echo $path;?>../deppo/tools/script/location.php?ne=ulke&sID=<?php if($jsl["ulke"]<>""){echo $jsl["ulke"];}else{echo $module["countrycode"];}?>');
	                                                    });
	                                                    jQuery('#ulke').on('change', function() {
	                                                        var ID = jQuery('#ulke option:selected').attr('ID');
	                                                        jQuery('#il').load('../deppo/tools/script/location.php?ne=il&ID=' + ID);
	                                                    })
	                                                </script>
	                                            </fieldset>
	                                            <fieldset class="grey-bg v3-col-md-3" style="<?php if($module["loc"]=="u" or $module["loc"]=="us"){?>display:none;<?php }?>">
	                                                <legend><?php echo $sdil[99]; //İlçe?> <span style="font-size:8px; color:#ccc;">(n16)</legend>
	                                                <select id="ilce" name="ilce" class="form-control">
	                                                    <option value=""><?php echo ctranslate("Yükleniyor")?></option>
	                                                </select>
	                                                <script type="text/javascript">
	                                                    jQuery(document).ready(function() {
	                                                        jQuery('#il').load('<?php echo $path;?>../deppo/tools/script/location.php?ne=il&ID=<?php if($jsl["ulke"]<>""){echo $jsl["ulke"];}else{echo $module["countrycode"];}?>&sID=<?php echo $jsl["sehir"]?>');
	                                                    });
	                                                    jQuery('#il').on('change', function() {
	                                                        var ID = jQuery('#il option:selected').attr('ID');
	                                                        jQuery('#ilce').load('../deppo/tools/script/location.php?ne=ilce&ID=' + ID);
	                                                    })
	                                                </script>
	                                            </fieldset>
	                                            <fieldset class="grey-bg v3-col-md-3" style="<?php if($module["loc"]=="usis" or $module["loc"]=="sis"){}else{?>display:none;<?php }?>">
	                                                <legend><?php echo $sdil[100]; //Semt?> <span style="font-size:8px; color:#ccc;">(n16)</legend>
	                                                <select name="semt" id="semt" class="form-control">
	                                                    <option value=""><?php echo ctranslate("Yükleniyor")?></option>
	                                                </select>
	                                                <script type="text/javascript">
	                                                    jQuery(document).ready(function() {
	                                                        jQuery('#ilce').load('<?php echo $path;?>../deppo/tools/script/location.php?ne=ilce&ID=<?php echo $jsl["sehir"]?>&sID=<?php echo $jsl["ilce"]?>');
	                                                        jQuery('#semt').load('<?php echo $path;?>../deppo/tools/script/location.php?ne=semt&ID=<?php echo $jsl["ilce"]?>&sID=<?php echo $jsl["semt"]?>');
	                                                    });
	                                                    jQuery('#ilce').on('change', function() {
	                                                        var ID = jQuery('#ilce option:selected').attr('ID');
	                                                        jQuery('#semt').load('../deppo/tools/script/location.php?ne=semt&ID=' + ID);
	                                                    })
	                                                </script>
	                                            </fieldset>
	                                            <?php }?>
	                                            <!--<div style="width: 100%; float: left;"></div>-->
	                                            <?php if($a4<>0){?>
	                                            <fieldset class="grey-bg v3-col-md-3">
	                                                <legend><?php echo ctranslate("x Grup")?> <span style="font-size:8px; color:#ccc;">(s9)</span> </legend>
													<a class="mfrm" data-toggle="modal" data-width="90%" data-target="#myModal" data-url="../public/categories.php?<?php echo uri("get")?>" data-ref="?<?php echo uri("get")?>" data-title="#<?php echo $rs["id"];?>" style="position: absolute; top: -20px; right: 10px;"><i class="fas fa-edit"></i></a>
	                                                <select size=1 name="s9[]" ID="cs9" class="form-control chosen-select" tabindex="8" <?php if($e3>0){echo "multiple";}?>>
	                                                    <option value="0"><?php echo $sdil[221]; //Lütfen Seçiniz?></option>
	                                                    <?php
															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))){ $xselected = ($value["id"] == $rs["s9"] || in_array($value["id"], multivalues($rs["s9"]))) ? 'selected' : '';
																	echo "<option value=\"".$value["id"]."\" id=\"".$value["id"]."\" ".$xselected.">".$value["item"]."</option>";
																}
															}
															?>
	                                                </select>
	                                            </fieldset>
	                                            <?php }?>
	                                            <?php if($a4>1){?>
	                                            <fieldset class="grey-bg v3-col-md-3">
	                                                <legend><?php echo ctranslate("y Grup")?> <span style="font-size:8px; color:#ccc;">(s10)</span></legend>
													<a class="mfrm" data-toggle="modal" data-width="90%" data-target="#myModal" data-url="../public/categories.php?ne=kayit&islem=kategori&c=<?php echo $rs["s9"];?>&nedir=ukategori" data-ref="?<?php echo uri("get")?>" data-title="#<?php echo $rs["id"];?>" style="position: absolute; top: -20px; right: 10px;"><i class="fas fa-edit"></i></a>
	                                                <select size=1 name="s10[]" ID="cs10" class="form-control chosen-select" tabindex="8"  <?php if($e3>0){echo "multiple";}?>>
	                                                    <option value="0"><?php echo $sdil[221]; //Lütfen Seçiniz?></option>
	                                                    <?php
															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["c2"]==0))){ $yselected = ($value["id"] == $rs["s10"] || in_array($value["id"], multivalues($rs["s10"]))) ? 'selected' : '';
																	if(in_array($value["c1"], multivalues($rs["s9"])) || $value["c1"]==$rs["s9"]){
																		echo "<option value=\"".$value["id"]."\" id=\"".$value["id"]."\" ".$yselected.">".$value["item"]."</option>";
																	}
																}
															}
															?>
	                                                </select>
	                                            </fieldset>
	                                            <?php }?>
	                                            <?php if($a4>2){?>
	                                            <fieldset class="grey-bg v3-col-md-3">
	                                                <legend><?php echo ctranslate("z Grup")?> <span style="font-size:8px; color:#ccc;">(s11)</span></legend>
													<a class="mfrm" data-toggle="modal" data-width="90%" data-target="#myModal" data-url="../public/categories.php?ne=kayit&islem=kategori&c=<?php echo $rs["s10"];?>&nedir=ualt_kategori" data-ref="?<?php echo uri("get")?>" data-title="#<?php echo $rs["id"];?>" style="position: absolute; top: -20px; right: 10px;"><i class="fas fa-edit"></i></a>
	                                                <select size=1 name="s11[]" ID="cs11" class="form-control chosen-select" tabindex="8"  <?php if($e3>0){echo "multiple";}?>>
	                                                    <option value="0"><?php echo $sdil[221]; //Lütfen Seçiniz?></option>
	                                                    <?php
															foreach($ucats as $key=>$value){
																if(($module["ajax_categories"]<>1 and $value["ne"]=="".$q."alt_kategori2" or ($module["ajax_categories"]==1 and $value["t1"]=="".$_GET["ne"]."" and $value["s3"]==0))){ $zselected = ($value["id"] == $rs["s11"] || in_array($value["id"], multivalues($rs["s11"]))) ? 'selected' : '';
																	if(in_array($value["c2"], multivalues($rs["s10"])) || $value["c2"]==$rs["s10"]){
																		echo "<option value=\"".$value["id"]."\" id=\"".$value["id"]."\" ".$zselected.">".$value["item"]."</option>";
																	}
																}
															}
															?>
	                                                </select>
	                                            </fieldset>
	                                            <?php }?>
	                                            <?php if($a4>3){?>
	                                            <fieldset class="grey-bg v3-col-md-3">
	                                                <legend><?php echo ctranslate("w Grup")?> <span style="font-size:8px; color:#ccc;">(t11)</span></legend>
													<a class="mfrm" data-toggle="modal" data-width="90%" data-target="#myModal" data-url="../public/categories.php?ne=kayit&islem=kategori&c=<?php echo $rs["s11"];?>&nedir=ualt_kategori2" data-ref="?<?php echo uri("get")?>" data-title="#<?php echo $rs["id"];?>" style="position: absolute; top: -20px; right: 10px;"><i class="fas fa-edit"></i></a>
	                                                <select size=1 name="t11[]" ID="ct11" class="form-control chosen-select" tabindex="8"  <?php if($e3>0){echo "multiple";}?>>
	                                                    <option value="0"><?php echo $sdil[221]; //Lütfen Seçiniz?></option>
	                                                    <?php
															foreach($ucats as $key=>$value){
																if(($module["ajax_categories"]<>1 and $value["ne"]=="".$q."alt_kategori3" or ($module["ajax_categories"]==1 and $value["t1"]=="".$_GET["ne"]."" and $value["s4"]==0))){ $wselected = ($value["id"] == $rs["t11"] || in_array($value["id"], multivalues($rs["t11"]))) ? 'selected' : '';
																	if(in_array($value["s3"], multivalues($rs["s11"])) || $value["s3"]==$rs["s11"]){
																		echo "<option value=\"".$value["id"]."\" id=\"".$value["id"]."\" ".$wselected.">".$value["item"]."</option>";
																	}
																}
															}
															?>
	                                                </select>
	                                            </fieldset>
	                                            <?php }?>
	                                            <?php if($e5==1){?>
	                                            <!--<div style="clear:both;"></div>-->
	                                            <fieldset class="grey-bg v3-col-md-3 <?php if($module["maliyet"]<>1){echo "dn";}?>">
	                                                <legend> <?php echo translate("Maliyet")?> <span style="font-size:8px; color:#ccc;">(pb3)</span> </legend>
	                                                <input type="text" name="pb3" value="<?php echo wprice($rs["pb3"]);?>" size="10" onfocus="if(this.value == '0') { this.value = ''} " onblur="if(this.value == '') { this.value='0'; }">
	                                            </fieldset>
	                                            <fieldset class="grey-bg v3-col-md-3">
	                                                <legend> <?php if($module["s12"]>0){?><?php if($s11==1){echo "Kdv Dahil";}else{echo "Kdv Hariç";}?><?php }?><?php echo $sdil[85]; //Satış Fiyat?> <span style="font-size:8px; color:#ccc;">(pb2-pb1 t2)</span> </legend>
	                                                <div class="v3-col-md-4 v3-col-xs-4 pd0">
	                                                    <input type="text" class="form-control digi fs16" name="pb2" value="<?php echo wprice($rs["pb2"]);?>" placeholder="<?php echo $module["currency"]; //Pb?>" title="Liste Satış Fiyat" class="form-control" style="text-decoration: line-through" onfocus="if(this.value == '0') { this.value = ''} " onblur="if(this.value == '') { this.value='0'; }">
	                                                </div>
	                                                <div class="v3-col-md-4 v3-col-xs-4 pd0">
	                                                    <input type="text" class="form-control digi fs16 pb1" name="pb1" value="<?php echo wprice($rs["pb1"]);?>" placeholder="<?php echo $module["currency"]; //Pb?>" title="<?php echo $module["currency"]; //Pb?> Satış Fiyat" class="form-control" style="" onfocus="if(this.value == '0') { this.value = ''} " onblur="if(this.value == '') { this.value='0'; }">
	                                                </div>
	                                                <div class="v3-col-md-4 v3-col-xs-4 pd0">
	                                                    <select size=1 name="t2" class="form-control">
	                                                        <option value="TRY" <?php if($rs["t2"]=="TRY" or ($rs["t2"]=="" and trim($module["currency"])=="TRY")) {?>Selected<?php }?>>TRY</option>
	                                                        <option value="EUR" <?php if($rs["t2"]=="EUR" or ($rs["t2"]=="" and trim($module["currency"])=="EUR")) {?>Selected<?php }?>>EUR</option>
	                                                        <option value="USD" <?php if($rs["t2"]=="USD" or ($rs["t2"]=="" and trim($module["currency"])=="USD")) {?>Selected<?php }?>>USD</option>
	                                                        <option value="GBP" <?php if($rs["t2"]=="GBP" or ($rs["t2"]=="" and trim($module["currency"])=="GBP")) {?>Selected<?php }?>>GBP</option>
	                                                    </select>
	                                                </div>
	                                                <?php if($rs["t2"]<>trim($module["currency"])) {?><p style="" id="exc">* <?php echo price($rs["id"],"pb1");?> <?php echo $ikpb?></p><?php }?>
	                                            </fieldset>
												<fieldset class="grey-bg v3-col-md-3 <?php if($module["iprofit_margin"]<>1){echo "dn";}?>">
	                                                <legend> <?php echo ctranslate("Kar Marjı %")?> <span style="font-size:8px; color:#ccc;">(iprofit_margin)</span> </legend>
	                                                <div class="v3-col-md-12 v3-col-xs-12 pd0">
	                                                    <input type="text" class="form-control digi fs16" name="iprofit_margin" value="<?php if($jsi["iprofit_margin"]>0){echo $jsi["iprofit_margin"];}else{echo "0";}?>" placeholder="%" title="<?php echo ctranslate("Kar Marjı %")?>" class="form-control" onfocus="if(this.value == '0') { this.value = ''} " onblur="if(this.value == '') { this.value='0'; }">
	                                                </div>
	                                                <?php if($rs["t2"]<>trim($module["currency"])) {?><p style="" id="exc">* <?php echo price($rs["id"],"pb1");?> <?php echo $ikpb?></p><?php }?>
	                                            </fieldset>
	                                            <fieldset class="grey-bg v3-col-md-3 <?php if($d5<>1){echo "dn";}?>">
	                                                <legend> <?php echo ctranslate("Sepette % İndirim")?> <span style="font-size:8px; color:#ccc;">(ibasket_discount)</span> </legend>
	                                                <div class="v3-col-md-12 v3-col-xs-12 pd0">
	                                                    <input type="text" class="form-control digi fs16" name="ibasket_discount" value="<?php if($jsi["ibasket_discount"]>0){echo $jsi["ibasket_discount"];}else{echo "0";}?>" placeholder="%" title="<?php echo ctranslate("Sepette % İndirim")?>" class="form-control" onfocus="if(this.value == '0') { this.value = ''} " onblur="if(this.value == '') { this.value='0'; }">
	                                                </div>
	                                                <?php if($rs["t2"]<>trim($module["currency"])) {?><p style="" id="exc">* <?php echo price($rs["id"],"pb1");?> <?php echo $ikpb?></p><?php }?>
	                                            </fieldset>
	                                            <?php if($b4==1){?>
	                                            <fieldset class="grey-bg v3-col-md-3">
	                                                <legend> <?php echo $sdil[85]; //Satış Fiyat?> <span style="font-size:8px; color:#ccc;">(pb3-pb4-pb5)</span> </legend>
	                                                <div class="v3-col-md-4 v3-col-xs-4  pd0">
	                                                    <input type="text" class="form-control" name="pb3" value="<?php echo wprice($rs["pb3"]);?>" placeholder="USD" title="USD Satış Fiyat" class="form-control" onfocus="if(this.value == '0') { this.value = ''} " onblur="if(this.value == '') { this.value='0'; }">
	                                                </div>
	                                                <div class="v3-col-md-4 v3-col-xs-4 pd0">
	                                                    <input type="text" class="form-control" name="pb4" value="<?php echo wprice($rs["pb3"]);?>" placeholder="EUR" title="EUR Satış Fiyat" class="form-control" onfocus="if(this.value == '0') { this.value = ''} " onblur="if(this.value == '') { this.value='0'; }">
	                                                </div>
	                                                <div class="v3-col-md-4 v3-col-xs-4 pd0">
	                                                    <input type="text" class="form-control" name="pb5" value="<?php echo wprice($rs["pb5"]);?>" placeholder="GBP" title="GBP Satış Fiyat" class="form-control" onfocus="if(this.value == '0') { this.value = ''} " onblur="if(this.value == '') { this.value='0'; }">
	                                                </div>
	                                            </fieldset>
	                                            <?php }?>
	                                            <?php $sqlsp=mysqli_query($conn, "select * from genel where ne='tanim' and t2='sp' order by t2,n4 asc"); while($rsp=mysqli_fetch_assoc($sqlsp)){?>
	                                            <fieldset class="grey-bg v3-col-md-3" style="<?php if(($_SESSION["kim"]=="yonetici" and $_SESSION["y2_sp"]<>1)){echo "display:none;";}?>">
	                                                <legend> <?php echo $rsp["n4"];?> Fiyat <span style="font-size:8px; color:#ccc;">(ip<?php echo cevir($rsp["n4"]);?>)</span> </legend>
	                                                <div class="v3-col-md-4 v3-col-xs-4 pd0">
	                                                    <input type="text" class="form-control digi fs16 repdot" name="ilp<?php echo cevir($rsp["n4"]);?>" value="<?php echo wprice($jsi["ilp".cevir($rsp["n4"]).""]);?>" placeholder="<?php echo $module["currency"]; //Pb?>" title="<?php echo $module["currency"]; //Pb?> Liste Fiyat" class="form-control" style="text-decoration: line-through" onfocus="if(this.value == '0') { this.value = ''} " onblur="if(this.value == '') { this.value='0'; }">
	                                                </div>
	                                                <div class="v3-col-md-4 v3-col-xs-4 pd0">
	                                                    <input type="text" class="form-control digi fs16 repdot" name="ip<?php echo cevir($rsp["n4"]);?>" value="<?php echo wprice($jsi["ip".cevir($rsp["n4"]).""]);?>" placeholder="<?php echo $module["currency"]; //Pb?>" title="<?php echo $module["currency"]; //Pb?> Satış Fiyat" class="form-control" style="" onfocus="if(this.value == '0') { this.value = ''} " onblur="if(this.value == '') { this.value='0'; }">
	                                                </div>
	                                                <div class="v3-col-md-4 v3-col-xs-4 pd0">
	                                                    <div class="switch switch-sm switch-success">
	                                                        <input type="checkbox" name="is<?php echo cevir($rsp["n4"]);?>" value="1" data-plugin-ios-switch="" <?php if($jsi["is".cevir($rsp["n4"]).""]==1) {echo "checked";}?>>
	                                                    </div>
	                                                </div>
	                                            </fieldset>
	                                            <?php }?>
	                                            <fieldset class="grey-bg v3-col-md-3" style="<?php if($module["s12"]==0){?>display:none;<?php }?>">
	                                                <legend> <?php echo $sdil[86]; //Kdv?> % <span style="font-size:8px; color:#ccc;">(s4)</span> </legend>
	                                                <input type="text" name="ss4" class="form-control" value="<?php echo $rs["s4"];?>" style="" onkeypress="return SadeceRakam(event);" onblur="if(this.value == '') { this.value='<?php echo $rs["s4"];?>';}; SadeceRakam(event,false);" maxlength="2" onfocus="if(this.value == '<?php echo $rs["s4"];?>') { this.value = ''}">
	                                            </fieldset>
	                                            <?php }?>
	                                            <?php if(($f7==1 or $t28<>"")){?>
	                                            <fieldset class="grey-bg v3-col-md-3">
	                                                <legend>
														<i class="fas fa-refresh cp" onclick="location.href='?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"]; ?>'"></i>
	                                                    <?php if($f7==1){ echo $sdil[87]; echo " / ";} //Stok?> <?php echo $sdil[88]; //Birimi?> <span style="font-size:8px; color:#ccc;">(s5/t10)</span> </legend>
	                                                <div class="v3-col-md-4 v3-col-xs-4">
	                                                    <input type="text" name="ss5" class="form-control" value="<?php echo $rs["s5"];?>" style="<?php if($f7<>1){echo "display:none;";}?>" title="Stok Miktarı" onkeypress="return SadeceRakam(event);" onblur="if(this.value == '') { this.value='0';};SadeceRakam(event,false);" onfocus="if(this.value == '0') { this.value = ''}">
	                                                </div>
	                                                <div class="v3-col-md-4 v3-col-xs-4">
	                                                    <input type="text" name="is5" class="form-control" value="<?php echo $jsi["is5"];?>" placeholder="Min <?php echo $rs["t10"]?>" title="Min <?php echo $rs["t10"]?>" onkeypress="return SadeceRakam(event);" onblur="if(this.value == '') { this.value='1';};SadeceRakam(event,false);" onfocus="if(this.value == '1') { this.value = ''}">
	                                                </div>
	                                                <div class="v3-col-md-4 v3-col-xs-4">
	                                                    <select size=1 name="t10" class="form-control">
	                                                        <?php if(!empty($t28)){$sbirim = explode(',',$t28); foreach($sbirim as $sbrm) {$s++; if($s > 20) {$s = 1;}?>
	                                                        <option value="<?php echo $sbrm;?>" <?php if($rs["t10"]==$sbrm) {?>Selected<?php }?>><?php echo $sbrm;?></option>
	                                                        <?php }}?>
	                                                    </select>
	                                                </div>
	                                            </fieldset>
	                                            <?php }?>
	                                            <?php if($f3==1){?>
	                                            <fieldset class="grey-bg v3-col-md-3">
	                                                <legend>Desi (kargo) <span style="font-size:8px; color:#ccc;">(s6)</span>
	                                                    <div onclick="toggle('#dhesap');" style="cursor:pointer;position: absolute; right: 5px;" class="fa fa-calculator"></div>
	                                                </legend>
	                                                <input type="text" name="ss6" id="s6" value="<?php echo $rs["s6"];?>" class="form-control with-tip" style="" onfocus="if(this.value == '0') { this.value = ''} " onblur="if(this.value == '') { this.value='0'; }">
	                                                <div id="dhesap" style="display:none;">
	                                                    <SCRIPT TYPE="TEXT/JAVASCRIPT">
	                                                        function dhesapla() {
	                                                            var en = document.getElementById('en');
	                                                            var boy = document.getElementById('boy');
	                                                            var derinlik = document.getElementById('derinlik');
	                                                            var dtoplam = document.getElementById('s6');
	                                                            if (en.value.length == "" || isNaN(en.value)) {
	                                                                en.value = "";
	                                                                dtoplam.value = "";
	                                                                return false;
	                                                            }
	                                                            if (boy.value.length == "" || isNaN(boy.value)) {
	                                                                boy.value = "";
	                                                                dtoplam.value = "";
	                                                                return false;
	                                                            }
	                                                            if (derinlik.value.length == "" || isNaN(derinlik.value)) {
	                                                                derinlik.value = "";
	                                                                dtoplam.value = "";
	                                                                return false;
	                                                            }
	                                                            var desitoplam = (en.value * boy.value * derinlik.value) / 3000;
	                                                            dtoplam.value = desitoplam.toFixed(0);
	                                                        }
	                                                    </SCRIPT>
	                                                    <input class="form-control" title="En Cm" style="width:33%; float:left; height: 30px;" id="en" type="text" onkeyup="dhesapla()" placeholder="En cm" />
	                                                    <input class="form-control" title="Boy Cm" style="width:33%; float:left; height: 30px;" id="boy" type="text" onkeyup="dhesapla()" placeholder="Boy cm" />
	                                                    <input class="form-control" title="Derinlik Cm" style="width:33%; float:left; height: 30px;" id="derinlik" type="text" onkeyup="dhesapla()" placeholder="Derinlik cm" />
	                                                </div>
	                                            </fieldset>
	                                            <?php }?>
	                                            <?php if($g8==1){?>
	                                            <fieldset class="grey-bg v3-col-md-3">
	                                                <legend><?php echo $module["g8_title"];?> <span style="font-size:8px; color:#ccc;">(t16)</span></legend>
	                                                <input type="text" name="t16" list="lt16" id="t16" value="<?php echo $rs["t16"];?>" class="form-control with-tip" style="">
	                                                <datalist id="lt16">
	                                                    <?php $sqlb=mysqli_query($conn, "select n1 from genel where ne='brand' order by id desc"); while($rsb=mysqli_fetch_assoc($sqlb)){?>
	                                                    <option><?php echo $rsb["n1"];?></option>
	                                                    <?php }?>
	                                                </datalist>
	                                            </fieldset>
	                                            <?php }?>
	                                        </div>
	                                        <div style="width:100%;" id="inputs">
	                                            <img src="../../assets/img/loading.gif">
	                                            <a class="v3-btn v3-btn-xs v3-btn-default sam" style="" target="_blank" href="?ne=ayarlar&islem=inputs&nedir=<?php echo $_GET["ne"]?>&kid=<?php echo $_GET["id"]?>"><i class="fa fa-wrench" aria-hidden="true"></i></a>
	                                        </div>
	                                        <script type="text/JavaScript" language="JavaScript">
	                                            jQuery(document).ready(function () { loadFunction('../ajax/ajax_inputs.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"];?>','#inputs'); });
												jQuery('#cs9').on('change', function() { divload('../ajax/ajax_inputs.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"];?>&s9=' + this.value + '','#inputs'); });
												jQuery('#cs10').on('change', function() { divload('../ajax/ajax_inputs.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"];?>&s10=' + this.value + '','#inputs'); });
												jQuery('#cs11').on('change', function() { divload('../ajax/ajax_inputs.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"];?>&s11=' + this.value + '','#inputs'); });
											</script>
	                                        <?php if($module["esle"]=="1"){?>
	                                        <fieldset class="grey-bg" style="height: 150px;width:100%; overflow:auto;">
	                                            <legend><?php echo ctranslate("#Ürün Eşleştir")?></b> <span style="font-size:8px; color:#ccc;">(n10)</span></legend>
	                                            <select name="esle[]" data-placeholder="<?php echo ctranslate("Seçiniz")?>" class="form-control chosen-select" tabindex="8" multiple>
	                                                <?php $eid = explode(',',$rs["n10"]); $sqle=mysqli_query($conn, "select id,t1,t5 from ".$_SESSION["lang"]." where ne='kayit' $lkayit order by t1 asc"); while($esle=mysqli_fetch_assoc($sqle)){?>
	                                                <option value="<?php echo $esle["id"]?>" <?php foreach($eid as $n0) {?><?php if($esle["id"]==$n0){?>Selected<?php }}?>><?php echo $esle["t1"]?> <?php echo $esle["t5"]?></option>
	                                                <?php }?>
	                                            </select>
												<p>Ürünleri birbirleri ile eşler</p>
	                                        </fieldset>
	                                        <?php }?>
	                                        <?php if($module["areas"]=="1"){?>
	                                        <fieldset class="grey-bg" style="height: 150px;width:100%; overflow:auto;">
	                                            <legend><?php echo ctranslate("#Bölgeler")?></b> <span style="font-size:8px; color:#ccc;">(n11)</span></legend>
	                                            <select name="areas[]" data-placeholder="<?php echo ctranslate("Seçiniz")?>" class="form-control chosen-select" tabindex="8" multiple>
	                                                <?php $areas_ = explode(',',$rs["n11"]); $sqla=mysqli_query($conn, "select id,n2,n3,n4 from genel where ne='areas' order by id asc"); while($areas=mysqli_fetch_assoc($sqla)){?>
	                                                <option value="<?php echo $areas["id"]?>" <?php foreach($areas_ as $area_) {?><?php if($areas["id"]==$area_){?>Selected<?php }}?>><?php echo loc($areas["n2"])?> <?php if($areas["n3"]<>""){echo "> ".loc($areas["n3"])."";}?> <?php if($areas["n4"]<>""){echo "> ".loc($areas["n4"])."";}?></option>
	                                                <?php }?>
	                                            </select>
												<p>İlgili ürünün satıldığı bölgeler</p>
	                                        </fieldset>
	                                        <?php }?>
	                                        <?php if($g4==1){?>
	                                        <fieldset class="grey-bg" style="height: 150px;width:100%; overflow:auto;">
	                                            <legend><?php echo ctranslate("#Tavsiyeler1")?></b> <span style="font-size:8px; color:#ccc;">(n8)</span></legend>
	                                            <select name="tavsiye[]" data-placeholder="<?php echo ctranslate("Seçiniz")?>" class="form-control chosen-select" tabindex="8" multiple>
	                                                <?php $tid = explode(',',$rs["n8"]); $sqlt=mysqli_query($conn, "select id,t1,t5 from ".$_SESSION["lang"]." where ne='kayit' $lkayit order by t1 asc"); while($teu=mysqli_fetch_assoc($sqlt)){?>
	                                                <option value="<?php echo $teu["id"]?>" <?php foreach($tid as $n0) {?><?php if($teu["id"]==$n0){?>Selected<?php }}?>><?php echo $teu["t1"]?> <?php echo $teu["t5"]?></option>
	                                                <?php }?>
	                                            </select>
												<p>Bu ürünü alan, diğer hangi ürünler ile ilgilenir</p>
	                                        </fieldset>
	                                        <?php }?>
	                                        <?php if($module["esle2"]=="1"){?>
	                                        <fieldset class="grey-bg" style="height: 150px;width:100%; overflow:auto;">
	                                            <legend><?php echo ctranslate("#Tavsiyeler2")?></b> <span style="font-size:8px; color:#ccc;">(n7)</span></legend>
	                                            <select name="tavsiye2[]" data-placeholder="<?php echo ctranslate("Seçiniz")?>" class="form-control chosen-select" tabindex="8" multiple>
	                                                <?php $tid = explode(',',$rs["n7"]); $sqlt=mysqli_query($conn, "select id,t1,t5 from ".$_SESSION["lang"]." where ne='kayit' $lkayit order by t1 asc"); while($teu=mysqli_fetch_assoc($sqlt)){?>
	                                                <option value="<?php echo $teu["id"]?>" <?php foreach($tid as $n0) {?><?php if($teu["id"]==$n0){?>Selected<?php }}?>><?php echo $teu["t1"]?> <?php echo $teu["t5"]?></option>
	                                                <?php }?>
	                                            </select>
												<p>Bu ürünü alan, diğer hangi ürünler ile ilgilenir,2</p>
	                                        </fieldset>
	                                        <?php }?>
	                                    </div>
	                                </div>
	                                <div id="tab-aciklama" class="v8-tabs-content" <?php if($e4==0 or $e9==0){echo "style='display:none;'";}?>>
	                                    <ul class="v8-mini-tabs v8-no-margin v8-js-tabs v8-same-height">
	                                        <li><a href="#tab-adty"><?php echo $sdil[207]; //Detay?>-<?php echo $sdil[208]; //Seo?></a></li>
	                                        <li><a href="#tab-dty0" <?php if($e9==1){echo "style='display:none;'";}?>><?php echo $sdil[40]; //Kısa Özet?></a></li>
	                                        <?php
											if(!empty($n6)){
											$xt=1;$xtabs = explode(',',$n6); foreach($xtabs as $xtab) {$xt++;
											$xxtabs = explode(':',$xtab);
											if($xxtabs[1]==0 or $xxtabs[1]==$rs["id"]){
											?>
	                                        <li><a href="#tab-dty<?php echo $xt?>"><?php echo $xxtabs[0];?></a></li>
	                                        <?php }}}?>
	                                        <li><a href="#tab-dty1" class="<?php if($s9=="1" and $mapi<>""){}else{echo "dn";}?>">Map</a></li>
	                                    </ul>
	                                    <div class="v3-row">
	                                        <div id="tab-adty">
	                                            <div class="gs crm_info" data-info="Sayfanın arama motorlarında arandığında, nasıl gözükeceği simülasyonu">
	                                                <ul style="list-style: none; padding: 0px 15px 15px; 15px;">
	                                                    <li id="gs_url" style="color: #0d6621; font-size: 14px;" data-url="<?php echo $weburl;?><?php echo linked("d",$rs["id"]);?>"><?php echo $weburl;?><?php echo linked("d",$rs["id"]);?></li>
	                                                    <li id="gs_title" style="color: #1a0dab; font-size: 18px;"><?php echo meta("d",$rs["id"]); ?></li>
	                                                    <li id="gs_desc" style="color: #545454; font-size: 14px;"><?php if($rs["n2"]<>""){echo rlang($rs["n2"]);}else{echo ctranslate("Lütfen kısa açıklama giriniz");}?></li>
	                                                </ul>
	                                            </div>
	                                            <?php if($e4==1){?>
	                                            <fieldset class="" style=" position:relative">
	                                                <legend> <?php echo $sdil[207]; //Detay?> <span style="font-size:8px; color:#ccc;">(n1)</span> </legend>
	                                                <textarea id="rte" class="rte form-control" name="n1" style="height:350px;">
														<?php echo $rs["n1"];?>
													</textarea>
	                                                <select id="sozlesmeler" style="position: absolute; right: 10px; bottom: 13px; padding:0px; text-align:right;">
	                                                    <option value="" data-order="0">Otomatik Doldur</option>
	                                                    <option value="placeholder" data-order="">Örnek İçerik</option>
	                                                </select>
	                                                <script>
	                                                    jQuery('#sozlesmeler').on('change', function() {
	                                                        var editor = CKEDITOR.instances['rte'];
	                                                        var val = jQuery('#sozlesmeler').val();
	                                                        var order = jQuery('#sozlesmeler').find('option[value="' + val + '"]').data('order');
	                                                        var editor = CKEDITOR.instances['rte'];
	                                                        editor.setData("Lütfen Bekleyiniz...");
	                                                        var url = "https://cdn.<?php echo $cdnurl?>/tools/documents/?ne=" + val + "";
	                                                        $.get(url).then(function(data) {
	                                                            editor.setData(data);
	                                                        });
	                                                        if (val == "lipsum") {
	                                                            jQuery("#n2").val('Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.');
	                                                        }
	                                                        if (order != "") {
	                                                            jQuery("#s1").val(order);
	                                                        }
	                                                    });
	                                                </script>
	                                            </fieldset>
	                                            <?php }?>
	                                            <fieldset class="<?php if($e9==0){echo "dn";}?> crm_info" data-info="Meta tag Arama motoruna ve kullanıcılara sitenizle ilgili açıklama yapma amacıyla kullanılan etiketdir">
	                                                <legend><?php echo $sdil[39]; //Başlık?> (<b><?php echo $sdil[39]; //Başlık?> Extra</b>) <span style="font-size:8px; color:#ccc;">(n3)</span></legend>
	                                                <input type="text" list="ln3" name="n3" id="n3" value="<?php echo $rs["n3"];?>" placeholder="<?php echo $sdil[39]; //Başlık?>" data-plugin-maxlength="" maxlength="<?php echo $module["klmt"];?>" class="form-control ns3" style="border:solid 1px #F00;" autocomplete="off">
	                                                <datalist id="ln3">
	                                                    <option><?php echo $rs["t1"];?></option>
	                                                </datalist>
	                                            </fieldset>
	                                            <fieldset class="crm_info" data-info="Meta açıklama, bir web sayfasının kısa bir özetini sağlayan bir HTML özelliğidir. Google gibi arama motorları, kullanıcı tıklama oranlarını büyük ölçüde etkileyebilecekleri arama sonuçlarında genellikle tipik olarak en fazla 160 karakter uzunluğunda olan meta açıklamasını görüntüler.">
	                                                <legend><?php echo $sdil[40]; //Kısa Özet?> (<b>Description</b>) <span style="font-size:8px; color:#ccc;">(n2)</span></legend>
	                                                <span id="ns2" style="position: absolute; right: <?php if($mobile==""){?>3<?php }else{?>10<?php }?>%;"><?php echo strlen($rs["n2"])?></span>
	                                                <textarea name="n2" class="form-control ns2" id="n2" rows=5 style=" min-height:50px; border:solid 1px #F00;" data-plugin-maxlength="" maxlength="<?php echo $module["dlmt"];?>" placeholder="Kısa Özet"><?php echo $rs["n2"];?></textarea>
	                                            </fieldset>
	                                            <fieldset class="crm_info" data-info="Web sayfasının HTML kodunda görünen ve arama motorlarına sayfanın konusunun ne olduğunu söylemeye yardımcı olan belirli bir meta etiketi türüdür">
	                                                <legend> <?php echo $sdil[41]; //Anahtar Kelimeler?> <span style="font-size:8px; color:#ccc;">(n4)</span> </legend>
	                                                <input name="n4" list="ln4" id="input-tags" data_role="tagsinput" class="form-control" title="(n4) <?php echo $sdil[41]; //Anahtar Kelimeler?>" placeholder="<?php echo $sdil[41]; //Anahtar Kelimeler?>" value="<?php echo $rs["n4"];?>" />
	                                                <datalist id="ln4"></datalist>
	                                                <script>
	                                                    jQuery(document).ready(function() {
	                                                        jQuery('#input-tags_tag').attr('list', 'ln4');
	                                                        jQuery('#input-tags_tag').attr('autocomplete', 'off');
	                                                        jQuery('#input-tags_tag').css('width', '100px');
	                                                        jQuery('#ln4').load('../../fonksiyon.php?ne=<?php echo $_GET["ne"]?>&islem=keys');
	                                                    });
	                                                </script>
	                                            </fieldset>
	                                            <fieldset class="<?php if($module["crm"]==1){echo "dn";}?> v3-col-md-8">
	                                                <legend> <?php echo $sdil[83]; //Link ise?> <span style="font-size:8px; color:#ccc;">(n5-t6)</span> </legend>
	                                                <div class="input-group">
	                                                    <input type="text" name="n5" id="n5" class="form-control" value="<?php echo $rs["n5"];?>" aria-describedby="basic-addon2" placeholder="http://www.">
	                                                    <span class="input-group-addon" id="basic-addon2" style="padding: 0px;">
	                                                        <select size=1 name="t6" class="form-control">
	                                                            <option value="<?php echo $rs["t6"];?>">Target</option>
	                                                            <option value="_self">_self</option>
	                                                            <option value="_blank">_blank</option>
	                                                            <option value="_top">_top</option>
	                                                        </select>
	                                                    </span>
	                                                </div>
	                                            </fieldset>
	                                            <script>
													function updateContent(inputId, titleId, urlId, isDesc = false) {
														var inputValue = jQuery(inputId).val();
														var url = jQuery(urlId).attr("data-url");
														if (inputValue != "") {
															jQuery(titleId).html(isDesc ? inputValue : inputValue + ' ');
															if (!isDesc) {
																var seoUrl = '<?php echo $weburl;?>';
																var seoParam = cevir(inputValue).replace(/[_\s]/g, '-');
																if ($module["fseo"] == 0) {
																	jQuery(urlId).html(seoUrl + '<?php echo $_GET["ne"][0]?><?php echo $_GET["id"]?>/' + seoParam);
																} else if ($module["fseo"] == 2) {
																	jQuery(urlId).html(seoUrl + '/' + seoParam);
																}
															}
														} else {
															jQuery(titleId).html(isDesc ? '<?php echo ctranslate("Lütfen kısa açıklama giriniz");?>' : "<?php echo meta($_GET['ne'][0],$rs['id']); ?>");
															jQuery(urlId).html(url);
														}
													}
													jQuery('#n3').keyup(function() {
														updateContent('#n3', '#gs_title', '#gs_url');
													});
													jQuery('#n2').keyup(function() {
														updateContent('#n2', '#gs_desc', '#gs_url', true);
													});
													jQuery('#n5').keyup(function() {
														updateContent('#n5', '#gs_url', '#gs_url');
													});
												</script>
	                                            <fieldset class="v3-col-md-4">
	                                                <div class="switch switch-sm switch-success" style="position: absolute; top: -33px; right: 10px;">
	                                                    <input type="checkbox" data-plugin-ios-switch="" name="idesign_all" id="idesign_all" value="1" class="switch" <?php if($jsi["idesign_all"]==1) {?>checked<?php }?>>
	                                                </div>
	                                                <legend> <?php echo ctranslate("Tasarım")?>; <span style="font-size:8px; color:#ccc;">(idesign)</span> </legend>
	                                                <input type="text" list="lidesign" class="form-control" name="idesign" style="" value="<?php echo $jsi["idesign"];?>" placeholder="">
	                                                <datalist id="lidesign">
	                                                    <?php
																$fileList = glob('../view/*.php'); foreach($fileList as $filename){$s++;
																$filename=str_replace("../","",$filename);
																$filename=str_replace("view/","",$filename);
																$filename=str_replace(".php","",$filename);
																if($filename<>"footer" and $filename<>"header" and $filename<>"index" and $filename<>"func" and $filename<>"map" and $filename<>"meta" and $filename<>"script" and $filename<>"sql"){
															?>
	                                                    <option value="<?php echo $filename?>" title="<?php echo $filename?>" alt="<?php echo $filename?>" <?php if($filename==$jsi["idesign"]){echo "selected";}?>><?php echo $filename?></option>
	                                                    <?php }}?>
	                                                </datalist>
	                                            </fieldset>
	                                        </div>
	                                        <div id="tab-dty1" class="<?php if($s9==1 and $mapi<>""){}else{echo "dn";}?>">
	                                            <fieldset class="" id="fmaps" style="">
	                                                <legend>Google Map Koordinat <span style="font-size:8px; color:#ccc;">(n16)</span></legend>
	                                                <?php include("../public/gmap.php");?>
	                                            </fieldset>
	                                        </div>
	                                        <?php
											if(!empty($n6)){
												$xc = 1;$xcontents = explode(',',$n6); foreach($xcontents as $xcontent) {$xc++;
													$xxcontents = explode(':',$xcontent);
													if($xxcontents[1]==0 or $xxcontents[1]==$rs["id"]){
														?>
	                                        <div id="tab-dty<?php echo $xc?>">
	                                            <fieldset class="">
	                                                <legend><?php echo $xxcontents[0];?> <span style="font-size:8px; color:#ccc;">(n1<?php echo $xc?>)</span></legend>
	                                                <textarea name="n1<?php echo $xc?>" class="rte" id="rte<?php echo $xc?>" style="width:100%; height:450px;"><?php echo $rs["n1".$xc.""];?></textarea>
	                                            </fieldset>
	                                        </div>
	                                        <script type="text/javascript">
	                                            CKEDITOR.replace('rte<?php echo $xc?>');
	                                        </script>
	                                        <?php }}}?>
	                                        <div id="tab-dty0" <?php if($e9==1){echo "style='display:none;'";}?>>
	                                            <fieldset class="">
	                                                <legend><?php echo $sdil[40]; //Kısa Özet?> <span style="font-size:8px; color:#ccc;">(n9)</span></legend>
	                                                <textarea name="n9" class="rte" id="rte0" style="width:100%; height:450px;"><?php echo $rs["n9"];?></textarea>
	                                                <script type="text/javascript">
	                                                    CKEDITOR.replace('rte0');
	                                                </script>
	                                            </fieldset>
	                                        </div>
	                                    </div>
	                                </div>
	                    </form>
	                    <?php if($a1<>0 or $a2<>0 or $a3<>0){?>
	                    <div id="tab-multimedia" class="v8-tabs-content" style="min-height:500px; height: auto !important;">
	                        <ul class="v8-mini-tabs v8-no-margin v8-js-tabs v8-same-height">
	                            <?php if($a1<>0){?><li><a href="#tab-image" onclick="loadFunction('../ajax/ajax_medya.php','#mresim', 'resim');"><?php echo $sdil[209]; //Resimler?></a></li><?php }?>
	                            <?php if($a2<>0){?><li><a href="#tab-videos" onclick="loadFunction('../ajax/ajax_medya.php','#mvideo', 'video');"><?php echo $sdil[210]; //Videolar?></a></li><?php }?>
	                            <?php if($a3<>0){?><li><a href="#tab-files" onclick="loadFunction('../ajax/ajax_medya.php','#mdosya', 'dosya');"><?php echo $sdil[211]; //Dosyalar?></a></li><?php }?>
	                        </ul>
	                        <div class="v3-row">
	                            <?php if($a1<>0){?>
	                            <div id="tab-image">
	                                <fieldset id="uploadarea" style="">
	                                    <legend><?php echo $sdil[209]; //Resimler?></legend>
	                                    <script type="text/JavaScript" language="JavaScript">
	                                        jQuery(document).ready(function () {
												loadFunction('../ajax/ajax_medya.php','#mresim','resim');
											});
											document.write("<div id=\"mresim\" class=\"medias\" style=\"width:100%\"></div>");
										</script>
	                                </fieldset>
	                            </div>
	                            <?php }?>
	                            <?php if($a2<>0){?>
	                            <div id="tab-videos">
	                                <fieldset>
	                                    <legend><?php echo $sdil[210]; //Videolar?></legend>
	                                    <script type="text/JavaScript" language="JavaScript">
	                                        jQuery(document).ready(function () {
												loadFunction('../ajax/ajax_medya.php','#mvideo','video');
											});
											document.write("<div id=\"mvideo\" class=\"medias\" style=\"width:100%\"></div>");
										</script>
	                                </fieldset>
	                            </div>
	                            <?php }?>
	                            <?php if($a3<>0){?>
	                            <div id="tab-files">
	                                <fieldset>
	                                    <legend><?php echo $sdil[211]; //Dosyalar?></legend>
	                                    <script type="text/JavaScript" language="JavaScript">
	                                        jQuery(document).ready(function (){
												loadFunction('../ajax/ajax_medya.php','#mdosya','dosya');
											});
											document.write("<div id=\"mdosya\" class=\"medias\" style=\"width:100%\"></div>");
										</script>
	                                </fieldset>
	                            </div>
	                            <?php }?>
	                        </div>
	                    </div>
	                    <?php }?>
	                    <?php if($module["g5_kayit"]<>0 and (($_SESSION["kim"]=="Admin") or ($_SESSION["kim"]=="yonetici" and $_SESSION["y14"]<>0))){?>
	                    <div id="tab-hizmet" class="v8-tabs-content" style="" style="min-height:500px; height: auto !important;">
	                        <div class="v3-row">
	                            <script type="text/JavaScript" language="JavaScript">
	                                jQuery(document).ready(function (){
										loadFunction('../clients/ajax_client_service.php','#ihizmet', '');
									});
									document.write("<div id=\"ihizmet\" class=\"medias\"  style=\"width:100%\"></div>");
								</script>
	                        </div>
	                    </div>
	                    <?php }?>
	                    <?php if($a6<>0){?>
	                    <div id="tab-extra" class="v8-tabs-content" style="min-height:500px; height: auto !important;overflow: auto;">
	                        <script type="text/JavaScript" language="JavaScript">
	                            /* Grup tabları nedeniyle olmuyor.*/
									jQuery(document).ready(function (){
										loadFunction('../ajax/ajax_extra.php','#iextra', 'extra');
									});
									document.write("<div id=\"iextra\" class=\"medias\" style=\"width:100%\"></div>");
								</script>
	                        <?php //include('../public/extra.php');?>
	                    </div>
	                    <?php }?>
	                    <?php if($module["g1_kayit"]=="1"){?>
	                    <div id="tab-isayfa" class="v8-tabs-content">
	                        <div class="v3-row">
	                            <?php include('../pages/page_sub.php');?>
	                        </div>
	                    </div>
	                    <?php }?>
	            </div>
	        </div>
            </div>
</body>
<?php echo $footer?>
<script>
jQuery( document ).ready(function() {
	jQuery('#cs9').on('change', function () {
		var ID = jQuery('#cs9 option:selected').val(); // Veya `data-id` kullanabilirsiniz
		if (ID) {
			jQuery('#cs10').load('../ajax/categorie<?php if($module["ajax_categories"]<>""){echo "s";}?>_ajax.php?ne=<?php echo $_GET["ne"] ?>&islem=kategori&islem=ualt_kategori&c=' + ID, function () {
				jQuery('#cs10').trigger('chosen:updated');
			});
		}
	});
	jQuery('#cs10').on('change', function () {
		var ID = jQuery('#cs10').val(); // Çoklu seçim için tüm seçilen değerleri alır (dizi olarak döner)
		if (ID) {
			jQuery('#cs11').load('../ajax/categorie<?php if($module["ajax_categories"]<>""){echo "s";}?>_ajax.php?ne=<?php echo $_GET["ne"] ?>&islem=kategori&islem=ualt_kategori2&c=' + ID, function () {
				jQuery('#cs11').trigger('chosen:updated');
			});
		}
	});
	jQuery('#cs11').on('change', function () {
		var ID = jQuery('#cs11').val(); // Çoklu seçim için tüm seçilen değerleri alır (dizi olarak döner)
		if (ID) {
			jQuery('#ct11').load('../ajax/categorie<?php if($module["ajax_categories"]<>""){echo "s";}?>_ajax.php?ne=<?php echo $_GET["ne"] ?>&islem=kategori&islem=ualt_kategori2&c=' + ID, function () {
				jQuery('#ct11').trigger('chosen:updated');
			});
		}
	});
<?php if($_GET["tab"]<>""){?>
	jQuery( ".v8-tabs-content" ).each(function( index ) {
	  jQuery(this).css('display','none');
	});
	jQuery('#tab-<?php echo $_GET["tab"]?>').css('display','block');
	jQuery('#tab-<?php echo $_GET["tab"]?> .v8-tabs-content').css('display','block');
<?php }?>
<?php if($_REQUEST["iq"]<>""){?>
	var id = jQuery(this).attr("data-id");
	jQuery('.v8-col200pxL-right').find('.v8-tabs-content').css('display', 'none');
	jQuery('#tab-extra').css('display', 'block');
	jQuery('#iextra').find('.tbs').css('display', 'none');
	jQuery('#tab-ext<?php echo $_REQUEST["iq"]?>').css('display', 'block');
<?php }?>
 });

function reviewModal(src, width = '90%') {
    location.href = '../../'+src;
    jQuery('.modal').removeClass('in');
}
</script>
</html>
<?php
//-------------------------------------------------------------------------/İşlem Ekle/
if($_GET["durum"] == "kaydet" or $_GET["durum"] == "ykaydet"){
	//Onay Maili
	$ss19 = implode(',',$_POST["ss19"]);
	//$ss19=$_POST["ss19"];
	if(!empty($ss19)){$ss19=$ss19;}else{$ss19="0";}
	if($h3==1 and ($rs["s19"]<>0 or $ss19<>0) and $rs["s13"]<>1 and $_POST["ss13"]==1){
		$sqlu=mysqli_query($conn, "select * from t5 where id=".$ss19.""); $rsu=mysqli_fetch_assoc($sqlu);
		$mesaj	= "\"".$_POST["t1"]."\" ".ctranslate("ad_mail_approved")."";
		$malici	= base64_decode($rsu["t2"]);
		$konu	= ctranslate("#".$t24s[0]." Onaylama");
		$path	="../../../";
		$mesaj	= $design_top.$mesaj.$design_bottom;
		emailgonder($malici,$konu,$cc,$mesaj);
	}
	//Onay Maili
	if(!empty($_POST["m1"])){$sm1=$_POST["m1"];}else{$sm1="0";}
	if(!empty($_POST["m2"])){$sm2=$_POST["m2"];}else{$sm2="0";}
	if(!empty($_POST["m3"])){$sm3=$_POST["m3"];}else{$sm3="0";}
	if(!empty($_POST["m4"])){$sm4=$_POST["m4"];}else{$sm4="0";}
	if(!empty($_POST["m5"])){$sm5=$_POST["m5"];}else{$sm5="0";}
	if(!empty($_POST["m6"])){$sm6=$_POST["m6"];}else{$sm6="0";}
	if(!empty($_POST["m7"])){$sm7=$_POST["m7"];}else{$sm7="0";}
	if(!empty($_POST["m8"])){$sm8=$_POST["m8"];}else{$sm8="0";}
	if(!empty($_POST["m9"])){$sm9=$_POST["m9"];}else{$sm9="0";}
	if(!empty($_POST["m10"])){$sm1=$_POST["m10"];}else{$sm10="0";}
	if(!empty($_POST["m11"])){$sm1=$_POST["m11"];}else{$sm11="0";}
	if(!empty($_POST["m12"])){$sm1=$_POST["m12"];}else{$sm12="0";}
	if(!empty($_POST["m13"])){$sm1=$_POST["m13"];}else{$sm13="0";}
	if(!empty($_POST["m14"])){$sm1=$_POST["m14"];}else{$sm14="0";}
	if(!empty($_POST["m15"])){$sm1=$_POST["m15"];}else{$sm15="0";}
	if(!empty($_POST["m16"])){$sm1=$_POST["m16"];}else{$sm16="0";}
	if(!empty($_POST["m17"])){$sm1=$_POST["m17"];}else{$sm17="0";}
	if(!empty($_POST["m18"])){$sm1=$_POST["m18"];}else{$sm18="0";}
	if(!empty($_POST["m19"])){$sm1=$_POST["m19"];}else{$sm19="0";}
	if(!empty($_POST["m20"])){$sm20=$_POST["m20"];}else{$sm20="0";}
	if(!empty($_POST["ss1"])){$ss1=$_POST["ss1"];}else{$ss1="0";}
	if(!empty($_POST["ss2"])){$ss2=$_POST["ss2"];}else{$ss2="0";}
	if(!empty($_POST["ss3"])){$ss3=$_POST["ss3"];}else{$ss3="0";}
	if(!empty($_POST["ss4"])){$ss4=$_POST["ss4"];}else{$ss4="0";}
	if(!empty($_POST["ss5"])){$ss5=$_POST["ss5"];}else{$ss5="0";}
	if(!empty($_POST["ss6"])){$ss6=$_POST["ss6"];}else{$ss6="0";}
	if(!empty($_POST["ss7"])){$ss7=$_POST["ss7"];}else{$ss7="0";}
	if(!empty($_POST["ss8"])){$ss8=$_POST["ss8"];}else{$ss8="0";}
	if(!empty($_POST["s11"])){$s11=$_POST["s11"];}else{$s11="0";}
	if(!empty($_POST["ss12"])){$ss12=$_POST["ss12"];}else{$ss12="0";}
	if(!empty($_POST["ss13"])){$ss13=$_POST["ss13"];}else{$ss13="0";}
	if(!empty($_POST["ss14"])){$ss14=$_POST["ss14"];}else{$ss14="0";}
	if(!empty($_POST["ss15"])){$ss15=$_POST["ss15"];}else{$ss15="0";}
	if(!empty($_POST["ss16"])){$ss16=$_POST["ss16"];}else{$ss16="0";}
	if(!empty($_POST["ss17"])){$ss17=$_POST["ss17"];}else{$ss17="0";}
	if(!empty($_POST["ss18"])){$ss18=$_POST["ss18"];}else{$ss18="0";}
	$ss19 = implode(',', array_map(function($value) {return "{".$value."}";}, $_POST["ss19"]));
	if(!empty($_POST["ss20"])){$ss20=$_POST["ss20"];}else{$ss20="0";}
	if(!empty($_POST["pb1"])) {$kpb1=trim($_POST["pb1"]);} else{$kpb1="0";}
	if(!empty($_POST["pb2"])) {$kpb2=trim($_POST["pb2"]);} else{$kpb2="0";}
	if(!empty($_POST["pb3"])) {$kpb3=trim($_POST["pb3"]);} else{$kpb3="0";}
	if(!empty($_POST["pb4"])) {$kpb4=trim($_POST["pb4"]);} else{$kpb4="0";}
	if(!empty($_POST["pb5"])) {$kpb5=trim($_POST["pb5"]);} else{$kpb5="0";}
	if(!empty($_POST["ts3"])){$ts3=$_POST["ts3"];}else{$ts3="0000-00-00 00:00:00";}
	if (is_array($_POST["s9"]) && count($_POST["s9"]) === 1) {
		$ss9 = $_POST["s9"][0]; // Tek bir değer
	} else {
		$ss9 = implode(',', array_map(function($value) { return "{" . $value . "}"; }, $_POST["s9"])); // Çoklu değerler
	}
	if (is_array($_POST["s10"]) && count($_POST["s10"]) === 1) {
		$ss10 = $_POST["s10"][0]; // Tek bir değer
	} else {
		$ss10 = implode(',', array_map(function($value) { return "{" . $value . "}"; }, $_POST["s10"])); // Çoklu değerler
	}
	if (is_array($_POST["s11"]) && count($_POST["s11"]) === 1) {
		$ss11 = $_POST["s11"][0]; // Tek bir değer
	} else {
		$ss11 = implode(',', array_map(function($value) { return "{" . $value . "}"; }, $_POST["s11"])); // Çoklu değerler
	}
	if (is_array($_POST["t11"]) && count($_POST["t11"]) === 1) {
		$st11 = $_POST["t11"][0]; // Tek bir değer
	} else {
		$st11 = implode(',', array_map(function($value) { return "{" . $value . "}"; }, $_POST["t11"])); // Çoklu değerler
	}
	$st12 = implode(',',$_POST["t12"]);
	$sn8 = implode(',',$_POST["tavsiye"]);
	$sn7 = implode(',',$_POST["tavsiye2"]);
	$sn10 = implode(',',$_POST["esle"]);
	$sn11 = implode(',',$_POST["areas"]);
	$eID = implode(',',$_POST["esle"]); $eIDS = explode(',',$eID);
	$i=0;$y=0;foreach($eIDS as $eID) {$y++;
		$sqlx=mysqli_query($conn, "select n10 from ".$_SESSION["lang"]." where id=".$eID.""); $rsx=mysqli_fetch_assoc($sqlx);
		$sxn10 = explode(",", $rsx["n10"]);
		foreach($sxn10 as $n10){if($_GET["id"]==$n10){$i++;}}
		if($i==0){
			if($rsx["n10"]<>""){
				$xn10 = "".$rsx["n10"].", ".$_GET["id"]."";
			}else{
				$xn10 = $_GET["id"];
			}
			$Rsave = mysqli_query($conn, "update ".$_SESSION['lang']." set n10='".addslashes(stripslashes($xn10))."' where id=".$eID."");
		}
	}
	$larr = array(
		"ulke" => $_POST["ulke"],
		"sehir" => $_POST["sehir"],
		"ilce" => $_POST["ilce"],
		"semt" => $_POST["semt"],
		"koordinat" => $_POST["mkoordinat"],
		"adres" => $_POST["madres"]
	);
	$iarr = array();
	foreach ($_POST as $key => $value){
		if(substr($key,0,1)=="i"){
			$iarr = $iarr + array( $key => $value);
		}
	}
	$marr = array();
	foreach ($_POST as $key => $value){
		if(substr($key,0,1)=="m"){
			$marr = $marr + array( $key => $value);
		}
	}
	$rjsl = json_encode($larr, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_NUMERIC_CHECK);
	$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);
	$Sql = mysqli_query($conn, "update ".$_SESSION['lang']." set t1='".addslashes(stripslashes(trim($_POST["t1"])))."', t2='".$_POST["t2"]."', t3='".$_POST["t3"]."', t4='".$_POST["t4"]."', t5='".$_POST["t5"]."', t6='".$_POST["t6"]."', t7='".$_POST["t7"]."', t8='".$_POST["t8"]."', t9='".$_POST["t9"]."', t10='".$_POST["t10"]."', t13='".$_POST["t13"]."', t14='".$_POST["t14"]."', t15='".$_POST["t15"]."', t16='".$_POST["t16"]."', n1='".addslashes(stripslashes($_POST["n1"]))."', n2='".addslashes(stripslashes($_POST["n2"]))."', n3='".addslashes(stripslashes($_POST["n3"]))."', n4='".$_POST["n4"]."', n5='".$_POST["n5"]."', n9='".addslashes(stripslashes($_POST["n9"]))."', n12='".addslashes(stripslashes($_POST["n12"]))."', n13='".addslashes(stripslashes($_POST["n13"]))."', n14='".addslashes(stripslashes($_POST["n14"]))."', n15='".addslashes(stripslashes($_POST["n15"]))."', n16='".addslashes(stripslashes($rjsl))."', n17='".addslashes(stripslashes($rjsi))."', n18='".addslashes(stripslashes($rjsm))."', ts2=now() where id=".$_GET["id"]."");
	$kt1="".trim($sdil[200])." ".trim($nedir)."";
	for ($l = 1; $l <= $lx; $l++) {
		$Sql = mysqli_query($conn, "update lang".$l." set ne='".$_POST["ne"]."', m1='".addslashes(stripslashes($rjsm))."', m2='".addslashes(stripslashes($rjsa))."', s1='".$ss1."', s2='".$ss2."', s3='".$ss3."', s4='".$ss4."', s5='".$ss5."', s6='".$ss6."', s9='".$ss9."', s10='".$ss10."', s11='".$ss11."', t11='".$st11."', t12='".$st12."', s12='".$ss12."', s13='".$ss13."', s16='".$ss16."', s17='".$ss17."', s18='".$ss18."', s19='".$ss19."', pb1='".sprice($kpb1)."', pb2='".sprice($kpb2)."', pb3='".sprice($kpb3)."', pb4='".sprice($kpb4)."', pb5='".sprice($kpb5)."', n7='".$sn7."', n8='".$sn8."', n10='".$sn10."', n11='".$sn11."', ts3='".$ts3."', ts2=now() where id=".$_GET["id"]."");
	}
	if($_GET["durum"]=="ykaydet"){
		echo location("?ne=".$_GET["ne"]."&islem=kayitlar&durum=ykayit",self,500,1);
	}else{
		echo location("?ne=".$_GET["ne"]."&islem=".$_GET["islem"]."&id=".$_GET["id"]."&durum=oku",self,500,1);
	}
}
include("../public/log.php");
?>