<?php if( $noheader==""){?>
<ul class="v8-tabs v8-js-tabs v8-same-height">
	<li class="v8-current"><a href="#tab-rbk" title="<?php echo $sdil[135]; //Alt Sayfa?>"><?php echo $rs["t1"];?> > <?php echo $sdil[80].$sdil[68]; //Kullanıcı?></a></li>
</ul>
<?php }?>
<div class="v8-tabs-content">
	<div class="v8-tabs-isayfa">
		<div id="tab-ext">
			<table class="table">
				<form action="?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"];?>&durum=ulog" method="post">
					<tr class="addtr">
						<td style="position:relative;">
							<input type="text" id="uni" name="xt1" class="form-control" title="Başlık (t1)" placeholder="<?php echo ctranslate("Yeni Bildirim Ekle")?>" onclick="vtr('xn');">
							<span style="position: absolute; font-size: 11px; top: 0px; right: 0px; color: brown;"><i class="fa fa-user"></i> <?php if($_SESSION["user_id"]==0){echo ctranslate("Admin");}else{echo $_SESSION["user"];}?></span>
						</td>
						<td class="w8">
							<button type="submit" class="mbtn15 btn btn-warning"><i class="fa fa-plus"></i></button>
						</td>
					</tr>
				</form>
				<?php
					$sql=mysqli_query($conn, "select * from t1 where ne='ulog' and t2='".$_SESSION['lang']."' and s1=".$rs["id"]." order by s2 asc,id desc"); while($xn=mysqli_fetch_assoc($sql)){
					$sqlc=mysqli_query($conn, "select * from t5 where id='".$xn['s19']."'"); $rsc=mysqli_fetch_assoc($sqlc);
				?>
					<form action="?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"];?>&durum=ulog&ulogid=<?php echo $xn["id"];?>" method="post">
						<tr data-id="<?php echo $xn["id"];?>">
							<td style="position:relative;">
								<input type="text" name="xt1" value="<?php echo $xn["t1"];?>" class="form-control" size="1" placeholder="text" onclick="vtr('xn<?php echo $xn["id"];?>');" title="ID:<?php echo $xn["id"];?>">
								<span style="position: absolute; font-size: 11px; top: 0px; right: 0px; color: brown;"><i class="fa fa-user"></i> <?php if($xn["s19"]==0){echo ctranslate("Admin");}else{echo $rsc["t1"];}?></span>
							</td>
							<td class="">
								<button type="submit" class="mbtn15 btn btn-warning"><i class="fa fa-refresh"></i></button>
								<?php if($xn["s19"]==$_SESSION["user_id"] or $MSA==1){?>
									<a style="cursor: pointer;"  class="mbtn15 btn btn-warning btn-delete-row" onclick="htr('xn<?php echo $xn["id"];?>');" data-href="?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"];?>&durum=sulog&ulogid=<?php echo $xn["id"];?>"><i class="fa fa-times"></i></a>
								<?php }else{?>
									<a style="cursor: pointer;" class="mbtn15 btn btn-danger"><i class="fa fa-ban "></i></a>
								<?php }?>
							</td>
						</tr>
					</form>
				<?php }?>
			</table>
		</div>
	</div>
</div>
<?php
if($_GET["durum"]=="ulog"){
if($_POST['xs2']<>""){$xs2=$_POST['xs2'];}else{$xs2=0;}
//-------------------------------------------------------------------------------->
	if(!empty($_GET["ulogid"])){
		$Rsq = mysqli_query($conn, "update t1 set t1='".$_POST['xt1']."', t3='".$_POST['xt3']."', n2='".$_POST['xn2']."', n1='".$_POST['xn1']."', n4='".$_POST['xn4']."', n5='".$_POST['xn5']."', n6='".$_POST['xn6']."', s2='".$xs2."' Where ne='isayfa' and id='".$_GET['isayfaid']."' ");
	}else{
		$conn->query("insert INTO t1(t1,t2,t3,ne,n1,n2,n3,n4,n5,n6,s1,s2,s19,ts1) VALUES ('".$_POST['xt1']."', '".$_SESSION['lang']."', '".$_POST['xt3']."', 'ulog', '".$_POST['xn1']."', '".$_POST['xn2']."', '".$_POST['xn3']."', '".$_POST['xn4']."', '".$_POST['xn5']."', '".$_POST['xn6']."', '".$_GET['id']."', '".$xs2."', '".$_SESSION["user_id"]."', now());");
	}
	echo location("?ne=".$_GET["ne"]."&islem=".$_GET["islem"]."&id=".$_GET["id"]."&durum=ok&#tab-logs",self,500,1);
//------------------------------------------------------------------------------------------------>
}elseif($_GET["durum"]=="sulog"){
	$sql = mysqli_query($conn, "delete from t1 where id=".$_GET["isayfaid"]);	
	echo location("?ne=".$_GET["ne"]."&islem=".$_GET["islem"]."&id=".$_GET["id"]."&durum=ok&#tab-logs",self,500,1);
//------------------------------------------------------------------------------------------------>
}
?>