<?php echo !defined("GUVENLIK") ? die("Erisim Engellendi!.") : null;?>
<?php 
$Sorgu = $db->prepare("SELECT * FROM sorular WHERE durum = ? AND dil = ? ORDER BY sira ASC");
$Sorgu->execute(array("1",$_SESSION['k_dil']));
$islem = $Sorgu->fetchALL(PDO::FETCH_ASSOC);?>
<?php 
$menubul 	= $db->query("SELECT * FROM menu WHERE menu_url = '".$htc['sssurl']."' OR link = '".$htc['sssurl']."' AND dil = '{$_SESSION['k_dil']}'")->fetch(PDO::FETCH_ASSOC);
$menubas 	= $db->query("SELECT * FROM menu WHERE id = '{$menubul['menu_ust']}' AND dil = '{$_SESSION['k_dil']}'")->fetch(PDO::FETCH_ASSOC);
?>
<!-- Start main-content -->
<div class="main-content">
    <!-- Section: inner-header -->
    <section class="inner-header bg-lighter">
		<div class="container pt-10 pb-10">
			<!-- Section Content -->
			<div class="section-content">
				<div class="row d-ortala">
					<div class="col-md-11">
						<h3 class="font-30 mb-0 mt-10"><?=@$dil['txt145'];?></h3>
						<ol class="breadcrumb text-black  mt-0 mb-10">
							<li><a href="<?php echo $htc['anaurl'];?><?php echo $html;?>"><?=@$dil['txt56'];?></a></li>
							<?php if($menubas['menu_isim'] != ""){?>
							<li><a href="<?php echo($menubas['menu_url'] == "0" ? $menubas['link'] : $menubas['menu_url'].$html);?>"><?php echo ilkbuyuk($menubas['menu_isim']);?></a></li>
							<?php }?>
							<li class="active text-theme-colored"><?=@$dil['txt145'];?></li>
						</ol>
					</div>
					<div class="col-md-1">
						<a href="javascript:history.back();" class="sayfa-geri"><span class="icon"><i class="fas fa-arrow-left"></i></span><?=@$dil['txt57'];?></a>
					</div>
				</div>
			</div>
		</div>
	</section>

    <section class="position-inherit">
        <div class="container pt-50 pb-50">
            <div class="row">
                <div class="col-md-3 scrolltofixed-container">
                    <div class="list-group scrolltofixed z-index-0">
						<?php foreach ( $islem as $Sonuc ){?>
                        <a href="#<?php echo $Sonuc['seo'];?>" class="list-group-item smooth-scroll-to-target"><?php echo $Sonuc['adi'];?></a>
						<?php }?>
                    </div>
                </div>
                <div class="col-md-9">
					<?php foreach ( $islem as $Sonuc ){?>
                    <div id="<?php echo $Sonuc['seo'];?>" class="mb-50">
                        <h3><?php echo $Sonuc['adi'];?></h3>
                        <hr>
                        <p class="mb-20"><?php echo $Sonuc['aciklama'];?></p>
                    </div>
					<?php }?>
                </div>
            </div>
        </div>
    </section>

</div>
<!-- end main-content -->