<!DOCTYPE html>
<html lang="tr">
<?php require view('include/head'); ?>
<body>
  <?php require view('include/header'); ?>
  <link rel="stylesheet" href="<?= public_url(); ?>css\custom\sponsor.css" />

  <section class="single-banner">
    <div class="container">
      <div class="row">
        <div class="col-lg-12">
          <div class="single-content">
            <h2>İstek Gönder</h2>
            <ol class="breadcrumb">
              <li class="breadcrumb-item"><a href="index.php">Anasayfa</a></li>
              <li class="breadcrumb-item active" aria-current="page">
                İstek Gönder
              </li>
            </ol>
          </div>
        </div>
      </div>
    </div>
  </section>

  <section class="sponsor-part">
    <div class="container">
      <div class="row">
        <div class="col-lg-12">
          <div class="section-heading">
            <h2>İstek Gönder</h2>
          </div>
        </div>
      </div>
      <form action="" method="POST">
        <div class="row">
          <div class="col-lg-6">
            <div class="form-group">
              <input type="text" name="isim" placeholder="Adınız" required=""><i class="fas fa-user"></i>
            </div>
          </div>
          <div class="col-lg-6">
            <div class="form-group">
              <input type="text" name="soyad" placeholder="Soyadınız" required=""><i class="fas fa-info"></i>
            </div>
          </div>
          <div class="col-lg-6">
            <div class="form-group">
              <input type="text" name="istekparca" placeholder="İstek Parça" required=""><i class="fas fa-info"></i>
            </div>
          </div>
          <div class="col-lg-6">
            <div class="form-group">
              <input type="email" name="email" placeholder="E-Mail Adresiniz" required=""><i class="fas fa-envelope"></i>
            </div>
          </div> 
          <div class="col-lg-12">
            <div class="form-group">
              <textarea name="message" placeholder="Mesajınız" required=""></textarea><i class="fas fa-pen-nib"></i>
            </div>
          </div>

          <div class="col-lg-12">
            <div class="form-btn"> 
              <button name="istekgonder" type="submit" class="btn btn-inline">
                <i class="fas fa-paper-plane"></i><span>İstek Gönder</span>
              </button>
            </div>
          </div>

        </div>
      </form>
      <br>
      <p>
      Sayın; Dinleyicimiz güvenliğiniz için ip adresiniz </p>
      ( <?php $ip = $_SERVER['REMOTE_ADDR']; echo 'İp Adresiniz :'; echo $ip; ?> ) Kaydedildi.!
      <marquee direction=left>İsteğiniz yayındaki programcının istek yoğunluğa göre değişebilmektedir. İsteğiniz en yakın zamanda çalınacaktır.</marquee>
    </section>

    <?php require view('include/footer'); ?>
    <script src="<?= public_url(); ?>js/sweetalert.min.js"></script>
    <?php if (isset($success)) { ?>
      <script type="text/javascript">
        swal("İstek Gönderildi.", "<?= $success ?>", "success").then(function() {window.location.href = 'istek';});
      </script>
    <?php } ?>
    <?php if (isset($error)) { ?>
      <script type="text/javascript">
        swal("Hata.", "<?= $error ?>", "error").then(function() {window.location.href = 'istek';});
      </script>
      <?php } ?>