<?php
$path="../../";
include("../../map.php");
$skat="id"; $ckat="Cat_ID";
?>
<?php if($d10<>0){?>
	<optgroup label="<?php echo $t21s[0];?> <?php echo $sdil[12]; //Kategori?>">
		<?php $sql=mysqli_query($conn, "select * from kategoriler where ne='skategori' order by sira asc"); while($rsc=mysqli_fetch_assoc($sql)){?>
			<option value="<?php echo str_replace($weburl,"",linked('a',$rsc[$ckat]));?>" title="<?php echo $rsc["Cat_".$_SESSION['lang'].""];?>" alt="<?php echo $rsc["Cat_".$_SESSION['lang'].""];?>" style="color:#6699FF">+ <?php echo $rsc["Cat_".$_SESSION['lang'].""];?> [<?php echo $rsc["Cat_ID"];?>]</option>
		<?php }?>
	</optgroup>
	<optgroup label="<?php echo $t21s[0];?>">
		<?php $sql=mysqli_query($conn, "select * from ".$_SESSION["lang"]." where ne='sayfa' and s5=1 order by s1 asc");  while($rssc=mysqli_fetch_assoc($sql)){?>
			<option value="<?php echo str_replace($weburl,"",linked('s',$rssc[$skat]));?>" title="<?php echo $rssc["t1"];?>" alt="<?php echo $rssc["t1"];?>" style="color:#6699FF !important">- <?php echo $rssc["t1"];?> [<?php echo $rssc["ne"][0];?><?php echo $rssc["id"];?>]</option>
		<?php }?>
	</optgroup>
<?php }?>
<?php if($b1<>0){?>
	<optgroup label="<?php echo $t22s[0];?> <?php echo $sdil[12]; //Kategori?>">
		<?php $sql=mysqli_query($conn, "select * from kategoriler where ne='hkategori' order by sira asc"); while($rsc=mysqli_fetch_assoc($sql)){?>
			<option value="<?php echo str_replace($weburl,"",linked('b',$rsc[$ckat]));?>" title="<?php echo $rsc["Cat_".$_SESSION['lang'].""];?>" alt="<?php echo $rsc["Cat_".$_SESSION['lang'].""];?>" style="color:#6699FF">+ <?php echo $rsc["Cat_".$_SESSION['lang'].""];?> [<?php echo $rsc["Cat_ID"];?>]</option>
		<?php }?>
	</optgroup>
<?php }?>
<?php if($b1<>0){?>
	<optgroup label="<?php echo $n8s[0];?> <?php echo $sdil[12]; //Kategori?>">
		<?php $sql=mysqli_query($conn, "select * from kategoriler where ne='mkategori' order by sira asc"); while($rsc=mysqli_fetch_assoc($sql)){?>
			<option value="<?php echo str_replace($weburl,"",linked('a',$rsc[$ckat]));?>" title="<?php echo $rsc["Cat_".$_SESSION['lang'].""];?>" alt="<?php echo $rsc["Cat_".$_SESSION['lang'].""];?>" style="color:#6699FF">+ <?php echo $rsc["Cat_".$_SESSION['lang'].""];?> [<?php echo $rsc["Cat_ID"];?>]</option>
		<?php }?>
	</optgroup>
	<optgroup label="MSayfa">
		<?php $sql=mysqli_query($conn, "select * from ".$_SESSION["lang"]." where ne='msayfa' and s5=1 order by s1 asc");  while($rssc=mysqli_fetch_assoc($sql)){?>
			<option value="<?php echo str_replace($weburl,"",linked('m',$rssc[$skat]));?>" title="<?php echo $rssc["t1"];?>" alt="<?php echo $rssc["t1"];?>" style="color:#6699FF !important">- <?php echo $rssc["t1"];?> [<?php echo $rssc["ne"][0];?><?php echo $rssc["id"];?>]</option>
		<?php }?>
	</optgroup>
<?php }?>
<?php if($a4<>0){?>
	<optgroup label="<?php echo $t24s[0];?> <?php echo $sdil[12]; //Kategori?>">
		<?php $sql=mysqli_query($conn, "select * from kategoriler where ne='ukategori' order by sira asc"); while($rsc=mysqli_fetch_assoc($sql)){?>
			<option value="<?php echo str_replace($weburl,"",linked('x',$rsc["Cat_ID"]));?>" title="<?php echo $rsc["Cat_".$_SESSION['lang'].""];?>" alt="<?php echo $rsc["Cat_".$_SESSION['lang'].""];?>" style="color:#6699FF">+ <?php echo $rsc["Cat_".$_SESSION['lang'].""];?> [<?php echo $rsc["Cat_ID"];?>]</option>
			<?php $s2S = explode(',',$rs["s2"]); $sqla=mysqli_query($conn, "select * from kategoriler where ne='ualt_kategori' and c1=".$rsc["Cat_ID"]." order by sira asc"); while($rsca=mysqli_fetch_assoc($sqla)){?>
				<option value="<?php echo str_replace($weburl,"",linked('y',$rsca["Cat_ID"]));?>" title="<?php echo $rsca["Cat_".$_SESSION['lang'].""];?>" alt="<?php echo $rsca["Cat_".$_SESSION['lang'].""];?>" style="color:#6699FF">- <?php echo $rsca["Cat_".$_SESSION['lang'].""];?> [<?php echo $rsca["Cat_ID"];?>]</option>
			<?php }?>
		<?php }?>
	</optgroup>
<?php }?>