<?php
include("include/baglan.php");
include("include/fonksiyonlar.php");
ob_start();
session_start();
oturumkontrolana();

$id=$_SESSION['id'];
$hesabim=$db->query("select * from yonetici where id='$id'")->fetch(PDO::FETCH_ASSOC);
?>
<!DOCTYPE html>
<html lang="tr">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title><?=$ayar_kaydi['site_title']?> - Admin Paneli</title>

	<link rel="stylesheet" href="assets/vendors/core/core.css">

	<link rel="stylesheet" href="assets/vendors/bootstrap-datepicker/bootstrap-datepicker.min.css">

	<link rel="stylesheet" href="assets/fonts/feather-font/css/iconfont.css">
	<link rel="stylesheet" href="assets/vendors/flag-icon-css/css/flag-icon.min.css">

	<link rel="stylesheet" href="assets/css/demo_2/style.css">

  <link rel="shortcut icon" href="lib/images/logo/<?=$ayar_kaydi['favicon']?>" />
</head>
<body>
	<div class="main-wrapper">

    <?php
            include("include/menu.php");
			?>
		
    
		
	
		<div class="page-wrapper">
					
			<?php
            include("include/header.php");
			?>

			<div class="page-content">

   

       

          <div class="profile-page tx-13">
          <div class="row">
            <div class="col-12 grid-margin">
							<div class="profile-header">
								<div class="cover">
									<div class="gray-shade"></div>
									<figure>
										<img src="lib/images/yonetici/<?=$hesabim['kapak_foto']?>" class="img-fluid" alt="profile cover">
									</figure>
									<div class="cover-body d-flex justify-content-between align-items-center">
										<div>
				<img class="profile-pic" src="lib/images/logo/<?=$ayar_kaydi['favicon']?>" alt="profile" style="width:50px!important;">
											<span class="profile-name"><?=$hesabim['ad_soyad']?></span>
										</div>
										<div class="d-none d-md-block">
											<a href="yonetici_ekle.php?islem=duzenle&id=<?=$hesabim['id']?>" class="btn btn-primary btn-icon-text btn-edit-profile">
												<i data-feather="edit" class="btn-icon-prepend"></i> Profili Düzenle
									</a>
										</div>
									</div>
								</div>
								<div class="header-links">
									
								</div>
            	</div>
            </div>
					</div>
					<div class="row profile-body">
					
						<div class="d-none d-md-block col-md-3 col-xl-4 left-wrapper">
							<div class="card rounded">
								<div class="card-body">
									<div class="d-flex align-items-center justify-content-between mb-2">
										<h6 class="card-title mb-0">Hakkımızda</h6>
										
									</div>
									
									
									<div class="mt-3">
								
										<p class="text-muted"><i class="fa fa-map"></i>Tahtakale Mah. Lilyum Sok. Stüdyo24 Sitesi No:3 A Blok Kat:13 D:223 Ispartakule / İSTANBUL</p>
									</div>
									<div class="mt-3">
									
										<p class="text-muted"><i class="fa fa-phone"></i>info@ilterwebtasarim.com</p>
									</div>
                                    
                                    	<div class="mt-3">
								
										<p class="text-muted">www.ilterwebtasarim.com</p>
									</div>
									
								
								</div>
							</div>
						</div>
				
						<div class="col-md-3 col-xl-4 middle-wrapper">
							<div class="row">
							    <?php
							    $sec = $db->query("select * from resimler where durum='0' order by sira asc",PDO::FETCH_ASSOC);
							    if($sec->rowCount()){foreach($sec as $s){
							    ?>
								<div class="col-md-12 grid-margin">
									<div class="card rounded">
										<div class="card-header">
											<div class="d-flex align-items-center justify-content-between">
												<div class="d-flex align-items-center">
													<img class="img-xs rounded-circle" src="lib/images/logo/<?=$ayar['favicon']?>" alt="">													
													<div class="ml-2">
														<p><?=$hesabim['ad_soyad']?></p>
													
													</div>
												</div>
												
											</div>
										</div>
										<div class="card-body">
											<p class="mb-3 tx-14"><?=$s['aciklama']?></p>
											<br>
											<img class="img-fluid" src="lib/images/resimler/<?=$s['resim']?>" alt="">
										</div>
									
									</div>
								</div>
					<?php } }?>
							</div>
						</div>
				
					<div class="d-none d-md-block col-md-3 col-xl-4 left-wrapper">
							<div class="card rounded">
								<div class="card-body">
									<div class="d-flex align-items-center justify-content-between mb-2">
										<h6 class="card-title mb-0">Site Bilgileri</h6>
										
									</div>
									<div class="mt-3">
								
										<p class="text-muted">Site Ana Dil: <?=$ayar['anadil']?></p>
									</div>
									
                                    	<div class="mt-3">
								
										<p class="text-muted">Site Yayınlanma Tarihi: <?=$ayar['baslangic']?></p>
									</div>
									
									<div class="mt-3">
								
										<p class="text-muted">Yayın Bitiş Tarihi: <?=$ayar['bitis']?></p>
									</div>
									
									
								</div>
							</div>
						</div>
					</div>
        </div>

			</div>


			<?php include("include/footer.php");?>
	
		
		</div>
	</div>


	<script src="assets/vendors/core/core.js"></script>
	
  <script src="assets/vendors/chartjs/Chart.min.js"></script>
  <script src="assets/vendors/jquery.flot/jquery.flot.js"></script>
  <script src="assets/vendors/jquery.flot/jquery.flot.resize.js"></script>
  <script src="assets/vendors/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
  <script src="assets/vendors/apexcharts/apexcharts.min.js"></script>
  <script src="assets/vendors/progressbar.js/progressbar.min.js"></script>
	<script src="assets/vendors/feather-icons/feather.min.js"></script>
	<script src="assets/js/template.js"></script>
  <script src="assets/js/dashboard.js"></script>
  <script src="assets/js/datepicker.js"></script>
</body>
</html>    