<?php echo !defined("GUVENLIK") ? die("Erisim Engellendi!.") : null;?>
<?php 
$menubul 	= $db->query("SELECT * FROM menu WHERE menu_url = '".$htc['onbasvuruformurl']."' OR link = '".$htc['onbasvuruformurl']."' 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);
?>
<?php $onbasvurusayfa = $db->query("SELECT * FROM sayfalar WHERE sayfa = '2' AND dil = '{$_SESSION['k_dil']}' ORDER BY id ASC LIMIT 1")->fetch();?>
<!-- Start main-content -->
<div class="main-content">

    <!-- Section: inner-header -->
    <section class="inner-header bg-lightest">
		<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['txt138'];?></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['txt138'];?></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: Job Apply Form -->
    <section class="divider bg-lighter">
        <div class="container pt-50 pb-50">
            <div class="row">
				<?php if($onbasvurusayfa){?>
				<div class="col-md-5">
					<div class="p-0 mb-0">
						<?php echo $onbasvurusayfa['aciklama'];?>	
					</div>
				</div>
				<?php }?>
                <div class="col-md-7 <?php echo($onbasvurusayfa == true ? '' : 'col-md-push-3');?>">
                    <div class="bg-lightest border-1px p-30 mb-0">
                        <form action="_class/site_islem.php" method="post">
                            <div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label><?=@$dil['txt139'];?></label>
                                        <input name="veli_adi" type="text" required="" class="form-control required">
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label><?=@$dil['txt140'];?></label>
                                        <input name="adres" type="text" required="" class="form-control required">
                                    </div>
                                </div>
                            </div>
							<div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label><?=@$dil['txt109'];?></label>
                                        <input name="telefon" type="text" required="" class="form-control required">
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label><?=@$dil['txt108'];?></label>
                                        <input name="email" type="text" required="" class="form-control required">
                                    </div>
                                </div>
                            </div>
							<div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label><?=@$dil['txt141'];?></label>
                                        <input name="isim" type="text" required="" class="form-control required">
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label><?=@$dil['txt142'];?></label>
                                        <input name="dtarih" type="text" required="" class="form-control required">
                                    </div>
                                </div>
                            </div>
							<div class="row">
                                <div class="col-sm-12">
									<div class="form-group">
										<label><?=@$dil['txt143'];?> <small>*</small></label>
										<select name="kurs" class="form-control required">
										<?php $KURSSorgu = $db->prepare("SELECT * FROM kurslar WHERE durum = ? AND dil = ? ORDER BY sira ASC");
										$KURSSorgu->execute(array("1",$_SESSION['k_dil']));
										$KURSislem = $KURSSorgu->fetchALL(PDO::FETCH_ASSOC);?>
											<?php foreach ( $KURSislem as $KURSSonuc ){?>
											<option value="<?php echo $KURSSonuc['adi'];?>"><?php echo $KURSSonuc['adi'];?></option>
											<?php }?>
										</select>
									</div>
								</div>
                            </div>
                            <div class="form-group">
                                <label><?=@$dil['txt121'];?></label>
                                <textarea name="mesaj" class="form-control required" rows="5"></textarea>
                            </div>
                            <div class="form-group">
                                <input type="hidden" name="kontrol" value="" id="kontrol">	
								<input type="hidden" name="onbasvuruurl" value="<?php echo $sayfalink;?>" />
                                <button type="submit" name="onbasvurubtn" class="btn btn-block btn-dark btn-theme-colored btn-sm mt-20 pt-10 pb-10"><?=@$dil['txt80'];?></button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>
</div>
<!-- end main-content -->