<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[135]; //Alt Sayfa?></a></li>
</ul>
<div class="">
<div class="v3-alert v3-alert-success" id="err" style="display:none;"><?php echo $sdil[212]; //islem Basariyla Gerçeklestirilmistir !?></div>
	<div class="v8-tabs-isayfa">
		<div id="tab-ext" style="width:100%; overflow:auto;">
				<form id="nsp" name="nsp" method="post">
			<table class="table" style="min-width:800px;">
					<tr class="addtr">
						<td style="position:relative;">
							<div style="position:absolute; margin-top: -5px; margin-left: -20px; display:none;" id="bildirim0">
								<input title="<?php echo $sdil[218]; //Vitrin?>" type="checkbox" name="xs7" style="height: 18px;width:18px;" value="1" /><br>
								<input title="<?php echo $sdil[220]; //Açık/Kapalı?>" type="checkbox" name="xs13" style="height: 18px;width:18px;" value="1" Checked />
							</div>
							<input type="text" name="xt1" class="form-control b1o" title="Başlık (t1)" placeholder="<?php echo $st1;?>" onclick="toggle('#bildirim0'); vtr('sp0');toggle('#vtr_1');toggle('#vtr_0')">
						</td>
						<td class="w10 mw10">
							<input type="text" name="xt3" id="xt3" value="" onkeyup="icons(this);" class="form-control b1o" title="Ikon (t3)" placeholder="Ikon" autocomplete="off">
							<ul class="icons" id="icons" data-input="xt3" style="display:none;"></ul>
						</td>
						<td class="w10 mw10 dn">
							<input type="text" name="xt4" value="" class="form-control b1o" title="ext" placeholder="ext">
						</td>
						<td class="w7 mw7">
							<select name="xt2" id="t2" class="form-control b1o">
								<option value="All">[0] <?php echo $sdil[132] //Tüm?></option>
								<?php $i = 0;$diller = explode(',',$m1); foreach($diller as $dil) {$i++; if($i > 99) {$i = 1;}?>
								<option value="lang<?php echo $i?>" <?php if ($_SESSION["lang"]=="lang".$i.""){?>Selected<?php }?>>[<?php echo $i;?>] <?php echo $dil;?></option>
								<?php }?>
							</select>
						</td>
						<td class="w5 mw5">
							<input type="text" name="xs2" value="0" class="form-control b1o" title="Sıra (s2)" placeholder="Sıra">
						</td>
						<td class="w10 mw10">
							<select size=1 name="s19" style="background: whitesmoke;" class="form-control b1o e">
							<option value="0">Admin</option>
							<?php $sqlm=mysqli_query($conn, "select * from t5 where s9=1 $luye"); while($rsm=mysqli_fetch_assoc($sqlm)){?>
							<option value="<?php echo $rsm["id"];?>" title="<?php echo $rsm["t1"];?>" alt="<?php echo $rsm["t1"];?>" style="color:#6699FF" <?php if($rsm["id"]==$sp["s19"]){echo "Selected";}?>><?php echo $rsm["t1"];?></option>
							<?php }?>
							</select>
						</td>
						<td class="w20 mw30 table-actions">
							<button type="button" tabindex="-1" onclick="Pcke('../pages/page_sub_ajax.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"];?>&durum=isayfa','#nsp','#err','nsp'); return false;" class="15 btn btn-warning"><i class="fa fa-plus"></i></button>
							<button type="button" tabindex="-1" onclick="vtr('sp0');toggle('#vtr_1');toggle('#vtr_0')" class="btn btn-default" style="margin-left:1px !important" id="vtr_1"><i class="fa fa-angle-double-down"></i></button>
							<button type="button" tabindex="-1" onclick="htr('sp0');toggle('#vtr_1');toggle('#vtr_0')" class="btn btn-default" style="display:none;margin-left:1px !important" id="vtr_0"><i class="fa fa-angle-double-up"></i></button>
						</td>
					</tr>
					<tr style="visibility: hidden;display: none;" id="sp0">
						<td colspan="6" style="padding:0px;">
							<div>
								<textarea class="form-control" style="height:60px;" name="xn2" placeholder="<?php echo $sdil[40]; //Kısa?> [n2]"></textarea>
								<textarea class="form-control" style="margin-top:10px; height:50px;" name="xn1" id="rtesp0"></textarea>
								<script>CKEDITOR.replace('rtesp0');</script>
								<div class="v3-col-md-12 v3-row">
									<div id="isayfa_inputs"></div>
									<script type="text/JavaScript" language="JavaScript">
										jQuery(document).ready(function () { jQuery('#isayfa_inputs').load('../ajax/ajax_inputs.php?ne=<?php echo $_GET["ne"];?>_isayfa&islem=<?php echo $_GET["islem"];?>&nedir=isayfa&id=<?php echo $_GET["id"];?>'); });
									</script>
								</div>
						</td>
					</tr>	
                </table>
			</form>

				<?php
					$sql=mysqli_query($conn, "select * from t1 where ne='isayfa' and (t2='All' or t2='".$_SESSION["lang"]."') and s1=".$rs["id"]." order by s2 asc,id desc"); while($sp=mysqli_fetch_assoc($sql)){
					$xjsi = json_decode($sp["n17"], true);
					$sqlxi=mysqli_query($conn, "select * from medya where ne='resim' and s1=".$rs["id"]." and s4=".$sp["id"].""); $icount=mysqli_num_rows($sqlxi);
					$sqlxd=mysqli_query($conn, "select * from medya where ne='dosya' and s1=".$rs["id"]." and s4=".$sp["id"].""); $dcount=mysqli_num_rows($sqlxd);
					$sqlxv=mysqli_query($conn, "select * from medya where ne='video' and s1=".$rs["id"]." and s4=".$sp["id"].""); $vcount=mysqli_num_rows($sqlxv);
					$spuan = 0; $scolor = ""; $tpuan = ""; // Seo Puan
					$fields = [ "t1" => ["puan" => 20, "label" => "Title,"], "n2" => ["puan" => 20, "label" => "Desc,"], "n1" => ["puan" => 60, "label" => "Detail,"]];
					foreach ($fields as $key => $data) {
						if (!empty($sp[$key])){
							$spuan += $data["puan"];
							$tpuan .= $data["label"];
						}
					}
				?>
					<form action="../pages/page_sub_ajax.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"];?>&durum=isayfa&isayfaid=<?php echo $sp["id"];?>" id="xf<?php echo $sp["id"];?>" name="xf<?php echo $sp["id"];?>" method="post">
<table class="table" style="min-width:800px;">
						<tr data-id="<?php echo $sp["id"];?>" class="bb2">
							<td style="position:relative;">
							<div style="position:absolute; margin-top: -5px; margin-left: -20px; display:none;" id="bildirim<?php echo $sp["id"];?>">
								<input title="<?php echo $sdil[218]; //Vitrin?>" type="checkbox" name="xs7" style="height: 18px;width:18px;" value="1" <?php if($sp["s7"]==1){?>Checked<?php }?> /><br>
								<input title="<?php echo $sdil[220]; //Açık/Kapalı?>" type="checkbox" name="xs13" style="height: 18px;width:18px;" value="1" <?php if($sp["s7"]==1){?>Checked<?php }?> Checked />
							</div>
								<input type="text" name="xt1" value="<?php echo $sp["t1"];?>" class="form-control" size="1" placeholder="Başlık Güncelle" onclick="toggle('#bildirim<?php echo $sp["id"];?>'); vtr('sp<?php echo $sp["id"];?>'); toggle('#vtr_1<?php echo $sp["id"];?>'); toggle('#vtr_0<?php echo $sp["id"];?>')" title="ID:<?php echo $sp["id"];?>">
								<div class="mdn" style="width:<?php echo $spuan;?>%; height:2px; background: linear-gradient(to right, #fff, #95b75d); float:left;"></div>
							</td>
							<td class="w10 mw10">
								<input type="text" name="xt3" value="<?php echo $sp["t3"];?>" class="form-control" title="Ikon" placeholder="Ikon">
							</td>
							<td class="w10 dn">
								<input type="text" name="xt4" value="<?php echo $sp["t4"];?>" class="form-control" title="ext" placeholder="ext">
							</td>
							<td class="w7 mw7">
							<select name="xt2" id="xt2" class="form-control">
								<option value="All" <?php if ($nx["t2"]=="" or $nx["t2"]=="All"){?>Selected<?php }?>>[0] <?php echo $sdil[132] //Tüm?></option>
								<?php $i = 0;$diller = explode(',',$m1); foreach($diller as $dil) {$i++; if($i > 99) {$i = 1;}?>
								<option value="lang<?php echo $i?>" <?php if ($sp["t2"]=="lang".$i."" or ($sp["t2"]=="" and $_SESSION["lang"]=="lang".$i."")){?>Selected<?php }?>>[<?php echo $i;?>] <?php echo $dil;?></option>
								<?php }?>
							</select>
							<td class="w5 mw5">
								<input type="text" name="xs2" class="form-control" value="<?php echo $sp["s2"];?>" title="Sıra" placeholder="Sıra">
							</td>
							<td class="w10 mw10">
							<select size=1 name="s19" style="background: whitesmoke;" class="form-control e">
								<option value="0">Admin</option>
								<?php $sqlm=mysqli_query($conn, "select * from t5 where s9=1 $luye"); while($rsm=mysqli_fetch_assoc($sqlm)){?>
								<option value="<?php echo $rsm["id"];?>" title="<?php echo $rsm["t1"];?>" alt="<?php echo $rsm["t1"];?>" style="color:#6699FF" <?php if($rsm["id"]==$sp["s19"]){echo "Selected";}?>><?php echo $rsm["t1"];?></option>
								<?php }?>
							</select>
						</td>
							<td class="w20 mw30 table-actions"  style="position:relative;">
								<button type="button" tabindex="-1" id="b<?php echo $sp["id"];?>" onclick="Ajaxs('<?php echo $sp["id"];?>','#result','Pcke');" class=" btn btn-warning"><i class="fa fa-refresh"></i></button>
								<button type="button"style="cursor: pointer;"  class=" btn btn-warning btn-delete-row" onclick="htr('sp<?php echo $sp["id"];?>');" data-href="../pages/page_sub_ajax.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"];?>&durum=sisayfa&isayfaid=<?php echo $sp["id"];?>"><i class="fa fa-times"></i></button>
								<?php if($d1=="1"){?>
									<button type="button" style="cursor: pointer;" class=" btn btn-warning mfrm" data-toggle="modal" data-target="#myModal" data-url="../upload/upload_image.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"]; ?>&s4=<?php echo $sp["id"];?>" title="<?php echo $sdil[75]; //Resim Ekle?>"><i class="fa fa-upload" aria-hidden="true"></i><div style="position: absolute; margin-top: -35px; margin-left: 10px; background: red; padding: 0px 3px; font-size: 10px; border-radius: 3px; color: white;"><?php echo $icount?></div></button>
								<?php }?>
								<?php if($d3=="1"){?>
									<button type="button" style="cursor: pointer;" class=" btn btn-warning mfrm" data-toggle="modal" data-target="#myModal" data-url="../upload/upload_file.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"]; ?>&s4=<?php echo $sp["id"];?>" title="<?php echo $sdil[77]; //Dosya Ekle?>"><i class="fa fa-file-archive-o" aria-hidden="true"></i><div style="position: absolute; margin-top: -35px; margin-left: 10px; background: red; padding: 0px 3px; font-size: 10px; border-radius: 3px; color: white;"><?php echo $dcount?></div></button>
								<?php }?>
								<?php if($d2==1 or $d2==3){?>
									<button type="button" style="cursor: pointer;" class=" btn btn-warning mfrm" data-toggle="modal" data-target="#myModal" data-url="../video/video_add.php?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&id=<?php echo $_GET["id"]; ?>&s4=<?php echo $sp["id"];?>" title="<?php echo $sdil[76]; //Video Ekle?>"><i class="fa fa-video-camera" aria-hidden="true"></i><div style="position: absolute; margin-top: -35px; margin-left: 10px; background: red; padding: 0px 3px; font-size: 10px; border-radius: 3px; color: white;"><?php echo $vcount?></div></button>
								<?php }?>
								<button type="button" tabindex="-1" onclick="vtr('sp<?php echo $sp["id"];?>');toggle('#vtr_1<?php echo $sp["id"];?>');toggle('#vtr_0<?php echo $sp["id"];?>')" id="vtr_1<?php echo $sp["id"];?>" class="btn btn-default " style="margin-left:1px !important"><i class="fa fa-angle-double-down"></i></button>
								<button type="button" tabindex="-1" onclick="htr('sp<?php echo $sp["id"];?>');toggle('#vtr_1<?php echo $sp["id"];?>');toggle('#vtr_0<?php echo $sp["id"];?>')" id="vtr_0<?php echo $sp["id"];?>" class="btn btn-default " style="display:none;margin-left:1px !important"><i class="fa fa-angle-double-up"></i></button>
							</td>
						</tr>
						<tr style="visibility: hidden;display: none;" id="sp<?php echo $sp["id"];?>">
							<td colspan="6">
								<div>
									<textarea class="form-control" style="height:60px;" name="xn2" placeholder="<?php echo $sdil[40]; //Kısa?> [n2]"><?php echo $sp["n2"];?></textarea>
									<textarea class="form-control" style="margin-top:10px; height:50px;" name="xn1" id="rtesp<?php echo $sp["id"];?>"><?php echo $sp["n1"];?></textarea>
								</div>
								<script>CKEDITOR.replace('rtesp<?php echo $sp["id"];?>');</script>
								<div class="v3-col-md-12 v3-row mt20">
									<div id="isayfa_inputs<?php echo $sp["id"];?>"></div>
									<script type="text/JavaScript" language="JavaScript">
										jQuery(document).ready(function () { jQuery('#isayfa_inputs<?php echo $sp["id"];?>').load('../ajax/ajax_inputs.php?ne=<?php echo $_GET["ne"];?>_isayfa&islem=<?php echo $_GET["islem"];?>&nedir=isayfa&id=<?php echo $sp["id"];?>'); });
									</script>
								</div>
							</td>
						</tr>
			</table>

					</form>
				<?php }?>
		</div>
	</div>
</div>