<?php
header('Content-Type: text/html; charset=utf-8');
error_reporting(0);
$path="../../";
include("../../map.php");
include("../../scripts.php");
include("../../secure.php");
$scats = json_decode(GetArr("s","categories"), true);
$hcats = json_decode(GetArr("h","categories"), true);
$mcats = json_decode(GetArr("m","categories"), true);
$ccats = json_decode(GetArr("k","categories"), true);
$ucats = json_decode(GetArr("u","categories"), true);
$xcats = json_decode(GetArr("x","xmodules"), true);
$sitems = json_decode(GetArr("sayfa","","s5=1"), true);
$mitems = json_decode(GetArr("msayfa","","s5=1"), true);
$citems = json_decode(GetArr("users"), true);
$uitems = json_decode(GetArr("kayit"), true);
$sql=mysqli_query($conn, "select * from ".$_SESSION['lang']." where id=".$_GET["id"].""); $rs=mysqli_fetch_assoc($sql);
if(mysqli_num_rows($sql)==0){
    // Kayıt bulunamayan sayfayı oluşturuyor.
    $sqli = $conn->query("insert into ".$_SESSION['lang']." (id, ne, t1, n1, s1, s2, s3, s5, s7, s8, s13, s19, ts1) values ('".$_GET["id"]."', '".$_GET["ne"]."', '', '', '0', '0', '0', '0', '0', '0', '1', '".$_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);
}
$jsi = json_decode($rs["n17"], true); $jsl = json_decode($rs["n16"], true); $jsm = json_decode($rs["m1"], true);
include("../upload/upload_image_drag.php");
if ($rs["s6"]==1 or $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="<?php echo $weburl?>" target="_blank"><i class="fa fa-home"></i></a></li>
                            <li class="breadcrumb-item"><a href="#"><?php echo $nedirs;?></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(($d1=="1" and $sislem=="sayfa") or $module["d1_".$_GET["ne"].""]=="1"){?>
                    <button id="upload_image_btn" style="border: dashed 1px black" type="button" class="btn btn-success upload-btn mfrm" data-toggle="modal" data-ajax="mresim" data-width="50%" data-target="#myModal" onclick="location.href='#&tab-multimedia';" data-title="Multimedia" data-url="<?php echo $weburl."/".$crmpath."/"?>modules/upload/upload_image.php?<?php echo uri("get"); ?>"><strong><i class="fa fa-cloud-upload" aria-hidden="true"></i><span class="mdn"> <?php echo $sdil[75]; //Resim Ekle?></span></strong></button>
                <?php }?>
                <?php if((($d2==1 or $d2==3) and $sislem=="sayfa") or $module["d7_".$_GET["ne"].""]>0){?>
                    <button type="button" class="btn btn-danger mfrm" data-toggle="modal" data-ajax="mvideo" data-width="50%" data-target="#myModal" onclick="location.href='#&tab-multimedia&tab-videos';" data-title="Multimedia" data-url="<?php echo $weburl."/".$crmpath."/"?>modules/video/video_add.php?<?php echo uri("get"); ?>"><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(($d3=="1" and $sislem=="sayfa") or $module["d3_".$_GET["ne"].""]<>0){?>
                    <button type="button" class="btn btn-warning mfrm" data-toggle="modal" data-ajax="mdosya" data-width="50%" data-target="#myModal" onclick="location.href='#&tab-multimedia&tab-files';" data-title="Multimedia" data-url="<?php echo $weburl."/".$crmpath."/"?>modules/upload/upload_file.php?<?php echo uri("get"); ?>"><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 }?>
                <button type="button" class="btn btn-warning mfrm" data-toggle="modal" data-target="#myModal" data-width="50%" data-url="../public/add.php?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $sislem;?>&durum=ysayfa&s5=<?php echo $_GET["s5"];?>" data-title="<?php echo $sdil[200]." ".$nedir;?>"><i class="fa fa-plus " aria-hidden="true"></i></button>
				<!--<button type="button" class="btn btn-danger btn-delete-row" data-href="<?php echo $weburl."/".$crmpath?>?ne=sayfa&islem=sayfa&id=<?php echo $_GET["id"]?>&durum=ssayfa" 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" class="btn btn-warning" type="button" aria-expanded="false" style="padding: 12px; margin-left: 10px;">
                        <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($_GET["ne"][0],$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 cp" 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=hpage" 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?ne=<?php echo $_GET['ne'];?>&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="90%" 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(($rs["ne"]=="sayfa" and ($e6==2 or $e6==5)) or ($rs["ne"]=="msayfa" and ($e6==3 or $e6==5)) or ($rs["ne"]=="haber" and ($e6==4 or $e6==5)) or $MSA==1){?>
                            <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=sayfa&id=<?php echo $_GET["id"]; ?>&durum=suye">
							   <i class="fa fa-trash"></i> <?php echo $sdil[204]; //Kaldir?>
							</a>
<?php }?>
                    </div>
                </div>

				<?php if(!empty($m1) and $module["crm"]<>1){?>
					<div class="btn-group flex-wrap">
						<button data-toggle="dropdown" class="btn btn-warning" type="button" aria-expanded="false" style="margin-left: 10px;">
							<?php $flagCode = str_replace('en','gb', strtolower(trim(cevir($dill)))); $flagUrl  = "//flagicons.lipis.dev/flags/4x3/".$flagCode.".svg"; $ddlangText = substr(ucwords(strtolower(trim(cevir($dill)))),0,2); ?>
							<img src="<?php echo $flagUrl;?>" style="height:16px;" onerror="this.onerror=null;this.replaceWith('<?php echo $ddlangText;?>');">
							<span class="caret"></span>
						</button>
						<ul class="dropdown-menu">
							<?php
							$i = 0;
							$diller = explode(',',$m1);
							foreach($diller as $dil) {
								$i++; if($i > 99) {$i = 1;}
								$link = "?lang=lang".$i."&ne=".$_GET["ne"]."&islem=".$_GET["islem"]."&id=".$_GET["id"];
								$code = str_replace('en','gb',strtolower(cevir($dil)));
								?>
								<li>
									<a href="<?php echo $link;?>" style="padding: 3px 10px;">
										<div class="image" style="background: #ff0000; color: white; width: 24px; height: 24px; padding: 1px; text-align: center; border-radius: 15px;float: left;">
											<?php $flagCode = str_replace('en','gb', strtolower(trim(cevir($dil)))); $flagUrl  = "//flagicons.lipis.dev/flags/4x3/".$flagCode.".svg"; $langText = substr(ucwords(strtolower(trim(cevir($dil)))),0,2); ?>
											<img src="<?php echo $flagUrl;?>" style="height:16px;" onerror="this.onerror=null;this.replaceWith(document.createTextNode('<?php echo $langText;?>'));">
										</div>
										<span class="title" style="float: left; margin-left: 5px; margin-top: 2px;"><?php echo $dil;?></span>
									</a>
								</li>
							<?php } ?>
						</ul>
					</div>
				<?php } ?>

            </div>
            <form class="form" action="?<?php echo uri("get"); ?>&durum=kaydet" id="asave" name="aform" method="post" style="width:100%">
                <!-- 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-bilgi"><i class="fa fa-file"></i> <span style="text-transform:capitalize;">Detay</span></a></li>
                            <?php if(($d7<>0 and $sislem=="sayfa") or $module["d7_".$_GET["ne"].""]<>0){?>
                                <li><a href="#tab-aciklama" <?php if((($MSA==1) or $s9==1 or $rs["n10"]<>"" or $rs["n16"]<>"") 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 ( (($d1 <> 0 and $sislem == "sayfa") or $module["d1_" . $_GET["ne"]] <> 0) or (($d2 <> 0 and $sislem == "sayfa") or $module["d2_" . $_GET["ne"]] <> 0) or (($d3 <> 0 and $sislem == "sayfa") or $module["d3_" . $_GET["ne"]] <> 0) ) { ?>
                                <li><a href="#tab-multimedia" onclick="loadFunction('../ajax/ajax_medya.php','#mresim', 'resim');"><i class="fa fa-file-image-o" aria-hidden="true"></i> <span>Multimedia</span></a></li>
                            <?php }?>
                            <?php if($module["g1_".$_GET["ne"].""]=="1"){?>
                                <li><a href="#tab-isayfa"><i class="fa fa-subscript"></i> <span><?php echo $module["g1_title"]?></span></a></li>
                            <?php }?>
                            <?php if($module["d6_".$_GET["ne"].""]=="1"){?>
                                <li><a href="#tab-extra"><i class="fa fa-list-ul"></i> <span><?php echo $module["madde_sayfa"]?></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($rs["t4"]<>""){?>
                                <img src="<?php echo qrCode("".$module["app"]."?n".$_GET["id"]."/qr",140);?>" style="width: 85%; float: right; margin-bottom:10px;">
                            <?php }?>
                            <fieldset class="grey-bg crm_info" data-info="Yayında olup olmadığını belirler. Kapalıysa ziyaretçiler tarafından görüntülenmez." <?php if(($_SESSION["kim"]=="Admin") or ($_SESSION["kim"]=="yonetici")){}else{echo "style='display:none;'";}?>>
                                <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>
                                <input type="checkbox" name="s13" value="1" class="xl" <?php echo ($rs["s13"] == 1) ? 'checked' : ''; ?>>
                            </fieldset>
                            <fieldset class="grey-bg  crm_info" data-info="Ana vitrine çıkarılıp çıkarılmayacağını belirler.">
                                <legend><i class="fa fa-check-square"></i> <?php echo $sdil[218]; //Vitrin?> <span style="font-size:8px; color:#ccc;">(s7)</span></legend>
                               <input type="checkbox" name="s7" value="1" class="xl" <?php echo ($rs["s7"] == 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 crm_info" data-info="Bu içeriğe, alt içerikler açabilmek için ana başlık olarak kullanılır" style="<?php if($_GET["ne"]=="haber"){echo "display:none;";}?>">
                                <legend><i class="fa fa-check-square"></i> <?php echo $sdil[219]; //Ana Menü?> <span style="font-size:8px; color:#ccc;">(s5)</span></legend>
                                <input type="checkbox" name="s5" value="1" class="xl" <?php echo ($rs["s5"] == 1) ? 'checked' : ''; ?>>
                            </fieldset>
							<fieldset class="grey-bg crm_info" data-info="Bu içeriğe, alt içerikler açabilmek için ana başlık olarak kullanılır" style="<?php if($_GET["ne"]=="haber"){echo "display:none;";}?>">
                                <legend><i class="fa fa-check-square"></i> Menüde Göster/Gizle <span style="font-size:8px; color:#ccc;">(is7)</span></legend>
                                <input type="checkbox" name="is7" value="showMenu" class="xl" <?php echo ($jsi["is7"] == "showMenu") ? 'checked' : ''; ?>>
                            </fieldset>
                            <fieldset class="grey-bg">
                                <legend><i class="fa fa-sort"></i> <?php echo $sdil[74]; //Sıra?> <span style="font-size:8px; color:#ccc;">(s1)</span></legend>
                                <input class="form-control" type="text" list="sl1" name="s1" id="s1" value="<?php echo $rs["s1"];?>" class="form-control">
                                <datalist id="sl1" style="display:none;">
                                    <option value="999">Tahsilat Menü</option>
                                    <option value="1000">Üyelik Sözleşmesi</option>
                                    <option value="1001">Satış Sözleşmesi</option>
                                    <option value="1002">İptal İade</option>
                                    <option value="1003">Hizmet</option>
                                    <option value="1004">Kvkk</option>
                                    <option value="1005">Aydınlatma Metni</option>
                                </datalist>
                            </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 * 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>
                        <!--
                        <fieldset class="grey-bg" style="<?php if($f1!="1"){?>display:none;<?php }?>">
                            <legend><?php echo $sdil[46]; //Sosyal Medya?> <span style="font-size:8px; color:#ccc;">(s9)</span></legend>
                            <input type="checkbox" name="s9" id="s9" value="1" class="switch" <?php if($rs["s9"]=="1") {?>checked<?php }?>>
                        </fieldset>
                            -->
                            
                            <fieldset class="grey-bg msa mdn" style="">
                                <legend>ID <span style="font-size:8px; color:#ccc;">(id)</span></legend>
                                <input class="form-control" type="text" name="id" value="<?php echo $rs["id"];?>" class="form-control">
                            </fieldset>
                            <?php if($c2=="1"){?>
                                <fieldset class="grey-bg" style="position:relative;">
                                    <i class="fa fa-plus mfrm cp" data-toggle="modal" data-width="50%" data-target="#myModal" data-url="modules/public/add.php?ne=form&islem=form" data-title="<?php echo ctranslate("Yeni Form Ekle")?>" style="position: absolute; right: 15px; top: -30px; background: white; padding: 5px; border-radius: 5px;"></i>
                                    <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="s16" id="s16" style="" data-plugin-selecttwo="" class="form-control populate">
                                        <option value="0"><?php echo $sdil[221]; //Lütfen Seçiniz?></option>
                                        <?php $sql=mysqli_query($conn, "select * 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 }?>
							<?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 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>
							<fieldset class="grey-bg" style="">
                                <legend><?php echo translate("Yayın Tarihi")?> <span style="font-size:8px; color:#ccc;">(ts3)</span></legend>
                                <?php $sql3=mysqli_query($conn, "select * from ".$_SESSION["lang"]." where ne='".$_GET["ne"]."' and ts3 > ".date("Y-m-d")." and id<>".$_GET["id"]." and s13=0 order by id desc"); $rsts3=mysqli_fetch_assoc($sql3);?>
                                <input class="form-control" type="date" name="ts3" id="ts3" value="<?php echo dtarih($rs["ts3"],"yyyy-aa-gg");?>" class="form-control">
                                <?php if(mysqli_num_rows($sql3)>0){?>
                                    <div style="font-size: 9px;"><span class="text-info cp" title="Son taslak yayın tarihi"><?php echo dtarih($rsts3["ts3"],"gg ka kg");?></span> <i class="fas fa-long-arrow-alt-right"></i> <a  title="Tavsiye edilen yayın tarihi" class="text-success cp" onclick="jQuery('#ts3').val('<?php echo publish_date($rsts3["ts3"]);?>')"><?php echo dtarih(publish_date($rsts3["ts3"]),"gg ka kg");?></a></div>
                                <?php }else{?>
                                    <div style="font-size: 9px;"><span class="text-info cp" title="Taslak bulunamadı">00 .. ..</span> <i class="fas fa-long-arrow-alt-right"></i> <a title="Tavsiye edilen yayın tarihi" class="text-success cp" onclick="jQuery('#ts3').val('<?php echo publish_date(date("Y-m-d"));?>')"><?php echo dtarih(publish_date(date("Y-m-d")),"gg ka kg");?></a></div>
                                <?php }?>
                            </fieldset>
                        </div>
                    </div>
                    <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 echo $dil;?>
                                </a>
                            </li>
                        <?php }}?>
                    </ul>
                    <div id="tab-bilgi" class="v8-tabs-content">
                        <div class="v3-row">
                            <fieldset class="grey-bg v3-col-md-12" style="">
                                <legend> <?php echo $sdil[39]; //Başlık?> <span style="color:grey;">#<?php echo $_GET["id"];?></span></legend>
                                <?php $st1="".trim($sdil[200])." ".trim($nedir)."";?>
                                <input name="t1" type="text" class="form-control qcontrol" qcontrol="qt1" data-plugin-maxlength="" maxlength="<?php echo $module["klmt"];?>" value="<?php echo $rs["t1"];?>" onfocus="if(this.value == '<?php echo $st1;?>') { this.value = ''} "  onblur="if(this.value == '') { this.value='<?php echo $st1;?>'; }">
                                <span class="cspan" id="qt1" style="bottom: 0px;"></span>
                                <?php if($_SESSION["user"]==V3d('TWFzdGVy') or $_SESSION["user"]==V3d('U3VwZXJBZG1pbg==')){?>
                                    <select size="1" name="s6" class="form-control" style="position: absolute; right: 15px; top: 5px; width: 100px;">
                                        <option value="0" <?php echo ($rs["s6"] == 0) ? 'selected' : ''; ?>>...</option>
                                        <option value="1" <?php echo ($rs["s6"] == 1) ? 'selected' : ''; ?>>Silinmez</option>
                                    </select>
                                <?php }?>
                            </fieldset>
                            <?php if($rs["n5"]<>""){?>
                                <div class="alert alert-info v3-col-md-12" style="margin-top: -22px;">
                                    Bu sayfa sadece yönlendirme amacı ile oluşturulmuştur.
                                </div>
                            <?php }?>
                            <?php if($_GET["ne"]=="haber" and $d7<>0){?>
                                <fieldset class="">
                                    <legend><?php echo $sdil[40]; //Kısa?> (<b>Description</b>) <span style="font-size:8px; color:#ccc;">(n2)</span></legend>
                                    <textarea class="form-control" name="n2" id="n2" class="ns2" rows="5" style="width:99%; border:solid 1px #F00 !important;" data-plugin-maxlength="" maxlength="<?php echo $module["dlmt"];?>" placeholder="Seo Açıklama"><?php echo $rs["n2"];?></textarea>
                                </fieldset>
                            <?php }?>
                            <fieldset class="" style="<?php if (($d4 == 0 && $sislem == "sayfa") || isset($module["d4_" . $_GET["ne"]]) && $module["d4_" . $_GET["ne"]] == 0  && $sislem <> "sayfa"){echo "display:none;";}?> position:relative">
                                <legend><?php echo $sdil[207]; //Detay?> <span style="font-size:8px; color:#ccc;">(n1)</span></legend>
                                <textarea class="form-control" id="rte" name="n1" style="width:100%; height:350px;"><?php echo $rs["n1"];?></textarea>
                                <select id="sozlesmeler" style="position:absolute;right:10px;bottom:13px;padding:0;text-align:right;">
									<option value="" data-order="0">Otomatik Doldur</option>
									<option value="membership-agreement" data-order="999">Üyelik Sözleşmesi</option>
									<option value="sales-agreement" data-order="1000">Satış Sözleşmesi</option>
									<option value="refund-policy" data-order="1001">İptal & İade Koşulları</option>
									<option value="privacy-policy" data-order="1002">Gizlilik ve Güvenlik</option>
									<option value="warranty-policy" data-order="1003">Garanti Koşulları</option>
									<option value="delivery-terms" data-order="1004">Teslimat Koşulları</option>
									<option value="terms-of-use" data-order="1005">Site Kullanım Şartları</option>
									<option value="kvkk" data-order="1006">KVKK Bilgilendirmesi</option>
									<option value="privacy-notice" data-order="1007">Aydınlatma Metni</option>
									<option value="placeholder" data-order="1008">Ö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'];
                                        var ozet = CKEDITOR.instances['rte0'];
                                        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(val=="kvkk"){
                                            ozet.setData('{firma} olarak web sitemizi geliştirmek, kullanışlı, etkili ve güvenli hale getirmek amacıyla çerezler (cookie) kullanıyoruz. Sitemizde gezinmeye devam etmeniz halinde cihazınızdaki çerezlere erişebilmemizi izin vermiş sayılırsınız. Ayrıntılı bilgi için {kvkk} ‌sayfamızı inceleyebilirsiniz.');
                                        }
                                        if(order!=""){
                                            jQuery("#s1").val(order);
                                        }
                                    });
                                </script>
                            </fieldset>
                            <?php 
                            if(($d9==1 and $sislem=="sayfa") or $module["d9_".$_GET["ne"].""]<>0){
                                $stip="data-plugin-selecttwo=\"\" class=\"form-control populate\" multiple=\"\"";
                            }else{
                                $stip="class=\"form-control\"";
                            }
                            $skat="id"; $ckat="Cat_ID";
                            ?>
                            <?php 
                            if($_GET["ne"]=="sayfa" and $d10<>"0" or $_GET["ne"]=="haber" and $b1<>"0" or $_GET["ne"]=="msayfa" and $g7<>"0" or ($module["d10_".$_GET["ne"].""]<>0)){
                                $s2S = explode(',',$rs["s2"]);
                                ?>
                                <fieldset class="v3-col-md-4" style="">
                                    <legend> <?php echo ctranslate("Grup")?> <span style="font-size:8px; color:#ccc;">(s2)</span></legend>
                                    <select name="ss2[]" data-placeholder="Seçiniz" class="form-control chosen-select" tabindex="8" <?php if($d9>0){ echo "multiple"; } ?>>
							<option value="0">...</option>

							<?php
							$ne = isset($_GET["ne"]) ? $_GET["ne"] : '';

							// d10 bloğu (scats)
							if ($d10 <> 0) {
								echo "<optgroup label=\"" . ctranslate((isset($t21s[0]) ? $t21s[0] : '') . " Grupları") . "\">";
								foreach ($scats as $xkey => $xvalue) {
									$jscx = json_decode($xvalue["n1"], true);
									if (($xvalue["ne"] == "skategori") || ($ne !== '' && $xvalue["ne"] == $ne . "kategori") || ($xvalue["t1"] == $ne)) {
										$selected = ($xvalue["id"] == $rs["s2"] || in_array($xvalue["id"], multivalues($rs["s2"]))) ? ' selected' : '';
										echo '<option class="c0" value="' . $xvalue["id"] . '" title="' . $xvalue["item"] . '" style="color:#6699FF"' . $selected . '>+ ' . ctranslate($xvalue["item"]) . ' [' . $xvalue["id"] . ']</option>';
									}
								}
								echo "</optgroup>";
							}

							// telefon (sitems) optgroup
							echo "<optgroup label=\"" . ctranslate(telefon($t21)) . "\">";
							foreach ($sitems as $akey => $avalue) {
								if ((($avalue["ne"] == "sayfa") || ($avalue["ne"] == $ne)) && $avalue["s5"] == "1") {
									$selected = ($avalue["id"] == $rs["s2"] || in_array($avalue["id"], multivalues($rs["s2"]))) ? ' selected' : '';
									echo '<option value="' . $avalue["id"] . '" title="' . $avalue["t1"] . '" alt="' . $avalue["t1"] . '" style="color:#6699FF !important"' . $selected . '>- ' . $avalue["t1"] . ' [' . $avalue["ne"][0] . $avalue["id"] . ']</option>';
								}
							}
							echo "</optgroup>";

							// b1 (hcats)
							if ($b1 <> 0) {
								echo "<optgroup label=\"" . ctranslate((isset($t22s[0]) ? $t22s[0] : '') . " Grupları") . "\">";
								foreach ($hcats as $xkey => $xvalue) {
									if ($xvalue["ne"] == "hkategori" || $xvalue["t1"] == "haber") {
										$selected = ($xvalue["id"] == $rs["s2"] || in_array($xvalue["id"], multivalues($rs["s2"]))) ? ' selected' : '';
										echo '<option class="c0" value="' . $xvalue["id"] . '" title="' . $xvalue["item"] . '" style="color:#6699FF"' . $selected . '>+ ' . ctranslate($xvalue["item"]) . ' [' . $xvalue["id"] . ']</option>';
									}
								}
								echo "</optgroup>";
							}

							// g7 (mcats)
							if ($g7 <> 0) {
								echo "<optgroup label=\"" . ctranslate((isset($n8s[0]) ? $n8s[0] : '') . " Grupları") . "\">";
								foreach ($mcats as $xkey => $xvalue) {
									$jscx = json_decode($xvalue["n1"], true);
									if ($xvalue["ne"] == "mkategori" || $xvalue["t1"] == "msayfa") {
										$selected = ($xvalue["id"] == $rs["s2"] || in_array($xvalue["id"], multivalues($rs["s2"]))) ? ' selected' : '';
										echo '<option class="c0" value="' . $xvalue["id"] . '" title="' . $xvalue["item"] . '" style="color:#6699FF"' . $selected . '>+ ' . ctranslate($xvalue["item"]) . ' [' . $xvalue["id"] . ']</option>';
									}
								}
								echo "</optgroup>";
							}

							// xcats (modüller + bağlı kategoriler/sayfalar)
							if (!empty($xcats)) {
								$addedOptions = [];
								foreach ($xcats as $mkey => $mvalue) {
									if ($mvalue["type"] == "xmodule") {
										echo "<optgroup label=\"+ " . ctranslate($mvalue["item"]) . "\">";

										// 1) module -> categories
										foreach ($xcats as $xkey => $xvalue) {
											if ($xvalue["type"] == "category" && $xvalue["t1"] == $mvalue["n2"] && !in_array($xvalue["id"], $addedOptions)) {
												$selected = ($xvalue["id"] == $rs["s2"] || in_array($xvalue["id"], multivalues($rs["s2"]))) ? ' selected' : '';
												echo '<option class="c0" value="' . $xvalue["id"] . '" title="' . $xvalue["item"] . '" style="color:#6699FF"' . $selected . '>- ' . ctranslate($xvalue["item"]) . ' [' . $xvalue["id"] . ']</option>';
												$addedOptions[] = $xvalue["id"];
											}
										}

										// 2) module -> pages
										foreach ($xcats as $pkey => $pvalue) {
											if ($pvalue["type"] == "page" && $pvalue["ne"] == $mvalue["n2"] && !in_array($pvalue["id"], $addedOptions)) {
												$selected = ($pvalue["id"] == $rs["s2"] || in_array($pvalue["id"], multivalues($rs["s2"]))) ? ' selected' : '';
												echo '<option class="c1" value="' . $pvalue["id"] . '" title="' . $pvalue["item"] . '" style="color:#FF6600"' . $selected . '>. ' . ctranslate($pvalue["item"]) . ' [' . $pvalue["id"] . ']</option>';
												$addedOptions[] = $pvalue["id"];
											}
										}

										echo "</optgroup>";
									}
								}
							}

							// a4 (ucats) - hiyerarik (kategori -> alt -> alt2)
							if ($a4 <> 0) {
								echo "<optgroup label=\"" . ctranslate((isset($t24s[0]) ? $t24s[0] : '') . " Grupları") . "\">";
								foreach ($ucats as $xkey => $xvalue) {
									if ($xvalue["ne"] == "ukategori" || ($xvalue["t1"] == "kayit" && $xvalue["s1"] == 0)) {
										$selected = ($xvalue["id"] == $rs["s2"] || in_array($xvalue["id"], multivalues($rs["s2"]))) ? ' selected' : '';
										echo '<option class="c0" value="' . $xvalue["id"] . '" title="' . $xvalue["item"] . '" style="color:#6699FF"' . $selected . '>+ ' . ctranslate($xvalue["item"]) . ' [' . $xvalue["id"] . ']</option>';

										// alt kategoriler
										foreach ($ucats as $ykey => $yvalue) {
											if ((($yvalue["ne"] == "ualt_kategori") && $yvalue["c1"] == $xvalue["id"]) || (($yvalue["t1"] == "kayit" && $yvalue["s1"] == $xvalue["id"]) && $yvalue["s2"] == 0)) {
												$selectedY = ($yvalue["id"] == $rs["s2"] || in_array($yvalue["id"], multivalues($rs["s2"]))) ? ' selected' : '';
												echo '<option class="c1" value="' . $yvalue["id"] . '" title="' . $yvalue["item"] . '" style="color:#6699FF"' . $selectedY . '>- ' . ctranslate($yvalue["item"]) . ' [' . $yvalue["id"] . ']</option>';

												// alt2 kategoriler
												foreach ($ucats as $zkey => $zvalue) {
													if ((($zvalue["ne"] == "ualt2_kategori") && $zvalue["c2"] == $yvalue["id"]) || ($zvalue["t1"] == "kayit" && $zvalue["s2"] == $yvalue["id"] && $zvalue["s3"] == 0)) {
														$selectedZ = ($zvalue["id"] == $rs["s2"] || in_array($zvalue["id"], multivalues($rs["s2"]))) ? ' selected' : '';
														echo '<option class="c2" value="' . $zvalue["id"] . '" title="' . $zvalue["item"] . '" style="color:#6699FF"' . $selectedZ . '>. ' . ctranslate($zvalue["item"]) . ' [' . $zvalue["id"] . ']</option>';
													}
												}
											}
										}
									}
								}
								echo "</optgroup>";
							}
							?>
						</select>

                            </fieldset>
                        <?php }?>
                        <div class="v3-col-md-12" id="inputs" style="padding: 0px;">
                            <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','#inputs'); });
                            jQuery('#s2').on('change', function() { divload('../ajax/ajax_inputs.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"];?>&s2=' + this.value + '','#inputs'); });
                            jQuery('#s3').on('change', function() { divload('../ajax/ajax_inputs.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"];?>&s3=' + this.value + '','#inputs'); });
                        </script>
                        <div class="v3-col-md-12 v3-row">
                            <?php if($f2==1){?>
                                <fieldset class="grey-bg v3-col-md-12">
                                    <legend><?php echo ctranslate("Tavsiye edilenler")?></b> <span style="font-size:8px; color:#ccc;">(n8)</span></legend>
                                    <select name="tavsiye[]" data-placeholder="Seçiniz" multiple="multiple" class="form-control populate" data-plugin-selecttwo="" tabindex="8">
                                        <?php
                                        $tid = explode(',',$rs["n8"]);
                                        $sqlt=mysqli_query($conn, "select * from ".$_SESSION["lang"]." where ne='sayfa' 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 if($teu["n3"]<>""){echo $teu["n3"];}else{echo $teu["t1"];}?></option>
                                        <?php }?>
                                    </select>
                                </fieldset>
                            <?php }?>
                        </div>
                    </div>
                </div>
                <div id="tab-aciklama" class="v8-tabs-content" style="<?php if(($d7==0 and $sislem=="sayfa") or $module["d7_".$_GET["ne"].""]==0){echo "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($d7==1){echo "style='display:none;'";}?>><?php echo ctranslate("Özet")?></a></li>
                        <li><a href="#tab-event" <?php if($_GET["ne"]<>"haber" or $m17<>1){echo "style='display:none;'";}?>><?php echo ctranslate("Etkinlik Detay")?></a></li>
                        <?php
                        if(!empty($n7)){
                            $xt=1;$xtabs = explode(',',$n7); 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($module["page_map_".$_GET["ne"].""]=="1" and $mapi<>""){}else{echo "dn";}?>">Map</a></li>
                            </ul>
                            <div id="tab-adty">
                                <div class="v3-row">
                                    <div class="gs crm_info" data-info="Sayfanın arama motorlarında arandığında, nasıl gözükeceği simülasyonu">
                                        <div class="switch switch-sm switch-success" style="position: absolute; margin-top: 5px; right: 15px;" title="%noindex, nofollow% Arama motorunda indexlenmez">
                                            <input type="checkbox" name="indexno" value="noindex" data-plugin-ios-switch="" <?php if ($jsi["indexno"]<>"") {echo "checked";}?>>
                                        </div>
                                        <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($_GET["ne"][0],$rs["id"]);?>"><?php echo $weburl;?><?php echo linked($_GET["ne"][0],$rs["id"]);?></li>
                                            <li id="gs_title" style="color: #1a0dab; font-size: 18px;"><?php echo meta($_GET["ne"][0],$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>
                                    <fieldset class="crm_info" data-info="Meta tag Arama motoruna ve kullanıcılara sitenizle ilgili açıklama yapma amacıyla kullanılan etiketdir" <?php if(($d7==1 and $sislem=="sayfa") or $module["d7_".$_GET["ne"].""]==1){echo "style='display:none;'";}?>>
                                        <legend><?php echo $sdil[39]; //Başlık?> (<b>Title Extra</b>) <span style="font-size:8px; color:#ccc;">(n3)</span></legend>
                                        <span id="ns3" style="display:none; right: <?php if($mobile==""){?>3<?php }else{?>10<?php }?>%;"><?php echo strlen($rs["n3"])?></span>
                                        <input type="text" list="ln3" id="n3" name="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>
                                    <?php if(($_GET["ne"]=="sayfa" or $_GET["ne"]=="msayfa") and ($d7<>0 and $sislem=="sayfa") or $module["d7_".$_GET["ne"].""]<>0){?>
                                        <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>
                                            <textarea name="n2" id="n2" class="ns2" rows="1" style="width:99%; min-height:50px; border:solid 1px #F00;" data-plugin-maxlength="" maxlength="<?php echo $module["dlmt"];?>" placeholder="<?php echo ctranslate("Kısa Açıklama")?>"><?php echo $rs["n2"];?></textarea>
                                        </fieldset>
                                    <?php }?>
                                    <script>
                                        jQuery('#n3').keyup(function(e){
                                            var n3 = jQuery('#n3').val();
                                            var url = jQuery('#gs_url').attr("data-url");
                                            if(n3!=""){
                                                jQuery('#gs_title').html(n3+' ');
                                                <?php if($module["fseo"]==0){?>
                                                    jQuery('#gs_url').html('<?php echo $weburl;?>?<?php echo $_GET["ne"][0]?><?php echo $_GET["id"]?>/'+cevir(n3).replace(/[_\s]/g, '-')+'');
                                                <?php }elseif($module["fseo"]==2){?>
                                                    jQuery('#gs_url').html('<?php echo $weburl;?>/'+cevir(n3).replace(/[_\s]/g, '-')+'');
                                                <?php }?>
                                            }else{
                                                jQuery('#gs_title').html("<?php echo meta($_GET["ne"][0],$rs["id"]); ?>");
                                                jQuery('#gs_url').html(url);
                                            }
                                        });
                                        jQuery('#n2').keyup(function(e){
                                            var n2 = jQuery('#n2').val();
                                            if(n2!=""){
                                                jQuery('#gs_desc').html(n2);
                                            }else{
                                                jQuery('#gs_desc').html('<?php echo ctranslate("Lütfen kısa açıklama giriniz");?>');
                                            }
                                        });
                                        jQuery('#n5').keyup(function(e){
                                            var n5 = jQuery('#n5').val();
                                            var url = jQuery('#gs_url').attr("data-url");
                                            if(n5!=""){
                                                jQuery('#gs_url').html(n5);
                                            }else{
                                                jQuery('#gs_url').html(url);
                                            }
                                        });
                                    </script>
                                    <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" 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>
                                    </fieldset>
                                    <fieldset class="v3-col-md-8 crm_info" data-info="Bu içerik tıklandığında farklı bir yere yönlendirilecekse kullanılır.">
                                        <legend> <?php echo $sdil[83]; //Link ise?>; <span style="font-size:8px; color:#ccc;">(n5-t6)</span> </legend>
                                        <input type="text" list="ln5" class="form-control" name="n5" id="n5" style="width:70%; float:left;" value="<?php echo $rs["n5"];?>" placeholder="<?php echo ssl("http://www.");?>" autocomplete="off">
                                        <datalist id="ln5" style="display: none;"></datalist>
                                        &nbsp;
                                        <select size="1" name="t6" style="width:24%; float: right;">
                                            <option value="<?php echo $rs["t6"];?>">
                                                <?php if($rs["t6"]==""){echo "Target";}else{echo $rs["t6"];}?>
                                            </option>
                                            <option value="_self" >_self</option>
                                            <option value="_blank" >_blank</option>
                                            <option value="_top" >_top</option>
                                        </select>
                                    </fieldset>
                                    <fieldset class="v3-col-md-4 crm_info" data-info="Standart dışı (page dışında) bir tasarım kullanılmışsa ilgili tasarım dosyaası yolu">
                                        <div class="switch switch-sm switch-success" style="position: absolute; top: -33px; right: 10px;" title="Alt sayfalarda bu tasarımı kullan özelliği">
                                            <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="" autocomplete="off">
												<datalist id="lidesign">
												<?php
												$excludeFiles = ['footer', 'header', 'index', 'func', 'map', 'meta', 'script', 'sql'];
												$fileList = glob('../../../view/*.php'); $s = 0;
												foreach ($fileList as $file) {
													$filename = basename($file, '.php');
													if (!in_array($filename, $excludeFiles)) {
														$s++;
														?>
														<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>
                                    <div id="tab-dty0" <?php if(($d7==1 and $sislem=="sayfa") or $module["d7_".$_GET["ne"].""]==1){echo "style='display:none;'";}?>>
                                        <fieldset class="">
                                            <legend><?php echo ctranslate("Ö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 id="tab-event" <?php if($_GET["ne"]<>"haber"){echo "style='display:none;'";}?>>
                                        <fieldset class="v3-col-md-3" style="">
                                            <legend> <?php echo ctranslate("Etkinlik Tarihi")?> <span style="font-size:8px; color:#ccc;">(t4)</span></legend>
                                            <div class="row">
                                                <div class="col-md-8">
                                                    <input type="date" class="form-control" name="t4" value="<?php echo $rs["t4"]?>">
                                                </div>
                                                <div class="col-md-4">
                                                    <input type="time" class="form-control" name="t2" value="<?php echo $rs["t2"]?>">
                                                </div>
                                            </div>
                                        </fieldset>
                                        <fieldset class="v3-col-md-3" style="">
                                            <legend> <?php echo ctranslate("Bitiş Tarihi")?> <span style="font-size:8px; color:#ccc;">(t9)</span></legend>
                                            <div class="row">
                                                <div class="col-md-8">
                                                    <input type="date" class="form-control" name="t9" value="<?php echo $rs["t9"]?>">
                                                </div>
                                                <div class="col-md-4">
                                                    <input type="time" class="form-control" name="it2" value="<?php echo $jsi["it2"]?>">
                                                </div>
                                            </div>
                                        </fieldset>
                                        <fieldset class="v3-col-md-3" style="">
                                            <legend> <?php echo ctranslate("Tekrar")?> <span style="font-size:8px; color:#ccc;">(s3)</span></legend>
                                            <select name="s3" class="v3-form-control" style="">
                                                <option value="0" <?php if($rs["s3"]==0){?>selected<?php }?>><?php echo $sdil[69]; //Tekrar Seçiniz?></option>
                                                <option value="1" <?php if($rs["s3"]==1){?>selected<?php }?>><?php echo $sdil[70]; //Aylık?></option>
                                                <option value="2" <?php if($rs["s3"]==2){?>selected<?php }?>><?php echo $sdil[71]; //Yıllık?></option>
                                            </select>
                                        </fieldset>
                                        <fieldset class="v3-col-md-3" style="">
                                            <legend> <?php echo ctranslate("Etkinlik Alanı")?> <span style="font-size:8px; color:#ccc;">(ievent_location)</span></legend>
                                            <div class="row">
                                                <div class="col-md-12">
                                                    <input type="text" class="form-control" name="ievent_location" value="<?php echo $jsi["ievent_location"]?>">
                                                </div>
                                            </div>
                                        </fieldset>
                                        <fieldset class="grey-bg v3-col-md-3">
                                            <legend> <?php echo $sdil[85]; //Satış Fiyat?></legend>
                                            <div class="v3-col-md-8 v3-col-xs-4 pd0">
                                                <input type="text" class="form-control digi fs16" name="ievent_price"  value="<?php echo wprice($jsi["ievent_price"]);?>" 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="ievent_currency" class="form-control">
                                                    <option value="TRY" <?php if($jsi["ievent_currency"]=="TRY" or ($jsi["ievent_currency"]=="" and trim($module["currency"])=="TRY")) {?>Selected<?php }?>>TRY</option>
                                                    <option value="EUR" <?php if($jsi["ievent_currency"]=="EUR" or ($jsi["ievent_currency"]=="" and trim($module["currency"])=="EUR")) {?>Selected<?php }?>>EUR</option>
                                                    <option value="USD" <?php if($jsi["ievent_currency"]=="USD" or ($jsi["ievent_currency"]=="" and trim($module["currency"])=="USD")) {?>Selected<?php }?>>USD</option>
                                                    <option value="GBP" <?php if($jsi["ievent_currency"]=="GBP" or ($jsi["ievent_currency"]=="" and trim($module["currency"])=="GBP")) {?>Selected<?php }?>>GBP</option>
                                                </select>
                                            </div>
                                        </fieldset>
                                        <fieldset class="v3-col-md-12" style="<?php if($module["point"]<>1){echo "display:none;";}?>">
                                            <legend> <?php echo ctranslate("Etkinlik Puan")?></legend>
                                            <div class="row">
                                                <div class="col-md-3">
                                                    <input type="number" class="form-control tar" name="ievent_point" value="<?php echo $jsi["ievent_point"]?>" placeholder="<?php echo ctranslate("Etkinlik Puan")?>">
                                                    <p>* <?php echo ctranslate("Etkinlik Puan")?></p>
                                                </div>
                                                <div class="col-md-3">
                                                    <input type="number" class="form-control tar" name="ievent_time" value="<?php echo $jsi["ievent_time"]?>" placeholder="<?php echo ctranslate("Etkinlik Süresi")?>">
                                                    <p style="bottom: -20px;">* <?php echo ctranslate("Etkinlik Süresi")?></p>
                                                </div>
                                                <div class="col-md-3">
                                                    <div class="row">
                                                        <div class="col-md-6">
                                                            <input type="number" class="form-control tar" name="ievent_ftime" value="<?php echo $jsi["ievent_ftime"]?>" placeholder="<?php echo ctranslate("Dk Önce")?>">
                                                            <p style="bottom: -20px;">* <?php echo ctranslate("Dk Önce")?></p>
                                                        </div>
                                                        <div class="col-md-6">
                                                            <input type="number" class="form-control tar" name="ievent_ltime" value="<?php echo $jsi["ievent_ltime"]?>" placeholder="<?php echo ctranslate("Dk Sonra")?>">
                                                            <p style="bottom: -20px;">* <?php echo ctranslate("Dk Sonra")?></p>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-3">
                                                    <select name="ievent_point_type" class="v3-form-control" style="">
                                                        <option value="1" <?php if($rs["ievent_point_type"]==1){?>selected<?php }?>><?php echo ctranslate("Tek Puan")?></option>
                                                        <option value="2" <?php if($rs["ievent_point_type"]==2){?>selected<?php }?>><?php echo ctranslate("Dakika Bazlı %")?></option>
                                                    </select>
                                                    <p style="bottom: -20px;">* <?php echo ctranslate("Puan Type")?></p>
                                                </div>
                                            </div>
                                        </fieldset>
                                    </div>
                                    <div id="tab-dty1" class="<?php if($module["page_map_".$_GET["ne"].""]=="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>
                                            <div class="alert-warning">Adresiniz (mahalle, sokak ve numara), Haritadaki adresinizi kontrol ediniz. Doğru değilse haritayı veya işaretçiyi sürükleyerek ayarlayınız</div>
                                            <?php include("modules/public/gmap.php");?>
                                        </fieldset>
                                    </div>
                                    <?php
                                    if(!empty($n7)){
                                        $xc = 1;$xcontents = explode(',',$n7); 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>
                                    </form>
					<?php if ( (($d1 <> 0 and $sislem == "sayfa") or $module["d1_" . $_GET["ne"]] <> 0) or (($d2 <> 0 and $sislem == "sayfa") or $module["d2_" . $_GET["ne"]] <> 0) or (($d3 <> 0 and $sislem == "sayfa") or $module["d3_" . $_GET["ne"]] <> 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(($d1<>0 and $sislem=="sayfa") or $module["d1_".$_GET["ne"].""]<>0){?><li><a href="#tab-image" onclick="loadFunction('../ajax/ajax_medya.php','#mresim', 'resim');"><?php echo $sdil[209]; //Resimler?></a></li><?php }?>
	                            <?php if(($d2<>0 and $sislem=="sayfa") or $module["d2_".$_GET["ne"].""]<>0){?><li><a href="#tab-videos" onclick="loadFunction('../ajax/ajax_medya.php','#mvideo', 'video');"><?php echo $sdil[210]; //Videolar?></a></li><?php }?>
	                            <?php if(($d3<>0 and $sislem=="sayfa") or $module["d3_".$_GET["ne"].""]<>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(($d1<>0 and $sislem=="sayfa") or $module["d1_".$_GET["ne"].""]<>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(($d2<>0 and $sislem=="sayfa") or $module["d2_".$_GET["ne"].""]<>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(($d3<>0 and $sislem=="sayfa") or $module["d3_".$_GET["ne"].""]<>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["d6_".$_GET["ne"].""]=="1"){?>
                                        <div id="tab-extra" class="v8-tabs-content" style="min-height:500px; position:relative; overflow: auto;">
                                            <script type="text/JavaScript" language="JavaScript">
                                                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_".$_GET["ne"].""]=="1"){?>
                                        <div id="tab-isayfa" class="v8-tabs-content">
                                            <div class="v3-row">
                                                <?php include('page_sub.php');?>
                                            </div>
                                        </div>
                                    <?php }?>
                                </div>
                            </div>
                        </div>
                    </div>
                    <?php echo $footer?>
                </body>
<script>
jQuery( document ).ready(function(){
	<?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('#tab-extra').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>
                <?php
//-------------------------------------------------------------------------/İşlem Ekle/
			if($_GET["durum"] == "kaydet" or $_GET["durum"] == "ykaydet"){
				if($_POST["ievent_point"]<>""){
				//$Rsp = mysqli_query($conn, "delete from genel where ne='point' and s1=".$_GET["id"]);
				//$sqlp = $conn->query("insert into genel(t1,t2,n1,ne,pb1,pb2,s1,s2,s3) VALUES ('".$_POST["ievent_point"]."', 'event:".$_GET["id"]."', '".addslashes(stripslashes($_POST["t1"]))."', 'point', '".$_POST["ievent_ftime"]."', '".$_POST["ievent_ltime"]."', '".$_GET["id"]."', '0', '".$_POST["ievent_point_type"]."')");
				}
				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["s1"])){$ss1=$_POST["s1"];}else{$ss1="0";}
				if (is_array($_POST["ss2"]) && count($_POST["ss2"]) === 1) {
            $ss2 = $_POST["ss2"][0]; // Tek bir değer
        } else {
            $ss2 = implode(',', array_map(function($value) { return "{" . $value . "}"; }, $_POST["ss2"])); // Çoklu değerler
        }
        if(!empty($_POST["ss3"])){$ss3 = implode(',',$_POST["ss3"]);}else{$ss3="0";}
        if(!empty($_POST["ss4"])){$ss4 = implode(',',$_POST["ss4"]);}else{$ss4="0";}
        $sn8 = implode(',',$_POST["tavsiye"]);
        if(!empty($_POST["s5"])){$ss5=$_POST["s5"];}else{$ss5="0";}
        if(!empty($_POST["s6"])){$ss6=$_POST["s6"];}else{$ss6="0";}
        if(!empty($_POST["s7"])){$ss7=$_POST["s7"];}else{$ss7="0";}
        if(!empty($_POST["s8"])){$ss8=$_POST["s8"];}else{$ss8="0";}
        if(!empty($_POST["s9"])){$ss9=$_POST["s9"];}else{$ss9="0";}
        if(!empty($_POST["s10"])){$ss10=$_POST["s10"];}else{$ss10="0";}
        if(!empty($_POST["s11"])){$ss11=$_POST["s11"];}else{$ss11="0";}
        if(!empty($_POST["s12"])){$ss12=$_POST["s12"];}else{$ss12="0";}
        if(!empty($_POST["s13"])){$ss13=$_POST["s13"];}else{$ss13="0";}
        if(!empty($_POST["s14"])){$ss14=$_POST["s14"];}else{$ss14="0";}
        if(!empty($_POST["s15"])){$ss15=$_POST["s15"];}else{$ss15="0";}
        if(!empty($_POST["s16"])){$ss16=$_POST["s16"];}else{$ss16="0";}
        if(!empty($_POST["s17"])){$ss17=$_POST["s17"];}else{$ss17="0";}
        if(!empty($_POST["s18"])){$ss18=$_POST["s18"];}else{$ss18="0";}
        $ss19 = implode(',', array_map(function($value) {return "{".$value."}";}, $_POST["ss19"]));
        if(!empty($_POST["s20"])){$ss20=$_POST["s20"];}else{$ss20="0";}
        if(!empty($_POST["pb1"])){$spb1=$_POST["pb1"];}else{$spb1="0";}
        if(!empty($_POST["pb2"])){$spb2=$_POST["pb2"];}else{$spb2="0";}
        if(!empty($_POST["ts3"])){$ts3=$_POST["ts3"];}else{$ts3="0000-00-00 00:00:00";}
        $iarr = array();
        foreach ($_POST as $key => $value){
            if(substr($key,0,1)=="i"){
                $iarr = $iarr + array( $key => $value);
            }
        }
        $larr = array(
            "ulke" => $_POST["ulke"],
            "sehir" => $_POST["sehir"],
            "ilce" => $_POST["ilce"],
            "semt" => $_POST["semt"],
            "koordinat" => $_POST["mkoordinat"],
            "adres" => $_POST["madres"]
        );
        $marr = array();
        foreach ($_POST as $key => $value){
            if(substr($key,0,1)=="m"){
                $marr = $marr + array( $key => $value);
            }
        }
        $aarr = array();
        foreach ($_POST as $key => $value){
            if(substr($key,0,1)=="a"){
                $aarr = $aarr + array( $key => $value);
            }
        }
        $rjsi = json_encode($iarr, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_NUMERIC_CHECK);
        $rjsl = json_encode($larr, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_NUMERIC_CHECK);
        $rjsm = json_encode($marr, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_NUMERIC_CHECK);
        $rjsa = json_encode($aarr, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_NUMERIC_CHECK);
        $Sql = mysqli_query($conn, "update ".$_SESSION['lang']." set t1='".addslashes(stripslashes(trim($_POST["t1"])))."', t3='".$_POST["t3"]."', t5='".$_POST["t5"]."', t6='".$_POST["t6"]."', t7='".$_POST["t7"]."', t8='".$_POST["t8"]."', n1='".addslashes(stripslashes($_POST["n1"]))."', n2='".addslashes(stripslashes($_POST["n2"]))."', n3='".addslashes(stripslashes($_POST["n3"]))."', n4='".addslashes(stripslashes($_POST["n4"]))."', n5='".$_POST["n5"]."', n9='".addslashes(stripslashes($_POST["n9"]))."', n10='".$_POST["n10"]."', n11='".$_POST["n11"]."', n12='".$_POST["n12"]."', n13='".$_POST["n13"]."', n14='".$_POST["n14"]."', n15='".$_POST["n15"]."', n16='".addslashes(stripslashes($rjsl))."', n17='".addslashes(stripslashes($rjsi))."', ts2=now() where id=".$_GET["id"]."");
        $st1="".trim($sdil[200])." ".trim($nedir)."";
        for ($l = 1; $l <= $lx; $l++) {
            $Sql = mysqli_query($conn, "update lang".$l." set ne='".$_POST["ne"]."', t1=REPLACE(t1,'".$st1."','".addslashes(stripslashes(trim($_POST["t1"])))."'), t2='".$_POST["t2"]."', t4='".$_POST["t4"]."', t9='".$_POST["t9"]."', m1='".addslashes(stripslashes($rjsm))."', m2='".addslashes(stripslashes($rjsa))."', s1='".$ss1."', s2='".$ss2."', s3='".$ss3."', s5='".$ss5."', s6='".$ss6."', s7='".$ss7."', s13='".$ss13."', s16='".$ss16."', s17='".$ss17."', s18='".$ss18."', s19='".$ss19."', n8='".$sn8."', ts3='".$ts3."' where id=".$_GET["id"]."");
            if($_POST["id"]<>$_GET["id"]){
                $Sql = mysqli_query($conn, "update lang".$l." set id='".$_POST["id"]."' where id=".$_GET["id"]."");
            }
        }
        if($_GET["durum"]=="ykaydet"){
            echo location("?ne=".$_GET["ne"]."&islem=sayfa&durum=ysayfa",self,500,1);
        }else{
            echo location("?ne=".$_GET["ne"]."&islem=".$_GET["islem"]."&id=".$_GET["id"]."&durum=ok",self,500,1);
        }
    }
	include("../public/log.php");
    ?>
    </html>