<div class="inner-wrapper">
	<?php
	$sayfa = $_GET['sayfa'];
	if($sayfa == "") {$sayfa = 0;}else{$sayfa = ($sayfa-1) * 10;} 
	$sql = mysqli_query($conn, "select * from ".$_SESSION['lang']." where ne='".$_GET["ne"]."' order by id desc limit $sayfa,10"); 
	$sql2 = mysqli_query($conn, "select count(*) FROM ".$_SESSION['lang']." where ne='".$_GET["ne"]."'");$rsay=mysqli_fetch_assoc($sql2);
	?>    
	<section role="main" class="content-body">
		<header class="page-header">
			<h2><?php echo $sdil[32]; //Anket?></h2>
			
			<div class="right-wrapper text-right">
				<ol class="breadcrumbs">
					<li>
						<a href=".">
							<i class="fa fa-home"></i>
						</a>
					</li>
					<li><span>Crm +Plus</span></li>
					<li><span><?php echo $sdil[32]; //Anket?></span></li>
				</ol>
				
				<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
			</div>
		</header>
		<?php if($_GET["durum"]=="ok"){?>
			<div class="alert alert-success">
				<?php echo $sdil[212]; //Islem Basariyla Gerçeklestirilmistir !?>
			</div>
		<?php }?>
		
		<div class="row">
			<div class="col p0">
				<section class="card">
					<header class="card-header">
						<div class="card-actions" id="v-<?php echo $_GET['islem'];?>">
<!--
							<a href="#" class="card-action card-action-toggle" data-card-toggle=""></a>
							<a href="#" class="card-action card-action-dismiss" data-card-dismiss=""></a>
						-->
					</div>
					
					<h2 class="card-title"><?php echo $sdil[32]; //Anket?></h2>
				</header>
				<div class="card-body">
					<table class="table table-no-more table-bordered table-striped mb-0">
						<thead>
							<tr>
								<th class="w1" style="text-align:center;">ID</th>
								<th>
									<span class="column-sort">
										<a href="#" title="Sort up" class="sort-up"></a>
										<a href="#" title="Sort down" class="sort-down"></a>
										</span><?php echo $sdil[32]; //Anket?>
									</th>
									<th class="w20"><?php echo $sdil[40]; //Açıklama?></th>
									<th class="w8"><?php echo $sdil[113]; //Türü?></th>
									<th class="w10"><?php echo $sdil[115]; //Tarih?></th>
									<th class="w8" style="text-align:center;"><?php echo $sdil[213]; //İşlemler?></th>
								</tr>
							</thead>
							
							<tbody>
								<?php while($rs=mysqli_fetch_assoc($sql)){?>
									<?php
									if ($e10==1 and $_SESSION["user"]<>"Master"){
										$yetki=0;
									}else{
										$yetki=1;
									}
									?>					
									<tr data-id="<?php echo $rs["id"];?>">
										<th><a href="?islem=dform&ne=<?php echo $_GET["ne"];?>&id=<?php echo $rs["id"];?>&s2=<?php echo $_GET["s2"];?>" title="<?php echo $sdil[203]; //Düzenle?>" class="with-tip"><?php echo i2a($rs["id"],7);?></a></th>
										<td><?php echo $rs["m1"];?></td>
										<td><?php echo $rs["m3"];?></td>
										<td><?php echo $rs["m2"];?></td>
										<td><?php echo $rs["ts1"];?></td>
										<td style="text-align:center;">
											<div class="input-group-btn">
												<button class="btn btn-primary mbtn" type="submit"><i class="fa fa-refresh"></i><span class="ddn"> <?php echo $sdil[203]; //Güncelle?></span></button>
												<button tabindex="-1" data-toggle="dropdown" class="btn btn-primary dropdown-toggle mbtn"  style="margin-left: 2px;" type="button" aria-expanded="false">
													<span class="ddn"><?php echo $sdil[213]; //İşlemler?> </span><span class="caret"></span>
												</button>
												<div class="dropdown-menu dropdown-menu-right btn-edit-row" x-placement="top-end" style="position: absolute; transform: translate3d(105px, -2px, 0px); top: 0px; left: 0px; will-change: transform;">
													<a style="text-align: left; width: 100%;" class="dropdown-item" href="?islem=danket&ne=<?php echo $_GET["ne"];?>&id=<?php echo $rs["id"];?>&s2=<?php echo $_GET["s2"];?>" title="<?php echo $sdil[199]; //Düzenle?>"><i class="fa fa-pencil"></i> <?php echo $sdil[199]; //Düzenle?></a>
													<?php if ($yetki<>1){?>
														<a style="cursor:pointer; text-align: left; width: 100%;" title="<?php echo $sdil[216]; //Yetkili Değilsiniz ??>" class="dropdown-item btn-ban-row" href="#"><i class="fa fa-ban" aria-hidden="true"></i> <?php echo $sdil[216]; //Yetkili Değilsiniz ??></a>
													<?php }else{ ?>
														<a style="cursor:pointer; text-align: left; width: 100%;" title="<?php echo $sdil[204]; //Kaldir?>" class="dropdown-item btn-delete-row" data-href="?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $rs["id"];?>&durum=sanket"><i class="fa fa-times" aria-hidden="true"></i> <?php echo $sdil[204]; //Kaldir?></a>
													<?php } ?>
												</div>
											</div>
										</td>
									</tr>
								<?php }?>
							</tbody>
						</table>
					</form>
				</div>
			</section>
		</div>
	</div>
	<!-- end: page -->
</section>
</div>
<aside id="sidebar-right" class="sidebar-right">
	<div class="nano">
		<div class="nano-content">
			<a href="#" class="mobile-close d-md-none">
				Collapse <i class="fa fa-chevron-right"></i>
			</a>
			<div class="sidebar-right-wrapper">
				...
			</div>
		</div>
	</div>
</aside>
</section>
<?php
if($_GET["durum"] == "yanket"){
	$ft1="".trim($sdil[200])." ".trim($nedir)."";	
	for ($l = 1; $l <= $lx; $l++) {
		$sql = $conn->query("insert into lang".$l." (ne,m1,m2,m3) values ('".$_GET["ne"]."', '', '', '".$ft1."')");
	}
	$sql=mysqli_query($conn, "select * from ".$_SESSION['lang']." where ne='".$_GET["ne"]."' order by id desc"); $rs=mysqli_fetch_assoc($sql);
	echo location("?ne=".$_GET["ne"]."&islem=danket&id=".$rs["id"]."&durum=ok",self,500,1);
}
if($_GET["durum"] == "sanket"){for ($l = 1; $l <= $lx; $l++) {$Rs = mysqli_query($conn, "delete from lang".$l." where id=".$_GET["id"]."");}
echo location("?ne=".$_GET["ne"]."&islem=".$_GET["islem"]."&id=".$_GET["id"]."&durum=ok",self,500,1);
}?>