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

<div id="tour-11" class="header-content">
  <h2><i class="fa fa-camera"></i>Yeni Referans Ekle</h2>
</div>
<div class="body-content animated fadeIn">
  <?php
    if($_POST){
        // Formdan gelen bilgileri
        $referansBaslik   = post('referansBaslik');
		$referansURL   = post('referansURL');
        $referansResim    = $_FILES["referansResim"]["name"];
        // referans Ekleme Fonksiyonu
        $Modul->referans_ekle($referansBaslik,$referansURL,$referansResim);
    }
    ?>
  <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"><i class="fa fa-edit"></i>Referans Adı</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="referansBaslik" placeholder="Referans Adı Girin" 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-picture-o"></i>Resim Seçin</h3>
            </div>
            <div class="clearfix"></div>
          </div>
          <div class="panel-body no-padding">
            <div class="form-group">
              <input class="form-control rounded" name="referansResim" id="resimboyut" 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-edit"></i>Referans URL</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="referansURL" placeholder="Referans URL Girin (Örn: http://demoexpamle.com vb. )" type="text">
              </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>
