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

<div id="tour-11" class="header-content">
  <h2><i class="fa fa-camera"></i>Yeni Fotoğraf Ekle</h2>
</div>
<div class="body-content animated fadeIn">
  <?php
    if($_POST){
        // Formdan gelen bilgileri
        $galeriBaslik   = post('galeriBaslik');
        $galeriResim    = $_FILES["galeriResim"];

        $resimler = $Modul->cokluresimyukle_onhazirlik($galeriResim);
        $Modul->galeri_ekle("baslik_yok",$resimler);
    }
    ?>
    <form action="" method="post" name="" enctype="multipart/form-data" >
      <input type="hidden" name="galeri_baslik" value="baslik_yok"/>
      <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-picture-o"></i>Fotoğraf Seçin</h3>
              </div>
              <div class="clearfix"></div>
            </div>
            <div class="panel-body no-padding">
              <style type="text/css">

  			.custom-file-input::-webkit-file-upload-button {

  			  visibility: hidden;

  			}

  			.custom-file-input::before {

  			  content:'Resimleri Buraya Sürükleyip Atın!';

  			  display: inline-block;

  			  background: -webkit-linear-gradient(top, #f9f9f9, #e3e3e3);

  			  width:100%;

  			  height:170px;

  			  margin-top:50px;

  			  text-align:center;

  			  vertical-align: middle;



  			  border-radius: 3px;

  			  padding: 5px 8px;

  			  outline: none;

  			  white-space: nowrap;

  			  -webkit-user-select: none;

  			  cursor: pointer;

  			  text-shadow: 1px 1px #fff;

  			  font-weight: 700;

  			  font-size: 10pt;

  			}

  			.custom-file-input:hover::before {

  			  border-color: black;

  			}

  			.custom-file-input:active::before {

  			  background: -webkit-linear-gradient(top, #e3e3e3, #f9f9f9);

  			}
  			</style>
              <div style="background-color: rgba(0, 0, 0, 0.2);" class="form-group">
                <h4 class="text-center"><i class="fa fa-arrow-circle-down" aria-hidden="true"></i> Resimleri Buraya Sürükleyip Atın! <i class="fa fa-arrow-circle-down" aria-hidden="true"></i></h4>
                <input class="form-control rounded custom-file-input" style="width:100%;height:250px;" name="galeriResim[]" onchange="getImg(this,4096,'jpeg|png')" multiple type="file">
			  </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>
