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

<div id="tour-11" class="header-content">
  <h2><i class="fa fa-personel-camera"></i>Yeni Personel Ekle</h2>
</div>
<div class="body-content animated fadeIn">
  <?php
  error_reporting(0);
    if($_POST){
        // Formdan gelen bilgileri
        $personelBaslik = post('personelBaslik');
        $personelEmbed  = $_POST['personelEmbed'];
        $personelText    = post('personelText');
        $personelResim  = $_FILES["personelResim"]["name"];
        // personel Ekleme Fonksiyonu
        $Modul->personel_ekle($personelBaslik,$personelResim,$personelEmbed,$personelText);
    }
    ?>
  <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>Personel 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="personelBaslik"  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>Personel Profil Resmi <b style="color:red;">(Resim Boyutu: 370x370 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="personelResim" 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>Personelin Görevi</h3>
            </div>
            <div class="clearfix"></div>
          </div>
          <div class="panel-body no-padding">
            <div class="form-group">
              <input class="form-control rounded" name="personelEmbed" placeholder="Örnek: Web Tasarımcı"  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>Personel Hakkında</h3>
            </div>
            <div class="clearfix"></div>
          </div>
          <div class="panel-body no-padding">
            <div class="form-group">
              <input class="form-control rounded" name="personelText"  type="text">
            </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>
