<?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);



if(isset($_POST['kaydet'])){
	
	$id=1;
	$site_ana_dili=$_POST['site_ana_dili'];
	$site_yayinlanma_tarihi=$_POST['site_yayinlanma_tarihi'];
	$site_bitis_tarihi=$_POST['site_bitis_tarihi'];
	$guncelle=$db->prepare("update sitebilgileri set site_ana_dili=:site_ana_dili,site_yayinlanma_tarihi=:site_yayinlanma_tarihi,site_bitis_tarihi=:site_bitis_tarihi where id=:id");
	
	$simdi=$guncelle->execute(array("site_ana_dili"=>$site_ana_dili,"site_yayinlanma_tarihi"=>$site_yayinlanma_tarihi,"site_bitis_tarihi"=>$site_bitis_tarihi,"id"=>$id));
}


$goster=$db->query("select * from sitebilgileri where id='1'")->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>Site Bilgileri - <?=$ayar['site_title']?></title>

	<link rel="stylesheet" href="assets/vendors/core/core.css">
<link rel="stylesheet" href="assets/vendors/sweetalert2/sweetalert2.min.css">
	<link rel="stylesheet" href="assets/vendors/select2/select2.min.css">
	<link rel="stylesheet" href="assets/vendors/jquery-tags-input/jquery.tagsinput.min.css">
	<link rel="stylesheet" href="assets/vendors/dropzone/dropzone.min.css">
	<link rel="stylesheet" href="assets/vendors/dropify/dist/dropify.min.css">
	<link rel="stylesheet" href="assets/vendors/bootstrap-colorpicker/bootstrap-colorpicker.min.css">
	<link rel="stylesheet" href="assets/vendors/bootstrap-datepicker/bootstrap-datepicker.min.css">
	<link rel="stylesheet" href="assets/vendors/font-awesome/css/font-awesome.min.css">
	<link rel="stylesheet" href="assets/vendors/tempusdominus-bootstrap-4/tempusdominus-bootstrap-4.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['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">

				<nav class="page-breadcrumb">
					<ol class="breadcrumb">
						<li class="breadcrumb-item"><a href="./">Anasayfa</a></li>
						<li class="breadcrumb-item active" aria-current="page">Site Bilgileri</li>
					</ol>
				</nav>

			
				
				<div class="row">
					<div class="col-md-12 grid-margin stretch-card">
						<div class="card">
							<div class="card-body">
								<h6 class="card-title">Site Bilgilerini Giriniz</h6>
								<form class="cmxform" method="post" enctype="multipart/form-data">
								
                                    
                                  
                                    
                             <div class="aside-body">
                        <ul class="nav nav-tabs mt-3" role="tablist">
                          <li class="nav-item">
                            <a class="nav-link active" id="chats-tab" data-toggle="tab" href="#chats" role="tab" aria-controls="chats" aria-selected="true">
                              <div class="d-flex flex-row flex-lg-column flex-xl-row align-items-center">
                                <i data-feather="message-square" class="icon-sm mr-sm-2 mr-lg-0 mr-xl-2 mb-md-1 mb-xl-0"></i>
                                <p class="d-none d-sm-block">Site Bilgileri</p>
                              </div>
                            </a>
                          </li>
                          
                          
                        </ul>
                        <div class="tab-content mt-3">
                          <div class="tab-pane fade show active" id="chats" role="tabpanel" aria-labelledby="chats-tab">
                            <div>
                             
                            
								<div>
                             
                             <div class="form-group col-md-12">
										<label for="exampleInputText1">Site Ana Dili</label>
	<input type="text" class="form-control" id="exampleInputText1"  name="site_ana_dili" value="<?=$goster['site_ana_dili']?>">
									
                                   
                                    </div>
                                    
                                          <div class="form-group col-md-12" >
										<label for="exampleInputText1">Site  Yayınlanma Tarihi</label>
	<input type="text" class="form-control" id="exampleInputText1"  name="site_yayinlanma_tarihi" value="<?=$goster['site_yayinlanma_tarihi']?>">
									
                                   
                                    </div>
                                    
                                    
                                     <div class="form-group col-md-12" >
										<label for="exampleInputText1">Site  Bitiş Tarihi</label>
	<input type="text" class="form-control" id="exampleInputText1"  name="site_bitis_tarihi" value="<?=$goster['site_bitis_tarihi']?>">
									
                                   
                                    </div>
                                    
                                   
									
									
                                
									
									
									
									
									
									
									
                                    
              

                                    
									
									
								
                                    
                                    
                                    
                                     
                            </div>
                          </div>
                          
                          
                        </div>
                      </div>       
                                   
				
                                    
									<button class="btn btn-primary" type="submit" name="kaydet">Site Bilgilerini Kaydet</button>
								</form>
							</div>
						</div>
					</div>
				</div>
				
				

				

			</div>
            
         

			<?php include("include/footer.php");?>
	
		</div>
	</div>
	<script src="assets/vendors/core/core.js"></script>

	<script src="assets/vendors/jquery-validation/jquery.validate.min.js"></script>
	<script src="assets/vendors/bootstrap-maxlength/bootstrap-maxlength.min.js"></script>
	<script src="assets/vendors/inputmask/jquery.inputmask.min.js"></script>
	<script src="assets/vendors/select2/select2.min.js"></script>
	<script src="assets/vendors/typeahead.js/typeahead.bundle.min.js"></script>
	<script src="assets/vendors/jquery-tags-input/jquery.tagsinput.min.js"></script>
	<script src="assets/vendors/dropzone/dropzone.min.js"></script>
	<script src="assets/vendors/dropify/dist/dropify.min.js"></script>
	<script src="assets/vendors/bootstrap-colorpicker/bootstrap-colorpicker.min.js"></script>
	<script src="assets/vendors/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
	<script src="assets/vendors/moment/moment.min.js"></script>
	<script src="assets/vendors/tempusdominus-bootstrap-4/tempusdominus-bootstrap-4.js"></script>

	<script src="assets/vendors/feather-icons/feather.min.js"></script>
	<script src="assets/js/template.js"></script>
	<script src="assets/vendors/tinymce/tinymce.min.js"></script>
	<script src="assets/js/form-validation.js"></script>
	<script src="assets/js/bootstrap-maxlength.js"></script>
	<script src="assets/js/inputmask.js"></script>
	<script src="assets/js/select2.js"></script>
	<script src="assets/js/typeahead.js"></script>
	<script src="assets/js/tags-input.js"></script>
	<script src="assets/js/dropzone.js"></script>
	<script src="assets/js/dropify.js"></script>
	<script src="assets/js/bootstrap-colorpicker.js"></script>
	<script src="assets/js/datepicker.js"></script>
	<script src="assets/js/timepicker.js"></script>
<script src="assets/js/tinymce.js"></script>

 <script src="assets/vendors/sweetalert2/sweetalert2.min.js"></script>
   <script src="assets/js/sweet-alert.js"></script>


</body>
</html>