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

<div id="tour-11" class="header-content">
  <h2><i class="fa fa-video-camera"></i>Yeni Video Ekle</h2>
</div>
<div class="body-content animated fadeIn">
  <?php
    if($_POST){
        // Formdan gelen bilgileri
        $videoBaslik = post('videoBaslik');
        $videoEmbed  = $_POST['videoEmbed'];
        $videoText    = post('videoText');
        $videoResim  = $_FILES["videoResim"]["name"];
        // Video Ekleme Fonksiyonu
        $Modul->video_ekle($videoBaslik,$videoResim,$videoEmbed,$videoText);
    }
    ?>
  <form action="" method="post" name="" enctype="multipart/form-data">
    <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"><i class="fa fa-edit"></i>Video Başlığı</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="videoBaslik" placeholder="Video Adı" type="text">
              </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"><i class="fa fa-photo"></i>Video Önizleme Resmi</h3>
            </div>
            <div class="clearfix"></div>
          </div>
          <div class="panel-body no-padding">
            <div class="form-group">
              <input class="form-control rounded" name="videoResim" type="file">
            </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"><i class="fa fa-youtube"></i>Video URL</h3>
            </div>
            <div class="clearfix"></div>
          </div>
          <div class="panel-body no-padding">
            <div class="form-group">
              <input class="form-control rounded" name="videoEmbed" placeholder="Video URL'si Girin"  type="text">
            </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"><i class="fa fa-edit"></i>Video Açıklaması</h3>
            </div>
            <div class="clearfix"></div>
          </div>
          <div class="panel-body no-padding">
            <div class="form-group">
              <textarea class="ckeditor" cols="80" id="editor1" name="videoText" rows="10"></textarea>
            </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>
