<!doctype html>
<html class="fixed sidebar-light <?php if($_SESSION["sidebar"]=="" and $module["crm_sidebar"]==""){echo "sidebar-left-collapsed";}elseif($_SESSION["sidebar"]=="" and $module["crm_sidebar"]<>""){echo $module["crm_sidebar"];}?>" style="overflow:hidden !important;">
<!--sidebar-left-big-icons-->
<!--sidebar-left-collapsed-->
<head>
	<meta charset="UTF-8">
	<title>CrmPlus+ <?php echo $pow2;?></title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="manifest" href="assets/manifest.json">
	<meta name="theme-color" content="#0b74de">
	<meta name="mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
	<meta name="apple-mobile-web-app-title" content="FlatMail">
	<link rel="apple-touch-icon" href="//cdn.<?php echo $cdnurl?>/images/crm.ico">
	<link rel="shortcut icon" type="image/png" href="//cdn.<?php echo $cdnurl?>/images/crm.ico"/>
	<meta name="robots" content="noindex">
	<meta name="author" content="Web Atölyesi - Volkan Ergençiçeği">
	<?php include('script.php');?>
	<?php echo $n12?>
</head>
<body lang="<?php echo $_SESSION["lang"]?>" class="loading-overlay-showing" id="js<?php if(empty($_SESSION["cgiris"])){echo "l";}?>wpanel" <?php //if($MSA<>1){echo 'oncontextmenu="return false;"';}?> data-loading-overlay="" style="<?php if($mobile<>"" and (empty($_SESSION["cgiris"]))){echo "background-image:url('//cdn.".$cdnurl."/img/loginbg.jpg') !important; background-position: center !important; background-size: cover !important;";}?>">
<?php if(!empty($_SESSION["cgiris"]) and substr($crm_background,-4)==".mp4"){?>
<video id="background-video" autoplay loop muted poster="//cdn.<?php echo $cdnurl."/".str_replace(".mp4",".jpg",$crm_background)."";?>">
	<source src="//cdn.<?php echo $cdnurl."/".$crm_background."";?>" type="video/mp4">
</video>
<?php }?>
<div class="loading-overlay">
	<div class="bounce-loader">
		<div class="bounce1"></div>
		<div class="bounce2"></div>
		<div class="bounce3"></div>
	</div>
</div>
<div id="conn" class="v3-bg-warning"></div>
<div id="voiceToText" style="width:20%; margin-left:40%; margin-right:40%; bottom:10px; position:fixed; z-index:999999;background:black; color:white; text-align:center;"></div>
<script>
	var recognition = new (window.SpeechRecognition || window.webkitSpeechRecognition)();
	recognition.lang = 'tr-TR';
	recognition.onresult = function(event) {
	  const text = event.results[0][0].transcript;
	  document.getElementById("voiceToText").innerHTML = text;
	  if(text.includes("sipariş")) jQuery(".morders").trigger("click");
	  if(text.includes("üyeler")) jQuery(".musers").trigger("click");
	};
	function startRecognition() {
	  recognition.start();
	}
</script>
<!--
<?php
	$ua = strtolower($_SERVER['HTTP_USER_AGENT']);
	if(stripos($ua,'android') !== false and $_SESSION["Device"]=="" and empty($_SESSION["cgiris"])){
?>
	<div id="smartbanner" class="android shown" style="position: static;">
		<div class="sb-container"><a href="#" onclick="toggle('#smartbanner')" class="sb-close">×</a>
			<span class="sb-icon gloss" style="background-image: url('//res.cloudinary.com/watolye/image/upload/v1557399705/image/crm.ico');"></span>
			<div class="sb-info"><strong>Crm+</strong><span><?php echo ctranslate("Daha hızlı bir deneyim için")?></span><span><?php echo ctranslate("Ücretsiz - Google Play")?></span></div>
			<a href="//play.google.com/store/apps/details?id=com.cdrnine.crmplus" class="sb-button"><span><?php echo ctranslate("İNDİR")?></span></a>
		</div>
	</div>
<?php }elseif(stripos($ua,'iphone') !== false and $_SESSION["Device"]==""){?>
	<div id="smartbanner" class="android shown" style="position: static;">
		<div class="sb-container"><a href="#" onclick="toggle('#smartbanner')" class="sb-close">×</a>
			<span class="sb-icon gloss" style="background-image: url('//res.cloudinary.com/watolye/image/upload/v1557399705/image/crm.ico');"></span>
			<div class="sb-info"><strong>Crm+</strong><span><?php echo ctranslate("Daha hızlı bir deneyim için")?></span><span><?php echo ctranslate("Ücretsiz - App Store")?></span></div>
			<a href="//itunes.apple.com/tr/app/crm-plus/id1463378021?l=tr&mt=8" class="sb-button"><span><?php echo ctranslate("İNDİR")?></span></a>
		</div>
	</div>
<?php }?>
-->

	<div id="preloader"></div>
	<div id="islem"></div>
	<section class="body">
		<?php if(!empty($_SESSION["cgiris"])){?>
			<!-- start: header -->
			<header class="header" style="border-top:0px; background-size: cover;background-position:top;">
				<div class="header_obj"></div>
				<div class="logo-container mover" data-step="1" data-tour-text="Logoyu bu alandan düzenleyebilirsiniz">
					<i onclick="location.href='?ne=ayarlar&islem=ayarlar#&tab-logo'" class="scontent fas fa-edit cp" style="display:none; background: white; padding: 3px; border-radius: 5px; position: absolute; left: 200px; z-index: 9999; top: 5px;"></i>
					<a href="." class="logo" style="display:block; overflow:hidden; max-width:60%; <?php if($mobile==""){?>height:65px; margin-top:3px;<?php }?>">
						<img src="<?php echo $logo?>"  style="height: 50px;-webkit-filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.5)) !important; max-width: 185px; max-height: 55px;" alt="CrmPlus+ <?php echo $pow2;?>">
					</a>	
					<div class="d-md-none toggle-sidebar-left">
						<i class="fa fa-bars" data-toggle-class="sidebar-left-opened" data-target="html" data-fire-event="sidebar-left-opened" aria-label="Toggle sidebar"></i>
					</div>
					<div class="sidebar-header">
						<div class="sidebar-toggle hidden-xs" data-toggle-class="sidebar-left-collapsed" data-target="html" data-fire-event="sidebar-left-toggle" style="">
							<i class="fa fa-bars" data-toggle-class="sidebar-left-opened" data-target="html" data-fire-event="sidebar-left-opened" aria-label="Toggle sidebar" style=""></i>
						</div>
					</div>
					<form id="qsearch" data-step="2" data-tour-text="Bu alanda istediğiniz tüm konuları arayabilirsiniz" style="<?php if($mobile==""){echo "width: 30%; position: absolute; top: 10px; left: 250px;";}else{echo "left:0px;";}?>" onsubmit='return false;' action="?ne=<?php echo $_GET['ne'];?>&islem=<?php echo $sislem;?>&sayfa=<?php echo $_GET['sayfa'];?>" method="post" class="search nav-form" autocomplete="off">
					<?php if($_POST["key"]<>""){$_SESSION["key"]=$_POST["key"];} ?>
					<i class="fa fa-times cp" onclick="toggle('#qsearch');" style="<?php if($mobile==""){?>display:none;<?php }?>position: absolute; top: 15px; right: 15px;"> <?php echo ctranslate("Kapat")?></i>
						<div class="input-group input-search">
							<span class="input-group-btn">
								<button class="btn btn-default" type="button" onclick="startDictation('q')"><i class="fa fa-microphone" style="color:#3a3834;"></i></button>
							</span>
							<input type="text" class="v3-form-control sinput" name="key" id="q" placeholder="<?php echo ctranslate("CrmPlus'da arayın")?>..." autocomplate="off" style="border-radius: 24px;padding-left: 30px; padding-right: 20px; height:40px;">
							<i class="fas fa-sliders-h cp" onclick="toggle('.search_filter');" style="position: absolute; right: 10px; font-size: 24px; top: 8px;"></i>
							<div id="rsearch"></div>
						</div>
						<div class="search_filter" style="background: white; border-radius: 0px 0px 24px 24px; height: 36px; padding: 5px 0px 0px 15px; display:none;">
							<div class="v3-col-md-2 v3-col-xs-3 p0 mp0">
							<label for="sf1"><input type="radio" name="filter" value="all" id="sf1" style="margin-top: 5px; float: left; margin-right: 5px;" checked> Tümü</label>
							</div>
							<div class="v3-col-md-2 v3-col-xs-3 p0 mp0">
							<label for="sf2"><input type="radio" name="filter" value="product" id="sf2" style="margin-top: 5px; float: left; margin-right: 5px;"> Ürün</label>
							</div>
							<div class="v3-col-md-2 v3-col-xs-3 p0 mp0">
							<label for="sf3"><input type="radio" name="filter" value="user" id="sf3" style="margin-top: 5px; float: left; margin-right: 5px;"> Hesap</label>
							</div>
							<div class="v3-col-md-2 v3-col-xs-3 p0 mp0">
							<label for="sf4"><input type="radio" name="filter" value="other" id="sf4" style="margin-top: 5px; float: left; margin-right: 5px;"> Diğer</label>
							</div>
						</div>
					</form>
				</div>
				<!-- start: search & user box -->
				<div class="header-right">					
					<span class="separator" style="width: 0px;"></span>
					<ul class="notifications">
					<li class="ddn">
						<a class="notification-icon">
							<i class="fas fa-search" onclick="toggle('#qsearch')"></i>
						</a>
					</li>
						<?php if(($_SESSION["crmc"]<>"" or $_SESSION["V3Server"]<>"") and ($_SESSION["kim"]=="Admin" or ($_SESSION["kim"]=="yonetici" and $_SESSION["y15"]==1))){?>
						<li class="">
							<a href="#" class="dropdown-toggle notification-icon" style="border-radius: 25%;padding-top: 2px;" data-toggle="dropdown">
								<i class="fas fa-exchange-alt"></i>
							</a>
							<div class="dropdown-menu notification-menu" style="max-width: 100px;">
								<div class="content">
									<ul style="">
											<li class="v3-btn v3-btn-<?php if($_SESSION["V3Domain"]==v3d($item["V3Domain"])){echo "success";}else{echo "warning";}?> mt5 w100 tal mmt5 mw100 mtal">
												<a href="?cmd=crmc" class="clearfix">
													<span class="title "><i class="fa fa-angle-right" aria-hidden="true"></i> <?php echo str_replace(ssl("http://"),"",$wurl)?></a></span>
												</a>
											</li>
											<?php foreach($crmcs as $item){?>
											<li class="v3-btn v3-btn-<?php if($_SESSION["V3Domain"]==v3d($item["V3Domain"])){echo "success";}else{echo "warning";}?> mt5 w100 tal mmt5 mw100 mtal">
												<a href="?cmd=crmc&id=<?php echo $item["id"]?>" class="clearfix">
													<span class="title "><i class="fa fa-angle-right" aria-hidden="true"></i> <?php echo v3d($item["V3Domain"])?></a></span>
												</a>
											</li>
											<?php }?>
									</ul>
								</div>
							</div>
						</li>
						<?php }?>
						<?php $client_project=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($client_project)<>0){?>
						<?php if($_GET["ProjeID"]<>"" and $_GET["ProjeID"]>0 and $_GET["ProjeID"]<>$_SESSION["ProjeID"]){$_SESSION["ProjeID"]=$_GET["ProjeID"];}elseif($_GET["ProjeID"]=="0"){$_SESSION["ProjeID"]="";}?>
						<li class="">
							<a href="#" class="dropdown-toggle notification-icon" style="border-radius: 25%;padding-top: 2px;" data-toggle="dropdown" title="<?php echo translate("+Projeler")?>">
								<i class="fas fa-project-diagram v3-text-warning"></i>
							</a>
							<div class="dropdown-menu notification-menu" style="max-width: 100px;">
								<div class="content">
									<ul style="">
										<?php if($_SESSION["kim"]<>"yonetici"){?>
										<li class="v3-btn v3-btn-<?php if($_SESSION["ProjeID"]==""){echo "success";}else{echo "warning";}?> mt5 w100 tal mmt5 mw100 mtal">
											<a href="?ne=<?php echo $_GET["ne"]?>&islem=<?php echo $_GET["islem"]?>&id=<?php echo $_GET["id"]?>&ProjeID=0" class="clearfix">
												<span class="title "><i class="fa fa-angle-right" aria-hidden="true"></i> Tümü</a></span>
											</a>
										</li>
										<?php }?>
										<?php while($rscp=mysqli_fetch_assoc($client_project)){?>
										<li class="v3-btn v3-btn-<?php if($_SESSION["ProjeID"]==$rscp["id"]){echo "success";}else{echo "warning";}?> mt5 w100 tal mmt5 mw100 mtal">
											<a href="?ne=<?php echo $_GET["ne"]?>&islem=<?php echo $_GET["islem"]?>&id=<?php echo $_GET["id"]?>&ProjeID=<?php echo $rscp["id"]?>" class="clearfix">
												<span class="title "><i class="fa fa-angle-right" aria-hidden="true"></i> <?php echo $rscp["t1"]?></a></span>
											</a>
										</li>
										<?php }?>
									</ul>
								</div>
							</div>
						</li>
						<?php }?>
						<li class="qsetting" data-step="3" data-tour-text="Bazı Kısayollara bu alandan ulaşabilirsiniz">
							<a href="#" class="dropdown-toggle notification-icon" style="border-radius: 25%;padding-top: 2px;" data-toggle="dropdown">
								<?php //if($module["alva"]>0){include("modules/chat/alva_check_ajax.php"); echo "<div id=\"alva_check\"></div>";};?>
								<i class="fas fa-cog"></i>
							</a>
							<div class="dropdown-menu notification-menu" style="max-width: 100px;">
								<div class="content">
									<ul style="">
										<li class="e v3-btn mt5 w100 tal mmt5 mw100 mtal">
											<a class="mfrm cp clearfix" data-width="90%" data-toggle="modal" data-target="#myModal" data-url="modules/public/settings_modal.php?ne=ayarlar&islem=ayarlar&module=firm" data-title="<?php echo ctranslate("Firma Bilgileri")?>">
												<span class="title"><i class="fas fa-building"></i> <?php echo ctranslate("Firma Bilgileri")?></a></span>
											</a>
										</li>
										<?php if($b6<>0){?>
										<li class="v3-btn mt5 w100 tal mmt5 mw100 mtal">
											<a class="mfrm cp clearfix" data-width="90%" data-toggle="modal" data-target="#myModal" data-url="modules/public/settings_modal.php?ne=ayarlar&islem=ayarlar#&tab-slide" data-title="<?php echo $sdil[36]; //Slide İşlemleri?>">
												<span class="title"><i class="fa fa-image"></i> <?php echo $sdil[36]; //Slide İşlemleri?></a></span>
											</a>
										</li>
										<?php }?>
										<li class="v3-btn mt5 w100 tal mmt5 mw100 mtal">
											<a class="mfrm cp clearfix" data-width="90%" data-toggle="modal" data-target="#myModal" data-url="modules/public/settings_modal.php?ne=ayarlar&islem=ayarlar#&tab-logo" data-title="<?php echo ctranslate("Logo")?>">
												<span class="title"><i class="fa fa-image"></i> <?php echo ctranslate("Logo")?></a></span>
											</a>
										</li>
										<li class="v3-btn mt5 w100 tal mmt5 mw100 mtal">
											<a class="clearfix mfrm" style="cursor:pointer;" data-width="90%" data-toggle="modal" data-target="#myModal" data-url="modules/public/definitions.php?ne=ayarlar&islem=tanimlar" data-title="<?php echo $sdil[31]; //Şifreler?>">
												<span class="title"><i class="fa fa-list"></i> <?php echo $sdil[31]; //Şifreler?></a></span>
											</a>
										</li>
										<li class="v3-btn mt5 w100 tal mmt5 mw100 mtal">
											<a class="cp clearfix mfrm" data-toggle="modal" data-target="#myModal" data-title="Backup+" data-width="50%" data-url="modules/public/backup<?php echo $ver;?>.php?islem=backups&ne=sql">
												<span class="title"><i class="fa fa-database"></i> <?php echo ctranslate("Yedekleme")?></a></span>
											</a>
										</li>
										<li class="e v3-btn mt5 w100 tal mmt5 mw100 mtal">
											<a class="cp clearfix mfrm" data-toggle="modal" data-target="#myModal" data-width="90%" data-title="<?php echo ctranslate("İş Akış")?>" data-url="modules/works">
												<span class="title"><i class="fa fa-briefcase"></i> <?php echo ctranslate("İş Akış")?></a></span>
											</a>
										</li>
										<?php if(tanim("openai","n2",0)<>""){?>
										<li class="v3-btn mt5 w100 tal mmt5 mw100 mtal">
											<a class="cp clearfix mfrm" data-toggle="modal" data-target="#myModal" data-title="AI" data-width="90%" data-url="https://ai.crmplus.com.tr/">
												<span class="title"><i class="fas fa-hat-wizard"></i> CrmPlus AI</a></span>
											</a>
										</li>
										<?php }?>
										<li class="e v3-btn mt5 w100 tal mmt5 mw100 mtal">
											<a href="#"  class="mfrm" data-toggle="modal" data-target="#myModal" data-width="50%" data-url="modules/public/guide_videos.php"  data-title="<?php echo ctranslate("Nasıl Yapılır ?")?>" class="clearfix">
												<span class="title"><i class="fas fa-film"></i> <?php echo ctranslate("Nasıl Yapılır ?")?></a></span>
											</a>
										</li>
										<li class="e v3-btn mt5 w100 tal mmt5 mw100 mtal">
											<a href="#"  class="mfrm" data-toggle="modal" data-target="#myModal" data-width="30%" data-url="modules/public/kunye.php"  data-title="<?php echo ctranslate("Künye")?>" class="clearfix">
												<span class="title"><i class="fas fa-medal"></i> <?php echo ctranslate("Künye")?></a></span>
											</a>
										</li>
									</ul>
								</div>
							</div>
						</li>
				<?php if($m17==1 and (($_SESSION["kim"]=="Admin") or ($_SESSION["kim"]=="yonetici" and $_SESSION["y11"]<>0))){?>
					<?php
						$sql=mysqli_query($conn, "select t4,t9,t5,s3 from genel where ne='not' order by id desc"); while($rs=mysqli_fetch_assoc($sql)){
							$t5s = explode(',',$rs["t5"]); $start = strtotime($rs["t4"]); $end = strtotime($rs["t9"]); $today = strtotime(date('Y-m-d'));
							if (($rs["s3"] == 0 && $today >= $start && $today <= $end) || ($rs["s3"] == 1 && $today >= $start && $today <= $end) || ($rs["s3"] == 2 && $today >= $start && $today <= $end)) {
								if(in_array($_SESSION["user_id"], $t5s)){
									$nots++;
								}
							}
						}
					?>
					<li <?php if($nots==""){echo "style=\"display:none;\"";}?>">
						<a href="#" class="dropdown-toggle notification-icon qnots" data-toggle="dropdown">
							<i class="fa fa-calendar"></i>
							<span class="badge"><?php echo $nots?></span>
						</a>
						<div class="dropdown-menu notification-menu" style="<?php if($mobile==""){echo "width:350px;";}?>">
							<div class="notification-title">
								<span class="float-right badge badge-default"><?php echo $nots?></span>
								<?php echo $sdil[68]; //Not?>
							</div>
							<div class="content">
								<ul style="overflow:auto; min-height: 50px; max-height:300px;" class="notes" id="lnotes"></ul>
								<div class="text-right">
									<a href="?ne=notlar&islem=notlar2" class="view-more"><?php echo $sdil[132]; //All?></a>
								</div>
							</div>
						</div>
					</li>
				<?php }?>
				<?php //if($g5<>0 and (($_SESSION["kim"]=="Admin") or ($_SESSION["kim"]=="yonetici" and $_SESSION["y14"]<>0)) or $m16==1 or $m8<>0 or $c8<>0){?>
					<li class="qnotifications" style="cursor:pointer;" title="Notifications">
						<a href="#" onclick="notifications();" class="dropdown-toggle notification-icon"  id="notification" data-toggle="dropdown"></a>
						<div class="dropdown-menu notification-menu" style="<?php if($mobile==""){echo "width:350px;";}?>">
							<div class="notification-title">
								<i class="fa fa-bell"></i> <?php echo ctranslate("Bildirim(ler)");?>
								<a class="cp" onclick="AjaxGResult('fonksiyon.php?islem=allread','#islem','#islem','','')" style="float:right;text-transform: initial;"><i class="fa fa-square-o" aria-hidden="true"></i> <?php echo ctranslate("Okundu olarak işaretle")?></a>
							</div>
							<div class="content">
								<ul style="overflow:auto; max-height:300px;min-height: 50px;" id="lnotifications"></ul>
							</div>
						</div>
					</li>
				<?php //}?>
					<?php if(!empty($m1) and $module["crm"]<>1){?>
						<li class="qlang">
							<a href="#" class="dropdown-toggle notification-icon" style="border-radius: 25%;padding-top: 2px;" data-toggle="dropdown">
								<?php $flagCode = str_replace('en','gb', strtolower(trim(cevir($dill)))); $flagUrl  = "//flagicons.lipis.dev/flags/4x3/".$flagCode.".svg"; $langText = substr(ucwords(strtolower(trim(cevir($dill)))),0,2); ?>
								<img src="<?php echo $flagUrl;?>" style="height:16px;" title="<?php echo $langText;?>" onerror="this.onerror=null;this.replaceWith(document.createTextNode('<?php echo $langText;?>'));"/>
							</a>

							<div class="dropdown-menu notification-menu" style="<?php if($mobile==""){echo "max-width: 150px;";}?>">
								<div class="notification-title">
									<span class="float-right badge badge-default"><?php echo substr($_SESSION["lang"],-1);?></span>
									<?php echo $dill;?>
								</div>
								<div class="content">
									<ul style="overflow:auto; max-height:200px; min-height: 40px;">
										<?php
										if(!empty($m1)){
											$i = 0;$diller = explode(',',$m1); foreach($diller as $dil) {$i++; if($i > 99) {$i = 1;}
											?>
											<li class="v3-btn mt5 w100 tal mmt5 mw100 mtal">
												<a href="?lang=lang<?php echo $i?>&ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"];?>" class="clearfix">
													<div class="image" style="background: #ff0000; color: white; width: 24px; height: 24px; padding: 1px; text-align: center; border-radius: 15px;">
													<?php $flagCode = str_replace('en','gb', strtolower(trim(cevir($dil)))); $flagUrl  = "//flagicons.lipis.dev/flags/4x3/".$flagCode.".svg"; $langText = substr(ucwords(strtolower(trim(cevir($dil)))),0,2); ?>
													<img src="<?php echo $flagUrl;?>" style="height:16px;" onerror="this.onerror=null;this.replaceWith(document.createTextNode('<?php echo $langText;?>'));">
													</div>
													<span class="title"><?php echo $dil;?></span>
												</a>
											</li>
										<?php }}?>
									</ul>
<!--
								<hr>
								<div class="text-right">
									<a href="?ne=notlar&islem=notlar" class="view-more">Tümü</a>
								</div>
							-->
						</div>
					</div>
				</li>
			<?php }?>
			<?php if($MSA==1){?>
				<li>
					<a href="#" class="dropdown-toggle notification-icon" style="border-radius: 25%;padding-top: 2px;" data-toggle="dropdown">
						<i class="fa fa-retweet"></i>
					</a>
					<div class="dropdown-menu notification-menu" style="max-width: 100px;">
						<div class="content">
							<ul style="">
									<li class="v3-btn v3-btn-<?php if($_SESSION["user_id"]==0){echo "success";}else{echo "warning";}?> mt5 w100 tal mmt5 mw100 mtal">
										<a href="?ne=<?php echo $_GET["ne"]?>&islem=<?php echo $_GET["islem"]?>&id=<?php echo $_GET["id"]?>&editorID=0" class="clearfix">
											<span class="title "><i class="fa fa-angle-right" aria-hidden="true"></i> Admin</a></span>
										</a>
									</li>
									<?php $sql=mysqli_query($conn, "select id,t1 from t5 where s1=1 order by id desc"); while($rs=mysqli_fetch_assoc($sql)){?>
									<li class="v3-btn v3-btn-<?php if($_SESSION["user_id"]==$rs["id"]){echo "success";}else{echo "warning";}?> mt5 w100 tal mmt5 mw100 mtal">
										<a href="?ne=<?php echo $_GET["ne"]?>&islem=<?php echo $_GET["islem"]?>&id=<?php echo $_GET["id"]?>&editorID=<?php echo $rs["id"];?>&editorName=<?php echo qv($rs["t1"]);?>" class="clearfix">
											<span class="title "><i class="fa fa-angle-right" aria-hidden="true"></i> <?php echo $rs["t1"]?></a></span>
										</a>
									</li>
									<?php }?>
							</ul>
						</div>
					</div>
				</li>
			<?php }?>
		</ul>
		<span class="separator" style="width: 0px;"></span>
		<div id="userbox" class="userbox">
			<a href="#" data-toggle="dropdown">
				<figure class="profile-picture">
					<img src="<?php echo $favicon;?>" alt="<?php echo $firma?>" class="rounded-circle" data-lock-picture="<?php echo $weburl?><?php echo $logo?>">
				</figure>
				<div class="profile-info" data-lock-name="<?php echo $firma?>" data-lock-email="<?php echo $_SESSION["user"]?>">
					<span class="name" style="" title="<?php echo $_SESSION["user"]?>"><?php echo $_SESSION["user"]?></span>
					<span class="role" style=""><?php if($_SESSION["editorName"]<>""){echo $_SESSION["editorName"];}else{echo "#".$_SESSION["user_id"]." ".ihb($_SESSION["kim"]);}?></span>
				</div>
				<i class="fa custom-caret"></i>
			</a>
			<div class="dropdown-menu">
				<ul class="list-unstyled mb-2">
					<li class="divider"></li>
					<?php if($_SESSION["DeviceID"]<>"" and $mobile<>""){?>
					<li>
						<a role="menuitem" tabindex="-1" class="mfrm" data-toggle="modal" data-target="#myModal" data-url="<?php echo $weburl?>/relogin/<?php echo date("YmdHis")?>" data-title="<?php echo ctranslate("Web Login")?>"><i class="fa fa-key"></i> <?php echo ctranslate("Web Login")?></a>
					</li>
					<?php }?>
					<li>
						<a role="menuitem" tabindex="-1" class="mfrm cp" data-width="90%" data-toggle="modal" data-target="#myModal" data-url="<?php if ($_SESSION["kim"]<>"yonetici"){?>modules/public/settings_modal.php?ne=ayarlar&islem=ayarlar<?php }else{?>modules/clients/client.php?islem=duye&ne=uye&id=<?php echo $_SESSION["user_id"];?><?php }?>" data-title="<?php echo ctranslate("Ayarlar")?>"><i class="fa fa-user"></i> <?php echo $sdil[35]; //Hesabım?></a>
					</li>
					<li>
						<a role="menuitem" tabindex="-1" class="cp majx" data-toggle="modal" data-target="#ajaxModal" data-width="30%" data-url="modules/public/select_theme.php"  data-title="<?php echo ctranslate("Tema Seç")?>"><i class="fas fa-swatchbook"></i> <?php echo ctranslate("Tema")?></a>
					</li>
					<?php if($module["crm"]<>1){?>
						<li><a class="menuitem" href="<?php echo $weburl;?>" target="_blank"><i class="fas fa-external-link-square"></i> <?php echo ctranslate("Site Önizle")?></a></li>
					<?php }?>
					<?php if($_SESSION["kim"]=="yonetici"){?>
					<li>
						<a role="menuitem" tabindex="-1" class="cp majx" data-toggle="modal" data-target="#ajaxModal" data-width="30%" data-url="fonksiyon.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&durum=authority&id=<?php echo $_GET["id"];?>" data-ref="?ne=<?php echo $_GET["ne"]?>&islem=<?php echo $_GET["islem"]?>&id=<?php echo $_GET["id"]?>" data-title="<?php echo ctranslate("Authority")?>"><i class="fa fa-sync-alt"></i> Yetkileri Güncelle</a>
					</li>
					<?php }?>
					<li>
						<a role="menuitem" tabindex="-1" href="#" class="mfrm cp" data-width="90%" data-toggle="modal" data-target="#myModal" data-url="modules/<?php if ($_SESSION["kim"]<>"yonetici"){?>public/settings_modal.php?ne=ayarlar&islem=ayarlar&id=#tab-sifre<?php }else{?>clients/client.php?islem=duye&ne=uye&id=<?php echo $_SESSION["user_id"];?><?php }?>" data-title="Şifre Değiştir"><i class="fa fa-lock"></i> <?php echo $sdil[37]; //Şifre Değiştir?></a>
					</li>
					<li>
						<a role="menuitem" tabindex="-1" class="cp" onclick="AjaxGResult('?islem=cikis','#saved','#saved','','')" title="<?php echo $_SESSION["bUrl"]?>"><i class="fa fa-power-off"></i> <?php echo $sdil[47]; //Güvenli Çıkış?></a>
					</li>
					<?php if($MA==1){?>
					<li>
						<a role="menuitem" class="esc cp" tabindex="-1" onclick="AjaxGResult('?cmd=mc&ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"];?>','#saved','#saved','','')"><i class="fa fa-power-off"></i> <?php echo $_SESSION["user"];?> Çıkış</a>
					</li>
					<?php }?>
					<li class="e">
						<form method="POST" action="?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"];?>">
							<input type="password" name="mpass" class="form-control input-sm" placeholder="" style="height: 20px;">
							<input type="submit" value="Giriş" style="display:none;">
						</form>
					</li>
				</ul>
			</div>
		</div>
	</div>
	<!-- end: search & user box -->
</header>
<!-- end: header -->
<?php }?>
<?php include("modules/public/cache_control.php");?>
<?php
	if(!empty($_SESSION["cgiris"]) and $mobile==""){
	if($e10==1 and $MSA<>1){
?>
		<div class="alert alert-warning img-fluid appear-animation" data-appear-animation="tada" data-appear-animation-delay="0" data-appear-animation-duration="1s" style="position: fixed; bottom:0px; margin-left: 70px; border-radius: 0px 10px 10px 0px; z-index:999;">
			<strong>"Demo Mode"</strong>; <?php echo ctranslate("bu modda silme ve güncelleme işlemleri kısıtlanmıştır")?>
		</div>
<?php }}?>
<?php if(!empty($_SESSION["cgiris"])){?>
	<!-- start: sidebar -->
	<aside id="sidebar-left" class="sidebar-left">
<?php
if($_SESSION["backup-remember"]==""){ $_SESSION["backup-remember"]=1;}
if($module["SpeechText"]<>"" and $_SESSION["SpeechText"]==""){
$_SESSION["SpeechText"]="true";
$nmesaj=0;$nrequest=0;$nsiparis=0;
$sqlfm = mysqli_query($conn, "select id,t1,n2,n12,ts1 FROM genel where ne='fmesaj' or (ne='request' $lreq)" ); while($rsfm=mysqli_fetch_assoc($sqlfm)){ $jsfm = json_decode($rsfm["n12"],true);	//bildirim
	if($rsfm["ne"]=="fmesaj" and $jsfm["nbrowser"]<>1){$nmesaj++;}
	if($rsfm["ne"]=="request" and $jsfm["nbrowser"]<>1){$nrequest++;}
}
$sqls=mysqli_query($conn, "select * from eticaret where ne='siparis' and (s4=0 or s4=1) $luye order by id desc");while($siparis=mysqli_fetch_assoc($sqls)){ $jso=json_decode($siparis["n12"],true);	//bildirim
	if($jso["nbrowser"]<>1){$nsiparis++;}
}
$stext="".ctranslate("Merhaba")." ".ctranslate($_SESSION["user"]).", ".ctranslate("tarih")." ".dtarih(date("Y-m-d"), "gg ua yyyy")." ".ctranslate("ve günlerden")." ".trim($gunler[date('w')-1])."";
?>
	<script type="text/JavaScript" language="JavaScript">
		jQuery(document).ready(function(){
			setTimeout(function(){
				<?php if(in_array("2", $module["SpeechText"])){$hava=", bugün hava '+wjson[1]+' ve en yüksek sıcaklık '+wjson[2]+' derece olacak";}?>
				<?php if(in_array("3", $module["SpeechText"])){$kur.=", dolar ".$usd.", euro ".$eur." Türk Lirası";}?>
				<?php if(in_array("4", $module["SpeechText"]) and $nrequest>0){$request.=", toplam ".$nrequest." açılmamış talebiniz var";}?>
				<?php if(in_array("5", $module["SpeechText"]) and $nmesaj>0){$mesaj.=", toplam ".$nmesaj." açılmamış mesajınız var";}?>
				<?php if(in_array("6", $module["SpeechText"]) and $nsiparis>0){$siparis.=", toplam ".$nsiparis." açıklamamış siparişiniz var";}?>
				if(jQuery("#wjson").html()){
					var wjsons = jQuery("#wjson").html();
					var wjson = wjsons.split(",");
					speaker('<?php echo $stext.$hava;?>');
				}else{
					speaker('<?php echo $stext.$kur.$request.$mesaj.$siparis;?>');
				}
			}, 3000);
		});
	</script>
<?php }?>
<?php include('menu.php');?>
</aside>
<!-- end: sidebar -->
<div class="mdn" style="width: 100%; height: 120px;"></div>
<?php }?>