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

<div id="tour-11" class="header-content">
  <h2><i class="fa fa-camera"></i>Yeni Marka Ekle</h2>
</div>
<div class="body-content animated fadeIn">
  <?php
    if($_POST){
        // Formdan gelen bilgileri
        $markalarBaslik   = post('markalarBaslik');
        $markalarResim    = $_FILES["markalarResim"]["name"];
        // markalar Ekleme Fonksiyonu
        $Modul->markalar_ekle($markalarBaslik,$markalarResim);
    }
    ?>
  <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>Başlık &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="markalarBaslik" 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 <b style="color:red;">(Resim Boyutu 148x70 olmalı)</b></h3>
            </div>
            <div class="clearfix"></div>
          </div>
          <div class="panel-body no-padding">
            <div class="form-group">
              <input class="form-control rounded" name="markalarResim" id="resimboyut" 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>
