<?php require admin_view('include/header'); ?> 
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
  <!-- Content Header (Page header) -->
  <section class="content-header">
    <div class="container-fluid">
      <div class="row mb-2">
        <div class="col-sm-6">
          <h1>Sponsor Düzenle</h1>
        </div>
        <div class="col-sm-6">
          <ol class="breadcrumb float-sm-right">
            <li class="breadcrumb-item"><a href="index">Görsel Panel</a></li>
            <li class="breadcrumb-item"><a href="sponsor-ekle">Yeni Ekle</a></li>
            <li class="breadcrumb-item active">Sponsor Düzenle</li>
          </ol>
        </div>
      </div>
    </div><!-- /.container-fluid -->
  </section>

  <!-- Main content -->
  <section class="content"> 
    <!-- Default box -->
    <div class="card card-info">
      <div class="card-header">
        <h3 class="card-title">Sponsor Düzenle</h3>
      </div>
      <!-- /.card-header -->
      <!-- form start -->
      <form action="" method="post" enctype="multipart/form-data">
        <div class="card-body">  
          <div class="form-group row">
            <label for="sponsor" class="col-sm-2 col-form-label">Sponsor:</label>
            <div class="col-sm-8">
              <input type="text" class="form-control" name="sponsor" placeholder="Sponsor adı" value="<?= $row['sponsor'] ?>">
            </div>
          </div>   
           <div class="form-group row">
            <label for="sponsor_url" class="col-sm-2 col-form-label">Web Site:</label>
            <div class="col-sm-8">
              <input type="text" class="form-control" name="sponsor_url" placeholder="Sponsor adı" value="<?= $row['sponsor_url'] ?>">
            </div>
          </div> 
      
         <div class="form-group row">
          <label for="image" class="col-sm-2 col-form-label">Resim</label>
          <div class="col-sm-8"> 
            <input type="file" class="form-control" name="image">  
            <p style="margin-left:10px;font-size:13px;margin-top:5px;">Tavsiye edilen görselin boyutları 190x125 px olmalıdır.</p>
          </div> 
        </div> 

        
      </div>
      <!-- /.card-body --> 
      <div class="card-footer"> 
      <input type="hidden" name="id" value="<?= $row['id'] ?>">
      <button type="submit" name="editsponsor" class="btn btn-info"> Güncelle</button> 
    </div>
    <!-- /.card-footer -->
  </form>
</div>
<!-- /.card -->

</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->

<?php require admin_view('include/footer'); ?>  
 