<?php if(!defined("Hacking")){die("404 Not Found"); } ?>
<?php
error_reporting(0);
    $gelen = @get('duzenle');
    $markalar_bilgileri = $db->select('markalar')
            ->where('id',$gelen)
            ->run(true);
?>
<div id="tour-11" class="header-content">
  <h2><i class="fa fa-camera"></i>Marka Düzenle</h2>
  <div align="right">
    <button type="button" class="btn btn-success"><y style="color:black;"><b>Oluşturma: </b><?=date("d/m/Y", strtotime($markalar_bilgileri["olusturma_tarihi"]));?></y></button>
    <button type="button" class="btn btn-warning"><y style="color:black;"><b>Düzenleme:</b> <?=date("d/m/Y", strtotime($markalar_bilgileri["duzenleme_tarihi"]));?></y></button>
  </div>
</div>
<div class="body-content animated fadeIn">
  <?php

    if($_POST){
                    // Formdan Gelen Dizi Değeri
                    $markalarbaslik = post('markalarBaslik');
					          $markalarResim = $_FILES["markalarResim"]["name"];
                    // markalar Düzenleme Fonksiyonu
                    $Modul->markalar_duzenle($markalarbaslik,$markalarResim,$gelen);
                }
    ?>



  <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>Marka 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="markalarBaslik" value="<?php echo $m->baslik; ?>" placeholder="markalar Ad覺 Girinyedek" type="text"> !-->
                <input class="form-control" name="markalarBaslik" value="<?php echo $markalar_bilgileri["markalarBaslik"]; ?>" placeholder="Marka 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>Marka Resmi </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" style="border:0px solid #989898!important" type="file">
            </div>
            <center style="color:red;">
              Kayıtlı resim, Eğerki yeni resim yüklemeyecekseniz seçim yapmanız gerekmez! <br>
              <img src="../upload/markalar/<?php echo $markalar_bilgileri["markalarResim"]; ?>" style="width:150px;height:150px;">
            </center>
            <br>
          </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;Düzenlemeyi Kaydet</button>
            </div>
            <div class="clearfix"></div>
          </div>
        </form>
      </div>
