<?php if(!defined("Hacking")){die("404 Not Found"); } ?>
<!-- Neredeyim -->

<div id="tour-11" class="header-content">
  <h2><i class="fa fa-picture-o"></i>Yeni Slayt Ekle</h2>
</div>
<!--#Neredeyim -->
<div class="body-content animated fadeIn">
  <?php
    if($_POST){
        // Formdan gelen bilgileri
        $sliderBaslik   = post('sliderBaslik');
        $sliderResim    = $_FILES["sliderResim"]["name"];
        $sliderbaslik_goster = post("baslik_goster");
        $sliderresim_goster = post("resim_goster");
        $tarih_ayari      = $_POST["tarih_ayari"];
        $saat_ayari      = $_POST["saat_ayari"];

        // Slider  Ekleme Fonksiyonu
        $Modul->slider_ekle($sliderBaslik,$sliderResim,$sliderbaslik_goster,$sliderresim_goster,$tarih_ayari,$saat_ayari);
    }
    ?>
  <form action="" method="post" name="" enctype="multipart/form-data" onsubmit="return boyutkontrol(4194304)">
    <div class="row">
      <div class="col-md-12">
        <div class="panel rounded shadow">
          <div class="panel-heading">
            <div class="pull-left">
              <h3 class="panel-title">
                <li class="fa fa-edit"></li>
                &nbsp;Slayt Başlığı &nbsp;<span style="color:red; font-size:13px;">(Boş bırakmayınız, Aksi halde resim yüklenmez!)</span></h3>
            </div>
            <div class="clearfix"></div>
          </div>
          <div class="panel-body no-padding">
            <div class="form-body">
              <div class="form-group">
                <input class="form-control" name="sliderBaslik" placeholder="Örnek: Hayallerinizi Ertelemeyin.." type="text" required>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-md-12">
        <div class="panel rounded shadow">
          <div class="panel-heading">
            <div class="pull-left">
              <h3 class="panel-title">
                <li class="fa fa-file-image-o"></li>
                &nbsp;Slayt Resmi</h3>
            </div>
            <div class="clearfix"></div>
          </div>
          <div class="panel-body no-padding">
            <div class="form-group">
              <input class="form-control rounded" name="sliderResim"  id="resimboyut" type="file">
            </div>
          </div>
        </div>
      </div>
    </div>


    <div class="row">
      <div class="col-md-6">
        <div class="panel rounded shadow">
          <div class="panel-heading">
            <div class="pull-left">
              <h3 class="panel-title">
                <li class="fa fa-question-circle"></li>
                &nbsp;Resim Sliderda Gösterilsin mi?</h3>
            </div>
            <div class="clearfix"></div>
          </div>
          <div class="panel-body no-padding">
            <div class="form-body">
              <div class="form-group">
                <div class="checkbox">
                  <label>
                &nbsp;    <input type="checkbox" name="resim_goster" value="1">
                    Evet Göster </label>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>

      <div class="col-md-6">
        <div class="panel rounded shadow">
          <div class="panel-heading">
            <div class="pull-left">
              <h3 class="panel-title">
                <li class="fa fa-question-circle"></li>
                &nbsp;Başlık Anasayfada Gösterilsin mi?</h3>
            </div>
            <div class="clearfix"></div>
          </div>
          <div class="panel-body no-padding">
            <div class="form-body">
              <div class="form-group">
                <div class="checkbox">
                  <label>
                &nbsp;    <input type="checkbox" name="baslik_goster" value="1">
                    Evet Göster </label>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="panel rounded shadow">
      <div class="panel-heading">
        <div class="pull-left">
          <h3 class="panel-title"><i class="fa fa-clock-o"></i>Yayınlanma Zaman Ayarı</h3>
        </div>
        <div class="clearfix"></div>
      </div>
      <div class="panel-body no-padding">
        <div class="form-body">
          <div class="form-group">
            <input class="form-control rounded col-md-8" name="tarih_ayari" style="border:1px solid #989898!important"  type="date" value="<?=tarih(0,0,0,"Y-m-d")?>">
            <input class="form-control rounded col-md-4" name="saat_ayari" style="border:1px solid #989898!important"  type="time" value="<?=date('H:i')?>"><br>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

    <div class="form-footer">
      <div class="pull-left">
        <button class="btn btn-primary mr-5" type="submit">
        <li class="fa fa-floppy-o"></li>
        &nbsp;&nbsp;Ekle</button>
      </div>
      <div class="clearfix"></div>
    </div>
  </form>
</div>
