<?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 t5 where (id='".$_GET["id"]."' or id='".Guid2ID($_GET["id"])."')"); $rs=mysqli_fetch_assoc($sql);
$jsa = json_decode($rs["n8"], true); $jsl = json_decode($rs["n16"], true); $jsi = json_decode($rs["n17"], true); $jsm = json_decode($rs["n18"], true); $jsn18=$rs["n18"];
$jsy = json_decode($rs["n10"], true);
$ccats = json_decode(GetArr("k","categories"), true);
$users = json_decode(GetArr("","users","(s9=1 or s1=1)"), true);
//sNotification('Başlık', "Açıklama", "App", $_GET["id"]);
include("../upload/upload_image_drag.php");
?>
<!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 ctranslate($t25s[0]." İşlemleri");?></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($h1<>0){?>
                    <button type="button" class="btn btn-success mfrm" data-toggle="modal" data-target="#myModal" data-width="50%" onclick="location.href='#&tab-multimedia'" 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($h8==1 or $h8==3){?>
                    <button type="button" class="btn btn-danger mfrm" data-toggle="modal" data-target="#myModal" data-width="50%" onclick="location.href='#&tab-multimedia&tab-videos'" 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($h6<>0){?>
                    <button type="button" class="btn btn-warning mfrm" data-toggle="modal" data-target="#myModal" data-width="50%" onclick="location.href='#&tab-multimedia&tab-files'" 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="far fa-file-pdf"></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["y1_uyeler"]<>0)){?>
                    <button type="button" class="btn btn-warning mfrm" data-toggle="modal" data-width="50%" data-target="#myModal" data-url="../public/add.php?ne=uye&islem=uyeler" data-title="<?php echo ctranslate("Yeni ".$t25s[0]."");?>"><i class="fa fa-plus" aria-hidden="true"></i></button>
                <?php }?>
					<?php $sqlx=mysqli_query($conn, "select id,t1 from ".$_SESSION["lang"]." where ne='client_project' and s13=1 $xmod order by t1 asc"); ?>
					<?php if(mysqli_num_rows($sqlx)<>0){?>
					<?php if($_GET["ProjeID"]<>"" and $_GET["ProjeID"]>0 and $_GET["ProjeID"]<>$_SESSION["ProjeID"]){$_SESSION["ProjeID"]=$_GET["ProjeID"];}elseif($_GET["ProjeID"]=="0"){$_SESSION["ProjeID"]="";}?>
					<div class="btn-group flex-wrap" style="margin-left:10px;" title="<?php echo translate("+Projeler")?>">
						<button data-toggle="dropdown" class="btn btn-warning" type="button" aria-expanded="false">
						<i class="fas fa-project-diagram"></i>
						</button>
						<div class="dropdown-menu dropdown-menu-right" x-placement="top-end" style="">
						<?php if($_SESSION["kim"]<>"yonetici"){?>
							<a class="dropdown-item btn btn-info" href="?ne=<?php echo $_GET["ne"]?>&islem=<?php echo $_GET["islem"]?>&id=<?php echo $_GET["id"]?>&ProjeID=0" title=""><i class="fa fa-eye" aria-hidden="true"></i> <span class=""> Tümü</span></a>
						<?php }?>
						<?php while($rsx=mysqli_fetch_assoc($sqlx)){?>
							<a class="dropdown-item btn btn-<?php if($_SESSION["ProjeID"]==$rsx["id"]){echo "success";}else{echo "warning";}?>" href="?ne=<?php echo $_GET["ne"]?>&islem=<?php echo $_GET["islem"]?>&id=<?php echo $_GET["id"]?>&ProjeID=<?php echo $rsx["id"]?>" title=""><i class="fa fa-angle-right" aria-hidden="true"></i> <span class=""> <?php echo $rsx["t1"]?></span></a>
						<?php }?>
						</div>
					</div>
					<?php }?>
                <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="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" 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=hclient" target="_blank" class="with-tip"><i class="fa fa-cog" aria-hidden="true"></i> <span class=""> <?php echo translate("+Ayarlar")?></span></a>
                        <?php }?>
                        <?php if($e6==6 or $e6==5){?>
                            <a class="dropdown-item btn btn-warning" href="?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"]; ?>&durum=klonla" class="with-tip"><i class="fa fa-files-o" aria-hidden="true"></i> <span class=""> <?php echo translate("+Klonla")?></span></a>
                        <?php }?>
                        <?php
                        if($g3>0){
                            if($rs["t2"]<>""){$luser=$rs["t2"];}elseif($rs["t4"]<>""){$luser=v3e($rs["t4"]);}else{$luser=v3e($rs["t14"]);}
                            $upanel=$module["payment_url"]."/account";
                            ?>
                            <a class="dropdown-item btn btn-warning" onclick="window.open('<?php echo $upanel;?>/ajax.php?login=<?php echo $luser.",".$rs["t3"];?>')"><i class="far fa-credit-card"></i> <span class=""> <?php echo translate("+E-Tahsilat")?></span></a>
                        <?php }?>
                        <?php
                        if(is_dir("../../../account") or $module["client_panel_url"]<>""){
                            if($rs["t2"]<>""){$luser=$rs["t2"];}elseif($rs["t4"]<>""){$luser=v3e($rs["t4"]);}else{$luser=v3e($rs["t14"]);}
                            if($module["client_panel_url"]<>""){$upanel=$module["client_panel_url"]."/account";}else{$upanel="".$weburl."/account";}
                            ?>
                            <a class="dropdown-item btn btn-warning" onclick="window.open('<?php echo $upanel;?>/ajax.php?login=<?php echo $luser.",".$rs["t3"];?>')" title="Login"><i class="fa fa-sign-in" aria-hidden="true"></i> <span class=""> <?php echo translate("+Giriş")?></span></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" autocomplete="false">
                <!-- 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" aria-hidden="true"></i> <span> <?php echo $sdil[207]; //Detay?></span></a></li>
                            <?php if($h2<>0 or $h9<>0){?>
                                <li><a href="#tab-aciklama"><i class="fa fa-file" aria-hidden="true"></i> <span> <?php echo $sdil[207]; //Detay?> / <?php echo $sdil[208]; //Seo?></span></a></li>
                            <?php }?>
                            <?php if($h1<>0 or $h8<>0 or $h6<>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($h7<>0){?>
                                <li><a href="#tab-extra" onclick="loadFunction('../ajax/ajax_extra.php','#iextra', 'extra');"><i class="fa fa-list-ul"></i> <span> <?php echo $module["madde_uye"]?></span></a></li>
                            <?php }?>
                            <?php if(($_SESSION["kim"]=="Admin" or ($_SESSION["kim"]=="yonetici" and $_SESSION["y1_hesap"]==1))){?>
                                <?php if($e8<>0){?>
                                    <!--<li><a href="#" class="mfrm" data-toggle="modal" data-width="95%" data-target="#myModal" data-url="../clients/client_current.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"]; ?>"><i class="fa fa-calculator" aria-hidden="true"></i><span> <?php echo $sdil[223] //Hesap?></span></a></li>-->
                                    <li><a href="#tab-cari" onclick="loadFunction('../clients/ajax_client_current.php','#icari', '');"><i class="fa fa-calculator" aria-hidden="true"></i><span> <?php echo $sdil[223] //Hesap?></span></a></li>
                                <?php }?>
                            <?php }?>
                            <?php if(($_SESSION["kim"]=="Admin" or ($_SESSION["kim"]=="yonetici" and $_SESSION["y1_hizmet"]==1))){?>
                                <?php if($g5<>0){?>
                                    <!--<li><a href="#" class="mfrm" data-toggle="modal" data-width="95%" data-target="#myModal" data-url="../clients/ajax_client_service.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"]; ?>"><i class="fa fa-calendar" aria-hidden="true"></i><span> <?php echo $sdil[167] //Hizmet?></span></a></li>-->
                                    <li><a href="#tab-hizmet" onclick="loadFunction('../clients/ajax_client_service.php','#ihizmet', '');"><i class="fa fa-calendar" aria-hidden="true"></i> <span> <?php echo translate("Hesap Planı")?></span></a></li>
                                <?php }?>
                            <?php }?>
                            <?php if(($_SESSION["kim"]=="Admin" or ($_SESSION["kim"]=="yonetici" and $_SESSION["y2_siparis"]==1))){?>
                                <?php if(($jsi["ictip"]<>"personel" and $jsi["ictip"]<>"yonetici") and $m16==1){?>
                                    <li><a href="#" class="mfrm" data-toggle="modal" data-width="95%" data-target="#myModal" data-title="<?php echo ctranslate("Sipariş(ler)")?>" data-url="../clients/client_orders.php?id=<?php echo $_GET["id"]; ?>"><i class="fas fa-dumpster" aria-hidden="true"></i> <span> <?php echo ctranslate("Sipariş(ler)")?></span></a></li>
                                    <li><a href="#" class="mfrm" data-toggle="modal" data-width="95%" data-target="#myModal" data-title="<?php echo ctranslate("Sepet")?>" data-url="../clients/client_basket.php?id=<?php echo $_GET["id"]; ?>"><i class="fa fa-shopping-basket" aria-hidden="true"></i> <span> <?php echo ctranslate("Sepet")?></span></a></li>
                                <?php }?>
                            <?php }?>
                            <?php if($module["request"]==1 and ($_SESSION["kim"]=="Admin" or ($_SESSION["kim"]=="yonetici" and $_SESSION["y17"]<>0))){?>
                                <?php if($module["request"]==1){?>
                                    <li><a href="#" class="mfrm" data-toggle="modal" data-width="95%" data-target="#myModal" data-title="<?php echo telefon($module["requests"]);?>" data-url="../clients/client_requests.php?islem=request&id=<?php echo $_GET["id"]; ?>"><i class="fa-solid fa-receipt" aria-hidden="true"></i> <span> <?php echo telefon($module["requests"]);?></span></a></li>
                                <?php }?>
                            <?php }?>
                            <?php if(($_SESSION["kim"]=="Admin" or ($_SESSION["kim"]=="yonetici" and $_SESSION["y1_iliski"]==1))){?>
                                <?php if($module["uye_relations"]=="1"){?>
                                    <li><a href="#" class="mfrm" data-toggle="modal" data-width="95%" data-target="#myModal" data-title="<?php echo $t25s[0];?> <?php echo ctranslate("İlişkileri")?>" data-url="../clients/client_relation.php?id=<?php echo $_GET["id"]; ?>"><i class="fas fa-exchange-alt" aria-hidden="true"></i> <span> <?php echo $t25s[0];?> <?php echo ctranslate("İlişkileri")?></span></a></li>
                                <?php }?>
                            <?php }?>
                            <?php if($g9<>0 and (($_SESSION["kim"]=="Admin") or ($_SESSION["kim"]=="yonetici" and $_SESSION["y8_teklifler"]<>0))){?>
                                <li><a href="#tab-services"><i class="fa fa-wand-magic-sparkles" aria-hidden="true"></i> <span> <?php echo $t36; //Servis?></span></a></li>
                            <?php }?>
                            <?php if(($_SESSION["kim"]=="Admin" or ($_SESSION["kim"]=="yonetici" and $_SESSION["y2_etahsilat"]==1))){?>
                                <?php if($g3==1){?>
                                    <li><a href="#" class="mfrm" data-toggle="modal" data-width="95%" data-target="#myModal" data-title="<?php echo ctranslate("E-Tahsilat")?>" data-url="../clients/client_payments.php?id=<?php echo $_GET["id"]; ?>"><i class="fa fa-credit-card" aria-hidden="true"></i> <span> <?php echo ctranslate("E-Tahsilat")?></span></a></li>
                                <?php }?>
                            <?php }?>
                            <?php if($h5=="1"){?>
                                <li><a href="#" class="mfrm" data-toggle="modal" data-width="95%" data-target="#myModal" data-title="<?php echo ctranslate("Adres(ler)")?>" data-url="../../../account/account_adress_pop.php?uid=<?php echo $_GET["id"]; ?>"><i class="fa fa-home" aria-hidden="true"></i> <span> <?php echo ctranslate("Adres(ler)")?></span></a></li>
                            <?php }?>
                            <?php if($module["uye_bankinfo"]=="1"){?>
                                <li><a href="#tab-bankinfo"><i class="fa fa-university" aria-hidden="true"></i> <span> <?php echo ctranslate("Banka Bilgileri")?></span></a></li>
                            <?php }?>
                            <?php if(($jsi["ictip"]<>"personel" and $jsi["ictip"]<>"yonetici") and $h3=="1"){?>
                                <!--<li><a href="#tab-ads"><i class="fa fa-cubes" aria-hidden="true"></i><span> <?php echo $t24;?></span></a></li>-->
                                <li><a href="#" class="mfrm" data-toggle="modal" data-width="95%" data-target="#myModal" data-title="<?php echo $t24;?>" data-url="../clients/client_ads.php?id=<?php echo $_GET["id"]; ?>"><i class="fas fa-cubes" aria-hidden="true"></i> <span> <?php echo $t24;?></span></a></li>
                            <?php }?>
                            <?php if($jsi["ictip"]=="personel" or $jsi["ictip"]=="yonetici"){?>
                                <li><a href="#tab-hrs"><i class="fas fa-user-tag" aria-hidden="true"></i><span> <?php echo ctranslate("İnsan Kaynakları")?></span></a></li>
                            <?php }?>
                            <?php if($module["muhasebe_fatura"]=="1" and ($_SESSION["kim"]=="Admin" or ($_SESSION["kim"]=="yonetici" and $_SESSION["y8_faturalar"]==1))){?>
                                <li><a href="#" class="mfrm" data-toggle="modal" data-width="95%" data-target="#myModal" data-title="<?php echo ctranslate("Faturalar")?>" data-url="../clients/client_invoices.php?id=<?php echo $_GET["id"]; ?>"><i class="fas fa-file-invoice-dollar" aria-hidden="true"></i> <span> <?php echo ctranslate("Faturalar")?></span></a></li>
                            <?php }?>
                            <?php if($module["point"]=="1"){?>
                                <li><a href="#" class="mfrm" data-toggle="modal" data-width="95%" data-target="#myModal" data-title="<?php echo ctranslate("Hediye Kartı")?>" data-url="../clients/client_giftcard.php?id=<?php echo $_GET["id"]; ?>"><i class="fa fa-gift" aria-hidden="true"></i> <span> <?php echo ctranslate("Hediye Kartı")?></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>
                            <fieldset class="grey-bg" style="">
                                <legend><i class="fa fa-power-off"></i> <?php echo ctranslate("Aktif/Pasif")?> <span style="font-size:8px; color:#ccc;">(s4)</span></legend>
                                <select size=1 name="s4" style="width:160px;" class="form-control">
                                    <option value="0" <?php if ($rs["s4"]==0){?>Selected<?php }?>><?php echo ctranslate("#Pasif")?></option>
                                    <option value="1" <?php if ($rs["s4"]==1){?>Selected<?php }?>><?php echo ctranslate("#Aktif")?></option>
                                    <option value="2" <?php if ($rs["s4"]==2){?>Selected<?php }?>><?php echo ctranslate("#İptal")?></option>
                                </select>
                            </fieldset>
                            <fieldset class="grey-bg">
                                <legend><i class="fa fa-check-square"></i> <?php echo ctranslate("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>
                            <fieldset class="grey-bg dn">
                                <legend><i class="fa fa-check-square"></i> <?php echo ctranslate("Seçili")?> <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 <?php if($module["gender"]<>1){?>dn<?php }?>">
                                <legend><i class="fa fa-user"></i> <?php echo ctranslate("Cinsiyet")?> <span style="font-size:8px; color:#ccc;">(t8)</span></legend>
                                <label for="t8_erkek" style="float:left; width:50%">
                                    <input type="radio" id="t8_erkek" value="Erkek" <?php if($rs["t8"]=="Erkek") {?>checked<?php }?> name="t8" title="Erkek" class="with-tip">
                                    <?php echo $sdil[91]; //Erkek?>
                                </label>
                                <label for="t8_kadin" style="float:right; width:50%">
                                    <input type="radio" id="t8_kadin" value="Kadın" <?php if($rs["t8"]=="Kadın") {?>checked<?php }?> name="t8" title="Kadın" class="with-tip">
                                    <?php echo $sdil[92]; //Kadın?>
                                </label>
                            </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 e <?php if($module["uye_editor"]<>1){?>dn<?php }?>" style="position:relative;">
                                <legend><i class="fa fa-expeditedssl"></i> Editör <span style="font-size:8px; color:#ccc;">(s1)</span></legend>
                                <input type="checkbox" name="s1" value="1" class="xl" <?php echo ($rs["s1"] == 1) ? 'checked' : ''; ?>>
                                <script>
                                    jQuery('select[name="s1"]').change(function() {
									var selectedValue = jQuery(this).val();
											if (selectedValue == '1') {  // Eğer seçilen değer 1 ise
												show('authority'); show('login');
											} else {  // Seçilen değer 0 ise
												hide('authority'); hide('login');
											}
										});
									</script>
                                    </fieldset>
                                    <?php if($module["point"]=="1"){?>
                                        <fieldset class="grey-bg" style="position:relative;">
                                            <legend><i class="fa fa-gift"></i> Puan</legend>
                                            <?php echo wcount(getpoint($_GET["id"],"",""));?> Puan</br>
                                            <?php echo dtarih(getcard('Date',$_GET["id"]),"aa yy");?>
                                        </fieldset>
                                    <?php }?>
                                    <?php if($g3==1){?>
                                        <fieldset class="grey-bg" style="">
                                            <legend><i class="fa fa-list" aria-hidden="true"></i> Taksit Set <span style="font-size:8px; color:#ccc;">(s6)</span></legend>
                                            <select size=1 name="s6" style="width:160px;" data-plugin-selecttwo="" class="form-control populate">
                                                <option value="0">Taksit Set</option>
                                                <?php $sql=mysqli_query($conn, "select * from genel where ne='tset'"); while($rsm=mysqli_fetch_assoc($sql)){?>
                                                    <option value="<?php echo $rsm["id"];?>" title="<?php if($rsm["t1"]==""){?>Set-<?php echo $rsm["id"]?><?php }else{?><?php echo $rsm["t1"]?><?php }?>" alt="<?php if($rsm["t1"]==""){?>Set-<?php echo $rsm["id"]?><?php }else{?><?php echo $rsm["t1"]?><?php }?>" style="color:#6699FF" <?php if ($rsm["id"]==$rs["s6"]) {?>Selected<?php }?>><?php if($rsm["t1"]==""){?>Set-<?php echo $rsm["id"]?><?php }else{?><?php echo $rsm["t1"]?><?php }?></option>
                                                <?php }?>
                                            </select>
                                        </fieldset>
                                    <?php }?>
                                    <fieldset class="grey-bg" style="<?php if($module["paket"]==0){?>display:none;<?php }?>">
                                        <legend><i class="fa fa-list" aria-hidden="true"></i> <?php echo $package?><span style="font-size:8px; color:#ccc;">(s8)</span></legend>
                                        <select size=1 name="s8" style="width:160px;" data-plugin-selecttwo="" class="form-control populate">
                                            <option value="0"><?php echo $package?></option>
                                            <?php $sqlp=mysqli_query($conn, "select * from ".$_SESSION["lang"]." where ne='paket'"); while($rsp=mysqli_fetch_assoc($sqlp)){?>
                                                <option value="<?php echo $rsp["id"];?>" title="" alt="" style="color:#6699FF" <?php if ($rsp["id"]==$rs["s8"]) {?>Selected<?php }?>><?php echo $rsp["t1"]?></option>
                                            <?php }?>
                                        </select>
                                        <input type="date" class="v3-form-control" name="t11" value="<?php echo $rs["t11"]?>">
                                    </fieldset>
                                    <fieldset class="grey-bg <?php if($h4>0){}else{?>dn<?php }?>">
                                        <legend><i class="fa fa-list" aria-hidden="true"></i> <?php echo $t25s[0]?> <?php echo ctranslate("Grup")?> <span style="font-size:8px; color:#ccc;">(s2)</span></legend>
                                        <select size="1" name="s2" id="ss2" class="form-control chosen-select">
                                            <option value="0"><?php echo $sdil[221]; //Lütfen Seçiniz?></option>
                                            <?php
                                            foreach($ccats as $xkey=>$xvalue){$jscx = json_decode($xvalue["n1"],true);
                                            if(($xvalue["ne"]=="kkategori") or ($xvalue["t1"]=="".$_GET["ne"]."")){
                                                ?>
                                                <option class="c0" value="<?php echo $xvalue["id"];?>" title="<?php echo $xvalue["item"];?>" style="color:#6699FF" <?php if($rs["s2"]==$xvalue["id"]){echo "selected";}?>>+ <?php echo ctranslate($xvalue["item"]);?> [<?php echo $xvalue["id"];?>]</option>
                                            <?php }}?>
                                            <?php foreach($users as $xkey=>$xvalue){ ?>
                                                <option class="c1" value="<?php echo $xvalue["id"];?>" title="<?php echo $xvalue["item"];?>" style="color:#6699FF" <?php if($rs["s2"]==$xvalue["id"]){echo "selected";}?>>+ <?php echo ctranslate($xvalue["item"]);?> [<?php echo $xvalue["id"];?>]</option>
                                            <?php }?>
                                        </select>
                                    </fieldset>
                                    <fieldset class="grey-bg <?php if($h4>1){}else{?>dn<?php }?>">
                                        <legend><i class="fa fa-list" aria-hidden="true"></i> <?php echo $sdil[78]; //Alt Kategori?> <span style="font-size:8px; color:#ccc;">(s3)</span></legend>
                                        <select size="1" name="s3" style="" class="form-control">
                                            <option value="0"><?php echo $sdil[221]; //Lütfen Seçiniz?></option>
                                        </select>
                                    </fieldset>
                                    <fieldset class="grey-bg">
                                        <legend><i class="fa fa-briefcase" aria-hidden="true"></i> <?php echo $t25s[0].ctranslate(" Tipi")?> <span style="font-size:8px; color:#ccc;">(ictip)</span></legend>
                                        <select size=1 name="ictip" data-plugin-selecttwo="" class="form-control populate">
                                            <option value="bireysel" <?php if($jsi["ictip"]=="" or $jsi["ictip"]=="bireysel"){echo "Selected";}?>><?php echo ctranslate("Bireysel")?></option>
                                            <option value="kurumsal" <?php if($jsi["ictip"]=="kurumsal"){echo "Selected";}?>><?php echo ctranslate("Kurumsal (Mağaza)")?></option>
                                            <option value="yonetici" <?php if($jsi["ictip"]=="yonetici"){echo "Selected";}?>><?php echo ctranslate("Yönetici")?></option>
                                            <option value="pazarlama" <?php if($jsi["ictip"]=="pazarlama"){echo "Selected";}?>><?php echo ctranslate("Satış/Pazarlama")?></option>
                                            <option value="muhasebe" <?php if($jsi["ictip"]=="muhasebe"){echo "Selected";}?>><?php echo ctranslate("Muhasebe")?></option>
                                            <option value="personel" <?php if($jsi["ictip"]=="personel"){echo "Selected";}?>><?php echo ctranslate("Personel")?></option>
                                        </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 <?php if($_SESSION["y15"]<>1){echo "e";}?>" style="position:relative;">
                                        <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>
										<!--<input type="checkbox" name="s9" value="1" class="e" <?php echo ($rs["s9"] == 1) ? 'checked' : ''; ?> title="İşlem Sorumlusu" style="display:block; position: absolute; top: -44px; right: 0px;">-->
                                        <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 in_array($rsm["id"], multivalues($rs["s19"])) ? 'selected' : '';?>><?php echo $rsm["t1"];?></option>
                                            <?php }?>
                                        </select>
                                    </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");?>">
                                <div id="tab-bilgi" class="v8-tabs-content">
                                    <div class="v3-row">
                                        <div class="">
                                            <fieldset class="grey-bg v3-col-md-3 <?php if($module["cinfo"]<>"1" and $jsi["ictip"]==""){echo "dn";}?>">
                                                <legend><?php echo ctranslate("Ünvanı");?> <span style="font-size:8px; color:#ccc;">(iunvan)</span></legend>
                                                <input type="text" name="iunvan" style="" value="<?php echo $jsi["iunvan"];?>" title="" class="form-control" />
                                            </fieldset>
                                            <fieldset class="grey-bg v3-col-md-<?php if($module["cinfo"]=="1"){echo "6";}else{echo "9";}?>">
                                                <legend> <?php echo $sdil[93]; //Adı Soyadı?>  <span style="color:grey;">#<?php echo $_GET["id"];?></span></legend>
                                                <span class="relative">
                                                    <?php $ut1="".trim($sdil[200])." ".trim($nedir)."";?>
                                                    <input type="text" name="ut1" id="complex-fr-title" value="<?php echo $rs["t1"];?>" data-plugin-maxlength="" maxlength="<?php echo $module["ksinir"];?>" class="form-control" onfocus="if(this.value == '<?php echo $ut1;?>') { this.value = ''} " onblur="if(this.value == '') { this.value='<?php echo $ut1;?>'; }">
                                                    <?php if($_SESSION["user"]==V3d('TWFzdGVy') or $_SESSION["user"]==V3d('U3VwZXJBZG1pbg==')){?>
                                                        <div class="switch switch-sm switch-success" style="position: absolute; margin-top: -65px; right: 15px;">
                                                            <input type="checkbox" name="is6" value="1" data-plugin-ios-switch="" <?php if ($jsi["is6"]==1) {echo "checked";}?>>
                                                        </div>
                                                    <?php }?>
                                                </span>
                                            </fieldset>
                                            <fieldset class="v3-col-md-3">
                                                <legend><?php echo trim($nedir)?> Code <span style="font-size:8px; color:#ccc;">(t5)</span></legend>
                                                <input type="text" class="v3-form-control" name="t5" value="<?php if($rs["t5"]=="" or $rs["t5"]=="0"){echo substr(ihb(cevir($nedir)),0,1).i2a($rs["id"],7);}else{echo $rs["t5"];}?>" onfocus="if(this.value == '<?php echo $rs["t5"];?>') { this.value = '<?php echo $rs["t5"];?>'} " onblur="if(this.value == '') { this.value='<?php echo substr(ihb(cevir($nedir)),0,1).i2a($rs["id"],7);?>'; }" placeholder="<?php echo $nedir?> Code">
                                            </fieldset>
                                            <fieldset class="grey-bg v3-col-md-3" style="position: relative;">
												<legend>
													<?php echo $sdil[95]; //Gsm No?> 
													<span style="font-size:8px; color:#ccc;">(t4)</span>
												</legend>

												<!-- WhatsApp Icon -->
												<i onclick="window.open('<?php echo $wlink;?>+90<?php echo telefon($rs["t4"]);?>')" class="fa fa-whatsapp-square" style="cursor:pointer; font-size:24px; position:absolute; z-index:99; top:10px; right:50px; color:#4CAF50;"></i>

												<!-- Phone Icon -->
												<i onclick="window.open('tel:+90<?php echo telefon($rs["t4"]);?>')" class="fa fa-phone-square" style="cursor:pointer; font-size:24px; position:absolute; z-index:99; top:10px; right:80px; color:#81D4FA;"></i>

												<div class="input-group" style="margin-left: -5px;">
													<!-- Verification Icon -->
													<span class="input-group-addon vsgsm bg-<?php echo ($jsi["igsm_verification"]==1 ? "success" : "warning"); ?>" title="<?php echo ($jsi["igsm_verification"]==1 ? "Doğrulandı" : "Doğrulanmadı"); ?>" style="font-size: 20px; padding: 8px; border: 1px solid #ccc; border-right: 0px; border-radius: 5px 0 0 5px;">
														<label for="gsm_verification">
															<span class="input-group-text cp" onclick="jQuery('.vsgsm').toggleClass('bg-warning bg-success'); jQuery('.vigsm').toggleClass('fa-check fa-clock');">
																<i class="vigsm fas fa-<?php echo ($jsi["igsm_verification"]==1 ? "check" : "clock"); ?>"></i>
															</span>
															<input type="checkbox" id="gsm_verification" name="igsm_verification" value="1" <?php if($jsi["igsm_verification"]==1){echo "checked";}?> style="display:none;">
														</label>
													</span>

													<!-- Phone Input -->
													<input <?php if($module["pmask"]!=""){?> data-plugin-masked-input="" data-input-mask="<?php echo $module["pmask"];?>" <?php }?> placeholder="<?php echo $module["pmask"];?>" name="t4" value="<?php echo $rs["t4"];?>" class="form-control qcontrol" qcontrol="qt4" style="border: 1px solid #ccc !important; border-left: 0px;">

													<!-- SMS Button -->
													<span class="input-group-addon bg-warning" style="font-size: 20px; padding: 8px; border: 1px solid #ccc; border-left: 0px; border-radius: 0px 5px 5px 0px;">
														<label>
															<span class="input-group-text cp mfrm" data-toggle="modal" data-target="#myModal" data-title="<?php echo ctranslate("SMS Gönder"); ?>" data-url="../../fonksiyon.php?islem=smsbox&alici=<?php echo telefon($rs["t4"]); ?>"> <i class="fas fa-paper-plane"></i> </span>
														</label>
													</span>

													<span class="cspan" id="qt4"></span>
												</div>
											</fieldset>

                                            <fieldset class="grey-bg v3-col-md-3">
                                                <legend><?php echo $sdil[96]; //Telefon No?> <span style="font-size:8px; color:#ccc;">(t7)</span></legend>
                                                <a href="tel:+90<?php echo telefon($rs["t7"]);?>" class="ddn fa fa-phone-square" style="top: -1px; position: absolute; right: 7px; font-size: 29px;"></a>
                                                <input type="text" name="t7" id="t7" style="" value="<?php echo $rs["t7"];?>" <?php if($module["pmask"]<>""){?>data-plugin-masked-input="" data-input-mask="<?php echo $module["pmask"];?>" <?php }?> placeholder="<?php echo $module["pmask"];?>" title="Telefon No" class="form-control" />
                                            </fieldset>
                                            <fieldset class="grey-bg v3-col-md-3">
                                                <legend>E-Mail</legend>
                                                <?php if($m15>2){?><div style="float: right; position: absolute; right: 15px; top: 0px; "><?php echo $rs["t11"]?></div><?php }?>
                                                <div class="input-group" style="margin-left: -5px;">
                                                    <span class="input-group-addon vsmail bg-<?php if($jsi["imail_verification"]==1){echo "success";}else{echo "warning";}?>" title="<?php if($jsi["imail_verification"]==1){echo "Doğrulandı";}else{echo "Doğrulanmadı";}?>" style="font-size: 20px; padding: 8px; border: 1px solid #ccc; border-right: 0px; border-radius: 5px 0px 0px 5px;">
                                                        <label for="mail_verification">
                                                            <span class="input-group-text cp" onclick="jQuery('.vsmail').toggleClass('bg-warning bg-success'); jQuery('.vimail').toggleClass('fa-check fa-clock');">
                                                                <i class="vimail fas fa-<?php if($jsi["imail_verification"]==1){echo "check";}else{echo "clock";}?>"></i>
                                                            </span>
                                                            <input type="checkbox" id="mail_verification" name="imail_verification" value="1" <?php if($jsi["imail_verification"]==1){echo "checked";}?> style="display:none;">
                                                        </label>
                                                    </span>
                                                    <input type="email" name="ut2" class="form-control qcontrol" qcontrol="qmail" value="<?php if($rs["t2"]<>""){echo "".base64_decode($rs["t2"])."";}?>" placeholder="E-Mail" autocomplete="false" style="border: 1px solid #ccc !important; border-left: 0px;">
                                                    <span class="input-group-addon bg-<?php if($jsi["imail_verification"]==1){echo "success";}else{echo "warning";}?>" style="font-size: 20px; padding: 8px; border: 1px solid #ccc; border-right: 0px; border-radius: 0px 5px 5px 0px;">
                                                        <label>
                                                            <span class="input-group-text cp mfrm" data-toggle="modal" data-target="#myModal" data-width="50%" data-title="<?php echo ctranslate("Mail Gönder")?>" data-url="../../fonksiyon.php?islem=mailbox&alici=<?php if($rs["t2"]<>""){echo "".base64_decode($rs["t2"])."";}?>">
                                                                <i class="fas fa-paper-plane"></i>
                                                            </span>
                                                        </label>
                                                    </span>
                                                    <span class="cspan" id="qmail"></span>
                                                </div>
                                            </fieldset>
                                            <fieldset class="grey-bg v3-col-md-3 <?php if($module["bd"]==0){?>ddn mdn<?php }?>">
                                                <legend><?php echo $sdil[97]; //Doğum Tarihi?> [<?php echo dt($rs["t12"]);?> Gün Kaldı] <span style="font-size:8px; color:#ccc;">(t12)</span></legend>
                                                <input type="date" name="t12" style="" value="<?php echo $rs["t12"];?>" title="<?php echo $sdil[97]; //Doğum Tarihi?>" class="form-control" />
                                            </fieldset>
                                            <fieldset class="grey-bg v3-col-md-3">
                                                <legend><?php echo ctranslate("İzinler")?> <span style="font-size:8px; color:#ccc;">(izinler)</span></legend>
                                                <select class="form-control chosen-select" name="izinler[]" multiple="multiple">
                                                    <option value="elektronik" <?php if(in_array("elektronik", $jsi["izinler"])){?>selected<?php }?>>Elektronik</option>
                                                    <option value="bulten" <?php if(in_array("bulten", $jsi["izinler"])){?>selected<?php }?>>E-Bülten</option>
                                                    <option value="kvkk" <?php if(in_array("kvkk", $jsi["izinler"])){?>selected<?php }?>>K.V.K.K</option>
                                                </select>
                                            </fieldset>
                                            <div style=""></div>
                                            <fieldset class="grey-bg v3-col-md-3 <?php if($module["cinfo"]<>"1" and $jsi["ictip"]==""){?>dn<?php }?>">
                                                <legend><?php echo ctranslate("Firma / Kurum Adı");?> <span style="font-size:8px; color:#ccc;">(ifirma)</span></legend>
                                                <input type="text" name="ifirma" style="" value="<?php echo $jsi["ifirma"];?>" title="" class="form-control" />
                                            </fieldset>
                                            <fieldset class="grey-bg v3-col-md-3 <?php if($module["cinfo"]<>"1" and $jsi["ictip"]==""){echo "dn";}?>">
                                                <legend><?php echo ctranslate("Yetkili");?> <span style="font-size:8px; color:#ccc;">(iyetkili)</span></legend>
                                                <input type="text" name="iyetkili" style="" value="<?php echo $jsi["iyetkili"];?>" title="" class="form-control" />
                                            </fieldset>
                                            <fieldset class="grey-bg v3-col-md-3 <?php if($module["cinfo"]<>"1" and $jsi["ictip"]==""){?>dn<?php }?>">
                                                <legend><?php echo ctranslate("VD");?>/<?php echo ctranslate("VN");?> <span style="font-size:8px; color:#ccc;">(ivdaire/ivnumara)</span></legend>
                                                <div class="v3-row">
                                                    <div class="v3-col-md-6">
                                                        <input type="text" name="ivdaire" style="" value="<?php echo $jsi["ivdaire"];?>" title="<?php echo ctranslate("Vergi Dairesi");?>" class="form-control" placeholder="<?php echo ctranslate("Vergi Dairesi");?>" />
                                                    </div>
                                                    <div class="v3-col-md-6">
                                                        <input type="text" name="ivnumara" style="" value="<?php echo $jsi["ivnumara"];?>" title="<?php echo ctranslate("Vergi Numarası");?>" class="form-control" placeholder="<?php echo ctranslate("Vergi Numarası");?>" />
                                                    </div>
                                                </div>
                                            </fieldset>
                                            <fieldset class="grey-bg v3-col-md-3 <?php if($module["uform_idn"]<>0 or $jsi["ictip"]=="kurumsal"){}else{echo "dn";}?>">
                                                <legend><?php echo ctranslate("IDN");?> <span style="font-size:8px; color:#ccc;">(t13)</span></legend>
                                                <div class="input-group" style="margin-left: -5px;">
                                                    <span class="input-group-addon vsidn bg-<?php if($jsi["idn_verification"]==1){echo "success";}else{echo "warning";}?>" title="<?php if($jsi["idn_verification"]==1){echo "Doğrulandı";}else{echo "Doğrulanmadı";}?>" style="font-size: 20px; padding: 8px; border: 1px solid #ccc; border-right: 0px; border-radius: 5px 0px 0px 5px;">
                                                        <label for="idn_verification">
                                                            <span class="input-group-text cp" onclick="jQuery('.vsidn').toggleClass('bg-warning bg-success'); jQuery('.vidn').toggleClass('fa-check fa-clock');">
                                                                <i class="vidn fas fa-<?php if($jsi["idn_verification"]==1){echo "check";}else{echo "clock";}?>"></i>
                                                            </span>
                                                            <input type="checkbox" id="idn_verification" name="idn_verification" value="1" <?php if($jsi["idn_verification"]==1){echo "checked";}?> style="display:none;">
                                                        </label>
                                                    </span>
                                                    <input type="text" name="t13" id="tck" value="<?php echo $rs["t13"];?>" title="" class="form-control" style="border: 1px solid #ccc !important; border-left: 0px;" />
                                                </div>
                                                <span id="ctck"></span>
                                            </fieldset>
                                            <fieldset class="grey-bg v3-col-md-3 <?php if($h3<>1){echo "dn";}?>">
                                                <legend><?php echo ctranslate("Mağaza Adı");?> <span style="font-size:8px; color:#ccc;">(imagaza)</span></legend>
                                                <input type="text" name="imagaza" style="" value="<?php echo $jsi["imagaza"];?>" title="" class="form-control" />
                                            </fieldset>
                                            <fieldset class="grey-bg v3-col-md-3 <?php if($module["cinfo"]<>"1" and $jsi["ictip"]==""){echo "dn";}?>">
                                                <legend><?php echo ctranslate("Mersis Numarası");?> <span style="font-size:8px; color:#ccc;">(imersis)</span></legend>
                                                <input type="text" name="imersis" style="" value="<?php echo $jsi["imersis"];?>" title="" class="form-control" />
                                            </fieldset>
                                            <fieldset class="grey-bg v3-col-md-3 <?php if($module["cinfo"]<>"1" and $jsi["ictip"]==""){?>dn<?php }?>">
                                                <legend><?php echo ctranslate("Kep Adresi");?> <span style="font-size:8px; color:#ccc;">(ikep)</span></legend>
                                                <input type="text" name="ikep" style="" value="<?php echo $jsi["ikep"];?>" title="" class="form-control" />
                                            </fieldset>
                                            <fieldset class="grey-bg v3-col-md-3 <?php if($module["cinfo"]<>"1" and $jsi["ictip"]==""){?>dn<?php }?>">
                                                <legend><?php echo ctranslate("Şirket Türü");?> <span style="font-size:8px; color:#ccc;">(isirket_turu)</span></legend>
                                                <input type="text" name="isirket_turu" style="" value="<?php echo $jsi["isirket_turu"];?>" title="" class="form-control" />
                                            </fieldset>
                                            <fieldset class="grey-bg v3-col-md-6 <?php if($module["cinfo"]<>"1" and $jsi["ictip"]==""){?>dn<?php }?>">
                                                <legend><?php echo ctranslate("Firma Adresi");?> <span style="font-size:8px; color:#ccc;">(iadres)</span></legend>
                                                <input type="text" name="iadres" style="" value="<?php echo $jsi["iadres"];?>" title="" class="form-control" />
                                            </fieldset>
                                            <div style=""></div>
                                            <?php if($h10<>0){?>
                                                <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 ctranslate("Ülke"); //Ü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 ctranslate("Şehir"); //Ş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 ctranslate("İlçe"); //İ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 ctranslate("Semt"); //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 }?>
                                                            <fieldset id="login" class="collapsed <?php if($rs["id"]<>$_SESSION["user_id"] and ($_SESSION["kim"]=="yonetici" and $_SESSION["y15"]<>1)){echo "e";}?> <?php if(($module["uform"]=="0" or $module["uform"]=="1" or $module["uform"]=="2") or $module["uye_editor"]=="1"){echo "db";}else{echo "dn";}?>" style="width:100%;">
                                                                <legend><a><i class="fas fa-lock"></i> Giriş Bilgileri/Login</a></legend>
                                                                <fieldset class="grey-bg v3-col-md-3">
                                                                    <legend>UserName</legend>
                                                                    <input type="text" name="t14" style="" onfocus="this.removeAttribute('readonly');" readonly class="form-control" value="<?php if($rs["t14"]<>""){echo "".base64_decode($rs["t14"])."";}?>" placeholder="UserName" autocomplete="false">
                                                                </fieldset>
                                                                <fieldset class="grey-bg v3-col-md-3">
                                                                    <legend><?php echo $sdil[101]; //Şifre?> <span style="font-size:8px; color:#ccc;">(t3)</span> <span class="fa fa-eye" style="float: right; margin-right: 10px; position: relative; z-index: 2; color: #999;" onclick="document.getElementById('password').type = this ? 'text' : 'password'"></span></legend>
                                                                    <input type="<?php if(($_SESSION["user"]<>V3d('TWFzdGVy') or $_SESSION["user"]<>"SuperAdmin")){echo "password";}else{echo "text";}?>" class="form-control" name="t3" value="<?php if($rs["t3"]<>""){echo base64_decode($rs["t3"]);}else{echo base64_encode(generatePassword(6));}?>" onfocus="if(this.value == '') { this.value = '<?php echo $generatePassword[6]?>'}; this.removeAttribute('readonly');" readonly onblur="if(this.value == '') { this.value='<?php echo $generatePassword[6]?>'; }" placeholder="Şifre" id="password" autocomplete="false">
                                                                </fieldset>
                                                                <fieldset class="grey-bg v3-col-md-3 msa" style="overflow: auto; <?php if(!$module["mobile_app"]==1){echo "display:none;";}?>">
                                                                    <legend>App Info <span style="font-size:8px; color:#ccc;">(n8)</span></legend>
                                                                    <div style="font-size:11px;margin-top: -8px;">
                                                                        <b>Device</b> : <?php echo $jsa["Device"]?><br>
                                                                        <b>DeviceID</b>: <?php echo $jsa["DeviceID"]?><br>
                                                                        <b>Token</b> : <?php echo $jsa["Token"]?>
                                                                    </div>
                                                                </fieldset>
                                                                <fieldset class="grey-bg v3-col-md-3" style="<?php if(!$m16==1){echo "display:none;";}?>">
                                                                    <legend style="width: 45%;"><?php echo ctranslate("İndirim")?> % <span style="font-size:8px; color:#ccc;">(s5)</span></legend>
                                                                    <legend style="width: 45%;margin-top: -45px; float:right;<?php if(($_SESSION["kim"]<>"Admin") or $module["uye_grup"]<>$rs["s2"]){echo "display:none;";}?>"><?php echo ctranslate("Komisyon")?> <span style="font-size:8px; color:#ccc;">(is5)</span></legend>
                                                                    <div class="v3-row">
                                                                        <div class="v3-col-md-6 v3-col-xs-6">
                                                                            <input type="text" name="s5" value="<?php echo $rs["s5"];?>" style="" title="<?php echo $sdil[102];?>" class="form-control" maxlength="2" onkeypress="return SadeceRakam(event);" onblur="SadeceRakam(event,false)">
                                                                        </div>
                                                                        <div class="v3-col-md-6 v3-col-xs-6" style="<?php if(($_SESSION["kim"]<>"Admin") or $module["uye_grup"]<>$rs["s2"]){echo "display:none;";}?>">
                                                                            <input type="text" name="is5" value="<?php if($jsi["is5"]<>""){echo $jsi["is5"];}else{echo "0";}?>" style="" title="<?php echo ctranslate("Komisyon");?>" class="form-control" maxlength="2" onkeypress="return SadeceRakam(event);" onblur="SadeceRakam(event,false)">
                                                                        </div>
                                                                    </div>
                                                                </fieldset>
                                                            </fieldset>
                                                            <fieldset class="grey-bg collapsed e" id="authority" style="<?php if($rs["s1"]<>1){echo "display:none;";}?>">
                                                                <legend><a><i class="fas fa-shield"></i> Yetkilendirme/Authority {<?php echo $_SESSION["kim"];?>} <span style="font-size:8px; color:#ccc;">(n10)</span></a></legend>
                                                                <fieldset class="v3-col-md-3" style=" <?php if($m14<>1){echo "display:none;";}?>">
                                                                    <legend style="">
                                                                        <div class="checkbox-custom checkbox-danger">
                                                                            <input type="checkbox" class="notoggle" id="y0" name="y0" value="1" <?php if($jsy["y0"]==1){echo "checked";}?>>
                                                                            <label style="margin-left:5px;" for="y0"><?php echo telefon($t24);?></label>
                                                                        </div>
                                                                    </legend>
                                                                    <p>* <?php echo telefon($t24);?> Yetkilendirme</p>
                                                                </fieldset>
                                                                <fieldset class="v3-col-md-3" style="<?php if($m15==0){echo "display:none;";}?>">
                                                                    <legend style="">
                                                                        <div class="checkbox-custom checkbox-danger">
                                                                            <input type="checkbox" class="notoggle" id="y1" name="y1" value="1" <?php if($jsy["y1"]==1){echo "checked";}?>>
                                                                            <label style="margin-left:5px;" for="y1"><?php echo telefon($t25s[0]);?> Modülü</label>
                                                                        </div>
                                                                    </legend>
                                                                    <div onclick="toggle('#at1')" style="position: absolute; right: 2px; top: -30px;"><i class="far fa-edit"></i></div>
                                                                    <div class="auts" id="at1">
                                                                        <div class="btn btn-default btn-xs w24 mw24 tal mtal"><input class="y1" type="checkbox" name="y1_uyeler" value="1" <?php if($jsy["y1_uyeler"]==1){echo "checked";}?>> <label style="margin-bottom:0px;"><?php echo telefon($t25);?></label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 tal mtal <?php if($e8==0){echo "dn";}?>"><input class="y1" type="checkbox" name="y1_hesap" value="1" <?php if($jsy["y1_hesap"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Cari</label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 tal mtal <?php if($g5==0){echo "dn";}?>"><input class="y1" type="checkbox" name="y1_hizmet" value="1" <?php if($jsy["y1_hizmet"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Plan</label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 tal mtal <?php if($module["uye_relations"]<>"1"){echo "dn";}?>"><input class="y1" type="checkbox" name="y1_iliski" value="1" <?php if($jsy["y1_iliski"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">İlişkiler</label></div>
                                                                    </div>
                                                                </fieldset>
                                                                <fieldset class="v3-col-md-3" style="<?php if($module["ads"]<>"1"){echo "display:none;";}?>">
                                                                    <legend style="">
                                                                        <div class="checkbox-custom checkbox-danger">
                                                                            <input type="checkbox" class="notoggle" id="y25" name="y25" value="1" <?php if($jsy["y25"]==1){echo "checked";}?>>
                                                                            <label style="margin-left:5px;" for="y25">İlan</label>
                                                                        </div>
                                                                    </legend>
                                                                    Paketler, Doping
                                                                    <p>* İlan Yetkilendirme</p>
                                                                </fieldset>
                                                                <fieldset class="v3-col-md-3" style=" <?php if($m11<>1){echo "display:none;";}?>">
                                                                    <legend style="">
                                                                        <div class="checkbox-custom checkbox-danger">
                                                                            <input class="notoggle" type="checkbox" id="y4" name="y4" value="1" <?php if($jsy["y4"]==1){echo "checked";}?>>
                                                                            <label style="margin-left:5px;" for="y4"><?php echo telefon($t22);?></label>
                                                                        </div>
                                                                    </legend>
																	<select class="form-control multiselect" name="y4_[]" multiple="multiple" data-plugin-multiselect="" data-plugin-options="{ " maxHeight": 200 }" style="display:none;">
																		<option value="1" <?= in_array("1", $module["db_m14"]) ? "selected" : "" ?>>op1</option>
																		<option value="2" <?= in_array("2", $module["db_m14"]) ? "selected" : "" ?>>op2</option>
																	</select>
                                                                    <p>* Haber Yetkilendirme</p>
                                                                </fieldset>
                                                                <fieldset class="v3-col-md-3" style=" <?php if($m13<>1){echo "display:none;";}?>">
                                                                    <legend style="">
                                                                        <div class="checkbox-custom checkbox-danger">
                                                                            <input class="notoggle" type="checkbox" id="y5" name="y5" value="1" <?php if($jsy["y5"]==1){echo "checked";}?>>
                                                                            <label style="margin-left:5px;" for="y5"><?php echo telefon($t21);?></label>
                                                                        </div>
                                                                    </legend>
                                                                    <p>* <?php echo telefon($t21);?> Yetkilendirme</p>
                                                                </fieldset>
                                                                <fieldset class="v3-col-md-3" style="<?php if($m9<>1){echo "display:none;";}?>">
                                                                    <legend style="">
                                                                        <div class="checkbox-custom checkbox-danger">
                                                                            <input class="notoggle" type="checkbox" id="y7" name="y7" value="1" <?php if($jsy["y7"]==1){echo "checked";}?>>
                                                                            <label style="margin-left:5px;" for="y5"><?php echo $reklamlar; //Reklam Yönetimi?></label>
                                                                        </div>
                                                                    </legend>
                                                                    <p>* <?php echo $reklamlar; //Reklam Yönetimi?> Yetkilendirme</p>
                                                                </fieldset>
                                                                <fieldset class="v3-col-md-3" style="<?php if($e8==1 or $g9==1){}else{echo "display:none;";}?>">
                                                                    <legend style="">
                                                                        <div class="checkbox-custom checkbox-danger">
                                                                            <input class="notoggle" type="checkbox" id="y8" name="y8" value="1" <?php if($jsy["y8"]==1){echo "checked";}?>>
                                                                            <label style="margin-left:5px;" for="y8"><?php echo ctranslate("Muhasebe")?></label>
                                                                        </div>
                                                                    </legend>
                                                                    <div onclick="toggle('#at8')" style="position: absolute; right: 2px; top: -30px;"><i class="far fa-edit"></i></div>
                                                                    <div class="auts" id="at8">
                                                                        <div class="btn btn-default btn-xs w24 mw24 tal mtal" style="<?php if($g9==0){echo "display:none;";}?>"><input class="y8" type="checkbox" name="y8_teklifler" value="1" <?php if($jsy["y8_teklifler"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Tekifler</label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 tal mtal" style="<?php if($e8==0){echo "display:none;";}?>"><input class="y8" type="checkbox" name="y8_faturalar" value="1" <?php if($jsy["y8_faturalar"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">*Faturalar</label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 tal mtal" style="<?php if($e8==0){echo "display:none;";}?>"><input class="y8" type="checkbox" name="y8_kasa" value="1" <?php if($jsy["y8_kasa"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">*Kasa</label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 tal mtal" style="<?php if($e8==0){echo "display:none;";}?>"><input class="y8" type="checkbox" name="y8_cekler" value="1" <?php if($jsy["y8_cekler"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">*Çekler</label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 tal mtal mt5" style="<?php if($e8==0){echo "display:none;";}?>"><input class="y8" type="checkbox" name="y8_senetler" value="1" <?php if($jsy["y8_senetler"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">*Senetler</label></div>
                                                                    </div>
                                                                    <p>* <?php echo ctranslate("Muhasebe")?> Yetkilendirme</p>
                                                                </fieldset>
                                                                <fieldset class="v3-col-md-3" style="<?php if($module["muhasebe_fis"]<>"1"){echo "display:none;";}?>">
                                                                    <legend style=""> Fişler <span style="font-size:8px; color:#ccc;">(23)</span></legend>
                                                                    <select class="form-control" name="y23" style=" font-family:arial;">
                                                                        <option value="0" <?php if($jsy["y23"]==0){echo "selected";}?>>...</option>
                                                                        <option value="1" <?php if($jsy["y23"]==1){echo "selected";}?>><?php echo $sdil[199] //Güncelle?></option>
                                                                        <option value="2" <?php if($jsy["y23"]==2){echo "selected";}?>><?php echo $sdil[201] //Ekle?>/<?php echo $sdil[199] //Güncelle?></option>
                                                                        <option value="3" <?php if($jsy["y23"]==3){echo "selected";}?>><?php echo $sdil[201] //Ekle?>/<?php echo $sdil[199] //Güncelle?>/<?php echo $sdil[204] //sil?></option>
                                                                    </select>
                                                                </fieldset>
                                                                <fieldset class="v3-col-md-3 <?php if($a4==0){echo "dn";}?>" style="">
                                                                    <legend style="">
                                                                        <div class="checkbox-custom checkbox-danger">
                                                                            <input class="notoggle" type="checkbox" id="y9" name="y9" value="1" <?php if($jsy["y9"]==1){echo "checked";}?>>
                                                                            <label style="margin-left:5px;" for="y9"><?php echo $sdil[12]; //Kategoriler?></label>
                                                                        </div>
                                                                    </legend>
                                                                    <p>* <?php echo $sdil[12]; //Kategoriler?> Yetkilendirme</p>
                                                                </fieldset>
                                                                <fieldset class="v3-col-md-3" style="">
                                                                    <legend style="">
                                                                        <div class="checkbox-custom checkbox-danger">
                                                                            <input class="notoggle" type="checkbox" id="y3" name="y3" value="1" <?php if($jsy["y3"]==1){echo "checked";}?>>
                                                                            <label style="margin-left:5px;" for="y3">Ayarlar</label>
                                                                        </div>
                                                                    </legend>
                                                                    <div onclick="toggle('#at3')" style="position: absolute; right: 2px; top: -30px;"><i class="far fa-edit"></i></div>
                                                                    <div class="auts" id="at3">
                                                                        <div class="btn btn-default btn-xs w24 mw24 mb5 mmb5 tal mtal"><input class="y3" type="checkbox" name="y3_ayar" value="1" <?php if($jsy["y3_ayar"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Ayarlar</label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 mb5 mmb5 tal mtal"><input class="y3" type="checkbox" name="y3_tanim" value="1" <?php if($jsy["y3_tanim"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Tanımlar</label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 mb5 mmb5 tal mtal"><input class="y3" type="checkbox" name="y3_tasarim" value="1" <?php if($jsy["y3_tasarim"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Tasarım</label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 mb5 mmb5 tal mtal"><input class="y3" type="checkbox" name="y3_ozel_alan" value="1" <?php if($jsy["y3_ozel_alan"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Özel Alan</label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 mb5 mmb5 tal mtal"><input class="y3" type="checkbox" name="y3_backup" value="1" <?php if($jsy["y3_backup"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Backup</label></div>
                                                                        <div class="btn btn-warning btn-xs w24 mw24 mb5 mmb5 tal mtal" style=""><input type="checkbox" class="y29" name="y29" value="1" <?php if($jsy["y29"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Rapor</label></div>
                                                                        <div class="btn btn-warning btn-xs w24 mw24 mb5 mmb5 tal mtal" style=""><input type="checkbox" class="y22" name="y22" value="1" <?php if($jsy["y22"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Demo</label></div>
                                                                        <div class="btn btn-warning btn-xs w24 mw24 mb5 mmb5 tal mtal" style=""><input type="checkbox" class="y15" name="y15" value="1" <?php if($jsy["y15"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Admin</label></div>
                                                                    </div>
                                                                </fieldset>
                                                                <fieldset class="v3-col-md-3" style="<?php if($m17<>1){echo "display:none;";}?>">
                                                                    <legend style="">
                                                                        <div class="checkbox-custom checkbox-danger">
                                                                            <input class="notoggle" type="checkbox" id="y11" name="y11" value="1" <?php if($jsy["y11"]==1){echo "checked";}?>>
                                                                            <label style="margin-left:5px;" for="y11"><?php echo $sdil[27]; //E-Ajanda?></label>
                                                                        </div>
                                                                    </legend>
                                                                    <div class="btn btn-default btn-xs w24 mw24 mb5 mmb5 tal mtal"><input class="y11" type="checkbox" name="y11_keep" value="1" <?php if($jsy["y11_keep"]==1){echo "checked";}?>> Keep</div>
                                                                    <p>* <?php echo $sdil[27]; //E-Ajanda?> Yetkilendirme</p>
                                                                </fieldset>
                                                                <fieldset class="v3-col-md-3" style="<?php if($s20==0){echo "display:none;";}?>">
                                                                    <legend style="">
                                                                        <div class="checkbox-custom checkbox-danger">
                                                                            <input class="notoggle" type="checkbox" id="y13" name="y13" value="1" <?php if($jsy["y13"]==1){echo "checked";}?>>
                                                                            <label style="margin-left:5px;" for="y13"><?php echo $task; //Görev?></label>
                                                                        </div>
                                                                    </legend>
                                                                    <p>* <?php echo $task; //Görev?> Yetkilendirme</p>
                                                                </fieldset>
                                                                <fieldset class="v3-col-md-3 <?php if($m16!==1){echo "dn";}?>">
                                                                    <legend style="">
                                                                        <div class="checkbox-custom checkbox-danger">
                                                                            <input class="notoggle" type="checkbox" id="y2" name="y2" value="1" <?php if($jsy["y2"]==1){echo "checked";}?>>
                                                                            <label style="margin-left:5px;" for="y2"><?php echo $sdil[4]; //Eticaret?> Modülü</label>
                                                                        </div>
                                                                    </legend>
                                                                    <div onclick="toggle('#at2')" style="position: absolute; right: 2px; top: -30px;"><i class="far fa-edit"></i></div>
                                                                    <div class="auts" id="at2">
                                                                        <div class="btn btn-default btn-xs w24 mw24 tal mtal" style=""><input class="y2" type="checkbox" name="y2_siparis" value="1" <?php if($jsy["y2_siparis"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Siparişler</label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 tal mtal" style=""><input class="y2" type="checkbox" name="y2_banka" value="1" <?php if($jsy["y2_banka"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Banka/Pos</label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 tal mtal" style=""><input class="y2" type="checkbox" name="y2_kargo" value="1" <?php if($jsy["y2_kargo"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Kargo/Desi</label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 tal mtal" style="<?php if(tanim("sp+n11","n1",0)<>"" or tanim("sp+hepsiburada","n1",0)<>"" or tanim("sp+trendyol","n1",0)<>""){}else{echo "display:none;";}?>">
                                                                            <input class="y2" type="checkbox" name="y2_sp" value="1" <?php if($jsy["y2_sp"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">SanalPazar</label>
                                                                        </div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 mt5 mmt5 tal mtal" style=""><input class="y2" type="checkbox" name="y2_cek_puan" value="1" <?php if($jsy["y2_cek_puan"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Çek/Puan</label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 mt5 mmt5 tal mtal" style=""><input class="y2" type="checkbox" name="y2_satis" value="1" <?php if($jsy["y2_satis"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">M.Satış</label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 tal mtal" style=""><input class="y2" type="checkbox" name="y2_posnet" value="1" <?php if($jsy["y2_posnet"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Posnet</label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 mt5 mmt5 tal mtal" style="<?php if($g3<>1){?>display:none<?php }?>"><input class="y2" type="checkbox" name="y2_etahsilat" value="1" <?php if($jsy["y2_etahsilat"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">E-Tahsilat</label></div>
                                                                    </div>
                                                                </fieldset>
                                                                <fieldset class="v3-col-md-3" style="<?php if($module["muhasebe_ekstre"]<>"1"){echo "display:none;";}?>">
                                                                    <legend style="">
                                                                        <div class="checkbox-custom checkbox-danger">
                                                                            <input class="notoggle" type="checkbox" id="y24" name="y24" value="1" <?php if($jsy["y24"]==1){echo "checked";}?>>
                                                                            <label style="margin-left:5px;" for="y24">E-Extre</label>
                                                                        </div>
                                                                    </legend>
                                                                    <p>* E-Extre Yetkilendirme</p>
                                                                </fieldset>
                                                                <fieldset class="v3-col-md-3" style="<?php if($d8==0){echo "display:none;";}?>">
                                                                    <legend style="">
                                                                        <div class="checkbox-custom checkbox-danger">
                                                                            <input class="notoggle" type="checkbox" id="y18" name="y18" value="1" <?php if($jsy["y18"]==1){echo "checked";}?>>
                                                                            <label style="margin-left:5px;" for="y18">E-Katalog</label>
                                                                        </div>
                                                                    </legend>
                                                                    <p>* E-Katalog Yetkilendirme</p>
                                                                </fieldset>
                                                                <fieldset class="v3-col-md-3" style="<?php if($a8==0){echo "display:none;";}?>">
                                                                    <legend style="">xls yönetim <span style="font-size:8px; color:#ccc;">(21)</span></legend>
                                                                    <div onclick="toggle('#at21')" style="position: absolute; right: 2px; top: -30px;"><i class="far fa-edit"></i></div>
                                                                    <div class="auts" id="at21">
                                                                        <div class="btn btn-default btn-xs w49 mw49 mt5 mmt5 tal mtal" style=""><input class="y21" type="checkbox" name="y21_kayit_import" value="1" <?php if($jsy["y21_kayit_import"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Ürün Import</label></div>
                                                                        <div class="btn btn-default btn-xs w49 mw49 mt5 mmt5 tal mtal" style=""><input class="y21" type="checkbox" name="y21_kayit_export" value="1" <?php if($jsy["y21_kayit_export"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Ürün Export</label></div>
                                                                        <div class="btn btn-default btn-xs w49 mw49 mt5 mmt5 tal mtal" style=""><input class="y21" type="checkbox" name="y21_uye_import" value="1" <?php if($jsy["y21_uye_import"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Üye Import</label></div>
                                                                        <div class="btn btn-default btn-xs w49 mw49 mt5 mmt5 tal mtal" style=""><input class="y21" type="checkbox" name="y21_uye_export" value="1" <?php if($jsy["y21_uye_export"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Üye Export</label></div>
                                                                    </div>
                                                                </fieldset>
                                                                <fieldset class="v3-col-md-3" style="<?php if($module["request"]<>"1"){echo "display:none;";}?>">
                                                                    <legend style="">
                                                                        <div class="checkbox-custom checkbox-danger">
                                                                            <input class="notoggle" type="checkbox" id="y17" name="y17" value="1" <?php if($jsy["y17"]==1){echo "checked";}?>>
                                                                            <label style="margin-left:5px;" for="y17"><?php echo $module["requests"]?></label>
                                                                        </div>
                                                                    </legend>
                                                                    <div class="btn btn-default btn-xs w32 mw49 mt5 mmt5 tal mtal" style=""><input class="y17" type="checkbox" name="y17_talepler" value="1" <?php if($jsy["y17_talepler"]==1){echo "checked";}?>> Talepler</div>
                                                                    <div class="btn btn-default btn-xs w32 mw49 mt5 mmt5 tal mtal" style=""><input class="y17" type="checkbox" name="y17_action" value="1" <?php if($jsy["y17_action"]==1){echo "checked";}?>> Yönetimi</div>
                                                                    <div class="btn btn-default btn-xs w33 mw49 mt5 mmt5 tal mtal" style=""><input class="y17" type="checkbox" name="y17_status" value="1" <?php if($jsy["y17_status"]==1){echo "checked";}?>> Durum</div>
                                                                    <p>* Talepler; Tüm Talepler, * Yönetim; Silme ve düzenleme, * Durum; Statü değişim Yetkisi </p>
                                                                </fieldset>
                                                                <fieldset class="v3-col-md-3" style="<?php if($e2==0){echo "display:none;";}?>">
                                                                    <legend style=""> Crm Chat <span style="font-size:8px; color:#ccc;">(20)</span></legend>
                                                                    <select class="form-control" name="y20" style=" font-family:arial;">
                                                                        <option value="0" <?php if($jsy["y20"]==0){echo "selected";}?>>...</option>
                                                                        <option value="1" <?php if($jsy["y20"]==1){echo "selected";}?>><?php echo $sdil[199] //Güncelle?></option>
                                                                        <option value="2" <?php if($jsy["y20"]==2){echo "selected";}?>><?php echo $sdil[201] //Ekle?>/<?php echo $sdil[199] //Güncelle?></option>
                                                                        <option value="3" <?php if($jsy["y20"]==3){echo "selected";}?>><?php echo $sdil[201] //Ekle?>/<?php echo $sdil[199] //Güncelle?>/<?php echo $sdil[204] //sil?></option>
                                                                    </select>
                                                                </fieldset>
                                                                <fieldset class="v3-col-md-3 <?php if(!($m8 > 0 || $c8 != 0 || $m18 > 0 || $m6 > 0 || $m7 > 0 || $module["gtaslak"] == "1" || $e2 == 1)) echo "dn"; ?>">
                                                                    <legend style="">
                                                                        <div class="checkbox-custom checkbox-danger">
                                                                            <input class="notoggle" type="checkbox" id="y27" name="y27" value="1" <?php if($jsy["y27"]==1){echo "checked";}?>>
                                                                            <label style="margin-left:5px;" for="y27">Mesajlar Modülü</label>
                                                                        </div>
                                                                    </legend>
                                                                    <div onclick="toggle('#at27')" style="position: absolute; right: 2px; top: -30px;"><i class="far fa-edit"></i></div>
                                                                    <div class="auts" id="at27">
                                                                        <div class="btn btn-default btn-xs w24 mw24 tal mtal" style=""><input class="y27" type="checkbox" name="y27_mesaj" value="1" <?php if($jsy["y27_mesaj"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Mesajlar</label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 tal mtal" style=""><input class="y27" type="checkbox" name="y27_form" value="1" <?php if($jsy["y27_form"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Formlar</label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 tal mtal" style=""><input class="y27" type="checkbox" name="y27_yorum" value="1" <?php if($jsy["y27_yorum"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Yorumlar</label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 tal mtal" style=""><input class="y27" type="checkbox" name="y27_tmail" value="1" <?php if($jsy["y27_tmail"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">T.Mail</label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 mt5 mmt5 tal mtal" style=""><input class="y27" type="checkbox" name="y27_tsms" value="1" <?php if($jsy["y27_tsms"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">T.Sms</label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 mt5 mmt5 tal mtal" style=""><input class="y27" type="checkbox" name="y27_taslak" value="1" <?php if($jsy["y27_taslak"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Taslaklar</label></div>
                                                                        <div class="btn btn-default btn-xs w24 mw24 mt5 mmt5 tal mtal" style=""><input class="y27" type="checkbox" name="y27_notifications" value="1" <?php if($jsy["y27_notifications"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">App Notify</label></div>
                                                                    </div>
                                                                </fieldset>
                                                                <?php
                                                                $sqlx=mysqli_query($conn, "select * from genel where ne='xmodules' order by s10 asc,id desc"); while($rsx=mysqli_fetch_assoc($sqlx)){
                                                                    $xmode = explode('-',$rsx["n1"]);
                                                                    if($_GET["ne"]==$rsx["n2"]){$nedir=str_replace("-","",$rsx["n1"]); $xmodule=$xmode[0];}
                                                                    ?>
                                                                    <fieldset class="v3-col-md-3" style="">
                                                                        <legend style="">
                                                                            <div class="checkbox-custom checkbox-danger">
                                                                                <input class="notoggle" type="checkbox" id="ym_<?php echo $rsx["id"]?>" name="ym_<?php echo $rsx["id"]?>" value="1" <?php if($jsy["ym_".$rsx["id"].""]==1){echo "checked";}?>>
                                                                                <label style="margin-left:5px;" for="ym_<?php echo $rsx["id"]?>"><?php echo str_replace("-","",$rsx["n1"])?></label>
                                                                            </div>
                                                                        </legend>
                                                                        <p>* <?php echo str_replace("-","",$rsx["n1"])?> Yetkilendirme</p>
                                                                    </fieldset>
                                                                <?php }?>
                                                                <fieldset class="v3-col-md-12">
                                                                    <legend style=""> Veri Paylaşımı <span style="font-size:8px; color:#ccc;">(19)</span></legend>
                                                                    <div class="btn btn-warning btn-xs w10 mw24 mb5 mmb5 tal mtal <?php if(!$m14==1){echo "dn";}?>" style=""><input type="checkbox" class="y0" name="y19_kayit" value="1" <?php if($jsy["y19_kayit"]==1){echo "checked";}?>> <label style="margin-bottom:0px;"><?php echo $t24?></label></div>
                                                                    <div class="btn btn-warning btn-xs w10 mw24 mb5 mmb5 tal mtal <?php if(!$m15==1){echo "dn";}?>" style=""><input type="checkbox" class="y1" name="y19_uye" value="1" <?php if($jsy["y19_uye"]==1){echo "checked";}?>> <label style="margin-bottom:0px;"><?php echo $t25?></label></div>
                                                                    <div class="btn btn-warning btn-xs w10 mw24 mb5 mmb5 tal mtal <?php if(!$m13==1){echo "dn";}?>" style=""><input type="checkbox" class="y19" name="y19_sayfa" value="1" <?php if($jsy["y19_sayfa"]==1){echo "checked";}?>> <label style="margin-bottom:0px;"><?php echo $t21?></label></div>
                                                                    <div class="btn btn-warning btn-xs w10 mw24 mb5 mmb5 tal mtal <?php if(!$m11==1){echo "dn";}?>" style=""><input type="checkbox" class="y19" name="y19_haber" value="1" <?php if($jsy["y19_haber"]==1){echo "checked";}?>> <label style="margin-bottom:0px;"><?php echo $t22?></label></div>
                                                                    <div class="btn btn-warning btn-xs w10 mw24 mb5 mmb5 tal mtal <?php if(!$g9==1){echo "dn";}?>" style=""><input class="y19" type="checkbox" name="y19_teklif" value="1" <?php if($jsy["y19_teklif"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Teklifler</label></div>
                                                                    <div class="btn btn-warning btn-xs w10 mw24 mb5 mmb5 tal mtal" style=""><input class="y19" type="checkbox" name="y19_taslak" value="1" <?php if($jsy["y19_taslak"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Taslaklar</label></div>
                                                                    <div class="btn btn-warning btn-xs w10 mw24 mb5 mmb5 tal mtal <?php if(!$a4==1){echo "dn";}?>" style=""><input class="y19" type="checkbox" name="y19_kategori" value="1" <?php if($jsy["y19_kategori"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Kategoriler</label></div>
                                                                    <div class="btn btn-warning btn-xs w10 mw24 mb5 mmb5 tal mtal" style=""><input class="y19" type="checkbox" name="y19_inputs" value="1" <?php if($jsy["y19_inputs"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Özel Alan</label></div>
                                                                    <div class="btn btn-warning btn-xs w10 mw24 mb5 mmb5 tal mtal <?php if(!$m16==1){echo "dn";}?>" style=""><input class="y19" type="checkbox" name="y19_siparis" value="1" <?php if($jsy["y19_siparis"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Siparişler</label></div>
                                                                    <div class="btn btn-warning btn-xs w10 mw24 mb5 mmb5 tal mtal <?php if(!$module["request"]==1){echo "dn";}?>" style=""><input class="y19" type="checkbox" name="y19_request" value="1" <?php if($jsy["y19_request"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Talepler</label></div>
                                                                    <div class="btn btn-warning btn-xs w10 mw24 mb5 mmb5 tal mtal <?php if(!$m17==1){echo "dn";}?>" style=""><input class="y19" type="checkbox" name="y19_event" value="1" <?php if($jsy["y19_event"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Notlar</label></div>
                                                                    <div class="btn btn-warning btn-xs w10 mw24 mb5 mmb5 tal mtal <?php if(!$m9==1){echo "dn";}?>" style=""><input class="y19" type="checkbox" name="y19_ads" value="1" <?php if($jsy["y19_ads"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Reklam</label></div>
                                                                    <div class="btn btn-warning btn-xs w10 mw24 mb5 mmb5 tal mtal <?php if(!$c7==1){echo "dn";}?>" style=""><input class="y19" type="checkbox" name="y19_acc" value="1" <?php if($jsy["y19_acc"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Muhasebe</label></div>
                                                                    <?php $sqlx=mysqli_query($conn, "select * from genel where ne='xmodules' order by s10 asc,id desc"); while($rsx=mysqli_fetch_assoc($sqlx)){?>
                                                                        <div class="btn btn-warning btn-xs w10 mw24 mb5 mmb5 tal mtal" style=""><input class="y19" type="checkbox" name="y19_m<?php echo $rsx["id"]?>" value="1" <?php if($jsy["y19_m".$rsx["id"].""]==1){echo "checked";}?>> <label style="margin-bottom:0px;"><?php echo str_replace("-","",$rsx["n1"])?></div>
                                                                        <?php }?>
																		<p>* Bu alanda verilecek yetkiler, ilgili mödülşün verilerinin tüm yöneticiler tarafından izlenmesini ve işlenmesini sağlar</p>
                                                                    </fieldset>
                                                                    <fieldset class="v3-col-md-3">
                                                                        <legend style=""> Bildirim <span style="font-size:8px; color:#ccc;">(30)</span></legend>
                                                                        <div onclick="toggle('#at30')" style="position: absolute; right: 2px; top: -30px;"><i class="far fa-edit"></i></div>
                                                                        <div class="auts" id="at30">
                                                                            <div class="btn btn-default btn-xs w24 mw24 tal mtal" style=""><input type="checkbox" name="y30_siparis" value="1" <?php if($jsy["y30_siparis"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Siparişler</label></div>
                                                                            <div class="btn btn-default btn-xs w24 mw24 tal mtal" style=""><input type="checkbox" name="y30_mesaj" value="1" <?php if($jsy["y30_mesaj"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Mesajlar</label></div>
                                                                            <div class="btn btn-default btn-xs w24 mw24 tal mtal" style=""><input type="checkbox" name="y30_request" value="1" <?php if($jsy["y30_request"]==1){echo "checked";}?>> <label style="margin-bottom:0px;">Talepler</label></div>
                                                                        </div>
                                                                    </fieldset>
                                                                </fieldset>
                                                            </div>
                                                            <?php if($module["areas"]<>0 and ($jsi["ictip"]<>"personel" and $jsi["ictip"]<>"yonetici")){?>
                                                                <div class="">
                                                                    <fieldset class="grey-bg" style="height: 150px;">
                                                                        <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")?>" multiple="multiple" class="form-control chosen-select" data-plugin-selecttwo="" tabindex="8">
                                                                            <?php
                                                                            $areas_ = explode(',',$rs["n11"]);
                                                                            $sqla=mysqli_query($conn, "select * 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>Hizmet verdiği bölgeler</p>
                                                                    </fieldset>
                                                                </div>
                                                            <?php }?>
                                                            <div class="" 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','#inputs'); });
                                                                jQuery('#ss2').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'); });
                                                            </script>
                                                            <div class=" <?php if($h5=="1"){echo "dn";}?>">
                                                                <fieldset class="grey-bg v3-col-md-3">
                                                                    <legend><?php echo $sdil[103]; //Adres?> <span style="font-size:8px; color:#ccc;">(n5)</span></legend>
                                                                    <textarea name="n5" title="Adres" class="form-control" rows="2" cols="20" placeholder="<?php echo $sdil[103]; //Adres?>"><?php echo $rs["n5"];?></textarea>
                                                                </fieldset>
                                                                <?php if($m16==1){?>
                                                                    <fieldset class="grey-bg v3-col-md-3 <?php if($h5=="1"){echo "dn";}?>">
                                                                        <legend><?php echo $sdil[104]; //Adres (Fatura)?> <span style="font-size:8px; color:#ccc;">(n6)</span></legend>
                                                                        <textarea name="n6" title="Fatura Adresi" class="form-control" rows="2" cols="20" placeholder="<?php echo $sdil[104]; //Adres (Fatura)?>"><?php echo $rs["n6"];?></textarea>
                                                                    </fieldset>
                                                                    <fieldset class="grey-bg v3-col-md-3  <?php if($h5=="1"){echo "dn";}?> <?php if($f3<>1){echo "dn";}?>">
                                                                        <legend><?php echo $sdil[105]; //Adres (Teslimat)?> <span style="font-size:8px; color:#ccc;">(n7)</span></legend>
                                                                        <textarea name="n7" title="Fatura Adresi" class="form-control" rows="2" cols="20" placeholder="<?php echo $sdil[105]; //Adres (Teslimat)?>"><?php echo $rs["n7"];?></textarea>
                                                                    </fieldset>
                                                                <?php }?>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div id="tab-aciklama" class="v8-tabs-content" style="<?php if($h2<>0 or $h9<>0){}else{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-dty1" class="<?php if($module["page_map_uye"]==1 and $mapi<>""){}else{echo "dn";}?>">Map</a></li>
                                                            <li><a href="#tab-dty2" class="<?php if($module["page_map_uye"]==1 and $mapi=="Google"){}else{echo "dn";}?>">Maps</a></li>
                                                        </ul>
                                                        <div class="v3-row">
                                                            <div id="tab-adty">
                                                                <fieldset class="" <?php if($h9==0){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="float:right;"><?php echo strlen($rs["n3"])?></span>
                                                                    <input type="text" name="n3" value="<?php echo $rs["n3"];?>" data-plugin-maxlength="" maxlength="70" placeholder="<?php echo $sdil[39]; //Başlık?>" class="form-control ns3" style="border:solid 1px #F00;">
                                                                </fieldset>
                                                                <fieldset class="" <?php if($h2==0){echo "style='display:none;'";}?>>
                                                                    <legend><?php echo $sdil[207]; //Detay?> <span style="font-size:8px; color:#ccc;">(n1)</span></legend>
                                                                    <textarea name="n1" rows="2" class="rte form-control" id="rte" placeholder="detay"><?php echo $rs["n1"];?></textarea>
                                                                </fieldset>
                                                                <fieldset class="" <?php if($h9==0){echo "style='display:none;'";}?>>
                                                                    <legend><?php echo $sdil[40]; //Kısa?> (<b>Description</b>) <span style="font-size:8px; color:#ccc;">(n2)</span></legend>
                                                                    <textarea name="n2" rows="3" class="form-control" style="border:solid 1px #F00;" data-plugin-maxlength="" maxlength="160" placeholder="Seo Açıklama"><?php echo $rs["n2"];?></textarea>
                                                                </fieldset>
                                                                <fieldset class="" <?php if($h9==0){echo "style='display:none;'";}?>>
                                                                    <legend> <?php echo $sdil[41]; //Anahtar Kelimeler?> <span style="font-size:8px; color:#ccc;">(n4)</span> </legend>
                                                                    <button type="button" onclick="show('atags')" class="v3-btn v3-btn-warning v3-btn-xs" style="position: absolute; right: 9px; margin-top: -21px;"><i class="fa fa-plus-square" aria-hidden="true"></i> <?php echo ctranslate("Etiket Listesi")?></button>
                                                                    <input name="un4" 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"];?>" />
                                                                    <div style="margin-top:3px; border:1px solid #ccc; border-radius:3px; padding:3px; display:none;" id="atags">
                                                                        <?php $sql=mysqli_query($conn, "select * from kategoriler where ne='ukategori' or  ne='kkategori' order by sira asc"); while($rsc=mysqli_fetch_assoc($sql)){?>
                                                                            <button type="button" class="v3-btn v3-btn-<?php if($rsc["ne"]=="ukategori"){?>danger<?php }elseif($rsc["ne"]=="kkategori"){?>warning<?php }else{?>info<?php }?> v3-btn-xs addtag" style="margin-bottom:2px;" data-value="<?php echo $rsc["Cat_".$_SESSION['lang'].""];?>" style="cursor:pointer;"><?php echo $rsc["Cat_".$_SESSION['lang'].""];?></button>
                                                                        <?php };?>
                                                                        <?php $kkey=tanim("keys","n1",0); $kkey=($kkey == '') ? $keywords : $kkey; $tags = explode(',',$kkey); foreach($tags as $tag){?>
                                                                            <button type="button" class="v3-btn addtag v3-btn-info v3-btn-xs" style="margin-bottom:2px;" data-value="<?php echo $tag;?>" style="cursor:pointer;"><?php echo $tag;?></button>
                                                                        <?php }?>
                                                                    </div>
                                                                </fieldset>
                                                            </div>
                                                            <div id="tab-dty0" <?php if($d7==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-dty1" class="<?php if($module["page_map_uye"]==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>
                                                            <div id="tab-dty2" class="<?php if($module["page_map_uye"]==1 and $mapi=="Google"){}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/gmaps.php");?>
                                                                </fieldset>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </form>
                                                <script type="text/javascript">
                                                    function addTextTag(text) {
                                                        document.getElementById('tags-input').value += text;
                                                    }
                                                </script>
                                                <?php if($h1<>0 or $h8<>0 or $h6<>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($h1<>0){?><li><a href="#tab-image" onclick="loadFunction('../ajax/ajax_medya.php','#mresim', 'resim');"><?php echo $sdil[209]; //Resimler?></a></li><?php }?>
                                                            <?php if($h8<>0){?><li><a href="#tab-videos"  onclick="loadFunction('../ajax/ajax_medya.php','#mvideo', 'video');"><?php echo $sdil[210]; //Videolar?></a></li><?php }?>
                                                            <?php if($h6<>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($h1<>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($h8<>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($h6<>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($h7<>0){?>
                                                    <div id="tab-extra" class="v8-tabs-content" style="min-height:500px; height: auto !important;">
                                                        <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\"></div>");
                                                        </script>
                                                    </div>
                                                <?php }?>
                                                <?php if($module["uye_bankinfo"]=="1"){?>
                                                    <div id="tab-bankinfo" class="v8-tabs-content" style="min-height:500px; height: auto !important;">
                                                        <?php include('../clients/client_bankinfo.php');?>
                                                    </div>
                                                <?php }?>
                                                <?php if(($_SESSION["kim"]=="Admin" or ($_SESSION["kim"]=="yonetici" and $_SESSION["y1_hesap"]==1))){?>
                                                    <?php if($e8<>0){?>
                                                        <div id="tab-cari" class="v8-tabs-content" style="min-height:500px; height: auto !important;">
                                                            <?php $filter="cari";include('../clients/filter.php');?>
                                                            <script type="text/JavaScript" language="JavaScript">
                                                                jQuery(document).ready(function (){
                                                                    loadFunction('../clients/ajax_client_current.php','#icari', '');
                                                                });
                                                                document.write("<div id=\"icari\"></div>");
                                                            </script>
                                                        </div>
                                                    <?php }}?>
                                                    <?php if(($_SESSION["kim"]=="Admin" or ($_SESSION["kim"]=="yonetici" and $_SESSION["y1_hizmet"]==1))){?>
                                                        <?php if($g5<>0){?>
                                                            <div id="tab-hizmet" class="v8-tabs-content" style="min-height:500px; height: auto !important;">
                                                                <?php $filter="hizmet";include('../clients/filter.php');?>
                                                                <script type="text/JavaScript" language="JavaScript">
                                                                    jQuery(document).ready(function (){
                                                                        loadFunction('../clients/ajax_client_service.php','#ihizmet', '');
                                                                    });
                                                                    document.write("<div id=\"ihizmet\"></div>");
                                                                </script>
                                                            </div>
                                                        <?php }}?>
                                                        <?php if($g9<>0 and (($_SESSION["kim"]=="Admin") or ($_SESSION["kim"]=="yonetici" and $_SESSION["y8_teklifler"]<>0))){?>
                                                            <div id="tab-services" class="v8-tabs-content" style="min-height:500px; height: auto !important;">
                                                                <div class="v3-row">
                                                                    <?php include("../clients/client_services.php");?>
                                                                </div>
                                                            </div>
                                                        <?php }?>
                                                        <?php if($jsi["ictip"]=="personel" or $jsi["ictip"]=="yonetici"){?>
                                                            <div id="tab-hrs" class="v8-tabs-content" 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_hrs.php','#ihrs', '');
                                                                        });
                                                                        document.write("<div id=\"ihrs\"></div>");
                                                                    </script>
                                                                </div>
                                                            </div>
                                                        <?php }?>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </body>
                                    <?php echo $footer?>
                                    <script>
                                        <?php for ($i = 0; $i <= 30; $i++) {$ys .= ".y".$i.", ";}?>
                                        jQuery('<?php echo rtrim($ys,", ")?>').change(function() {
                                            <?php for ($i = 0; $i <= 30; $i++){ ?>
                                                $x = 0;
                                                jQuery(".y<?php echo $i?>").each(function(index) {
                                                    if (jQuery(this).prop('checked')) {
                                                        $x++;
                                                    }
                                                });
                                                if ($x > 0) {
                                                    jQuery('#y<?php echo $i?>').prop('checked', true);
                                                } else {
													//jQuery('#y<?php echo $i?>').prop('checked', false);
                                                } 
                                            <?php }?>
                                        });
                                    </script>
                                    </html>
	<?php
	if($_GET["durum"] == "kaydet"){
		//Onay Maili
		if($m15==2 and $rs["s4"]<>1 and $_POST["s4"]==1){
			$mesaj  = "
			<h3>".translate("+#Kullanıcı Aktivasyonu")."</h3>
			<b>".$rs["t1"].";</b><br>".translate("+user_mail_approved")."
			";
			$malici = base64_decode($rs["t2"]);
			$konu       = translate("+#Kullanıcı Aktivasyonu");
			$path       =   "../../../";
			$mesaj  = $design_top.$mesaj.$design_bottom;
			emailgonder($malici,$konu,$cc,$mesaj);
		}
		//Onay Maili
		if(!empty($_POST["s1"])){$ss1=$_POST["s1"];}else{$ss1="0";}
		if(!empty($_POST["s2"])){$ss2=$_POST["s2"];}else{$ss2="0";}
		if(!empty($_POST["s3"])){$ss3=$_POST["s3"];}else{$ss3="0";}
		if(!empty($_POST["s4"])){$ss4=$_POST["s4"];}else{$ss4="0";}
		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";}
		$sn11 = implode(',',$_POST["areas"]);
		$larr = array(
			"ulke" => $_POST["ulke"],
			"sehir" => $_POST["sehir"],
			"ilce" => $_POST["ilce"],
			"semt" => $_POST["semt"],
			"koordinat" => $_POST["mkoordinat"],
			"adres" => $_POST["madres"]
		);
		$rjsl = json_encode($larr, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_NUMERIC_CHECK);
		$iarr = array();
		foreach ($_POST as $key => $value){
			if(substr($key,0,1)=="i"){
				$iarr = $iarr + array( $key => $value);
			}
		}
		$rjsi = json_encode($iarr, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_NUMERIC_CHECK);
		$marr = array();
		foreach ($_POST as $key => $value){
			if(substr($key,0,1)=="m"){
				$marr = $marr + array( $key => $value);
			}
		}
		$rjsm = json_encode($marr, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_NUMERIC_CHECK);
		$yarr = array();
		foreach ($_POST as $key => $value){
			if(substr($key,0,1)=="y"){
				$yarr = $yarr + array( $key => $value);
			}
		}
		$rjsy = json_encode($yarr, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_NUMERIC_CHECK);
		$Sql = mysqli_query($conn, "update t5 set i1='".addslashes(stripslashes($_POST["xi1"]))."', t1='".addslashes(stripslashes($_POST["ut1"]))."', t2='".base64_encode($_POST["ut2"])."', t3='".base64_encode($_POST["t3"])."', t4='".$_POST["t4"]."', t5='".$_POST["t5"]."', n5='".$_POST["n5"]."', t6='".$_POST["t6"]."', t7='".$_POST["t7"]."', t8='".$_POST["t8"]."', t9='".$_POST["t9"]."', t10='".$_POST["t10"]."', t11='".$_POST["t11"]."', t12='".$_POST["t12"]."', t13='".$_POST["t13"]."', t14='".base64_encode($_POST["t14"])."', s1='".$ss1."', s2='".$ss2."', s3='".$ss3."', s4='".$ss4."', s5='".$ss5."', s6='".$ss6."', s7='".$ss7."', s8='".$ss8."', s9='".$ss9."', s10='".$ss10."', s11='".$ss11."', s13='".$ss13."', s19='".$ss19."', n1='".addslashes(stripslashes($_POST["n1"]))."', n2='".addslashes(stripslashes($_POST["n2"]))."', n3='".$_POST["n3"]."', n4='".$_POST["un4"]."', n9='".$_POST["n9"]."', n10='".addslashes(stripslashes($rjsy))."', n11='".$sn11."', 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"]."");
		echo location("?ne=".$_GET["ne"]."&islem=".$_GET["islem"]."&id=".$_GET["id"]."&durum=ok",self,500,1);
	}elseif ($_GET["durum"]=="pdf"){
		$sql5=mysqli_query($conn, "select * from t5 where id='".$_GET["id"]."'"); $rs5=mysqli_fetch_assoc($sql5);
		$url="".$weburl."/".$crmpath."/modules/print/print.php?ne=".$_GET["ne"]."&id=".$_GET["id"]."&ts1=".$_GET["ts1"]."&ts2=".$_GET["ts2"]."&durum=ucari";
		$pdfname="".translate("+Hesap_Ozeti")."_".date("d-m-Y").".pdf";
		$expath="../../../";
		$expdf=expdf($url,$pdfname,$expath);
		$mesaj  = "".translate("+Sayın")." <b>".$rs5["t1"].";</b><br>".translate("+cari_mtext")."<br><br>";
		$mesaj  = "".$mesaj." <a href=\"".$weburl."/deppo/dosya/".$expdf."\" target=\"_blank\">".translate("+Dokümanı incelemek için lütfen tıklayınız")."</a><br><br>";
		$malici     = base64_decode($rs5["t2"]);
		$konu       = "".translate("+Hesap Özeti")."";
		$path="../../../";
		$mesaj      = $design_top.$mesaj.$design_bottom;
		emailgonder($malici,$konu,$cc,$mesaj);
		echo location("?ne=".$_GET["ne"]."&islem=".$_GET["islem"]."&id=".$_GET["id"]."&durum=ok#&tab-cari",self,500,1);
	}elseif ($_GET["durum"]=="empty"){
		$sqlc=mysqli_query($conn, "select * from t4 where s1='".$_GET["id"]."'"); while($rsc=mysqli_fetch_assoc($sqlc)){
			$sql = mysqli_query($conn, "delete from genel where ne='not' and s2=".$rsc["id"]."");
		}
		$sql = mysqli_query($conn, "delete from t4 where s1=".$_GET["id"]);
		echo location("?ne=".$_GET["ne"]."&islem=".$_GET["islem"]."&id=".$_GET["id"]."&durum=ok#&tab-cari",self,500,1);
	}elseif ($_GET["durum"]=="call"){
		$sql = mysqli_query($conn, "delete from t4 where ne='cari' and s1=".$_GET["id"]."");
		echo location("?ne=".$_GET["ne"]."&islem=".$_GET["islem"]."&id=".$_GET["id"]."&durum=ok#&tab-cari",self,500,1);
	}elseif($_GET["durum"] == "klonla"){
		$Sql = mysqli_query($conn, "update t5 set s4='0', ts2=now() where id=".$_GET["id"]."");
		$Sql = $conn->query("insert into t5 (t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13,s14,s15,s16,s17,s18,s19,s20,n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n16,n17,pb1,pb2,pb3,pb4,pb5,ne,ts1) values ('".$rs["t1"]."', '".$rs["t2"]."', '".$rs["t3"]."', '".$rs["t5"]."', '".$rs["t6"]."', '".$rs["t7"]."', '".$rs["t8"]."', '".$rs["t9"]."', '".$rs["t10"]."', '".$rs["s1"]."', '".$rs["s2"]."', '".$rs["s3"]."', '1', '".$rs["s5"]."', '".$rs["s6"]."', '".$rs["s7"]."', '".$rs["s8"]."', '".$rs["s9"]."', '".$rs["s10"]."', '".$rs["s11"]."', '".$rs["s12"]."', '".$rs["s13"]."', '".$rs["s14"]."', '".$rs["s15"]."', '".$rs["s16"]."', '".$rs["s17"]."', '".$rs["s18"]."', '".$rs["s19"]."', '".$rs["s20"]."', '".$rs["n1"]."', '".$rs["n2"]."', '".$rs["n3"]."', '".$rs["n4"]."', '".$rs["n5"]."', '".$rs["n6"]."', '".$rs["n7"]."', '".$rs["n8"]."', '".$rs["n9"]."', '".$rs["n10"]."', '".$rs["n16"]."', '".$rs["n17"]."', '".$rs["pb1"]."', '".$rs["pb2"]."', '".$rs["pb3"]."', '".$rs["pb4"]."', '".$rs["pb5"]."', '".$rs["ne"]."', now())");
		$id=$conn->insert_id;
		echo location("?ne=".$_GET["ne"]."&islem=d".$_GET["ne"]."&id=".$id."&durum=okc",self,500,1);
	}
include("../public/log.php");
?>