<!DOCTYPE html>
<html lang="tr">

<?php require view('include/head'); ?>

<body>

  <?php require view('include/header'); ?>

  <link rel="stylesheet" href="<?= public_url(); ?>css/custom/index.css"> 
  <!-- Slider-->
  <main class="banner-slider">
   <?php while ($rowslider=$queryslider->fetch(PDO::FETCH_ASSOC)) { ?>
  <section  class="banner-1" style="background: url('<?= public_url() . "" . $rowslider['image'] ?>') no-repeat; background-size:cover;">
      <div class="banner-oly">
        <div class="container">
          <div class="row">
            <div class="col-lg-12">
              <div class="banner-content">
                <h1><?= $rowslider['baslik']; ?></h1>
                <p><?= $rowslider['aciklama']; ?></p> 
              </div>
            </div>
          </div>
        </div>
      </div>
    </section> 
  <?php } ?>
</main> 
 
<!--Programcılar--> 
<?php if ($totalprogramci > 0) { ?>
  <section class="section team-part">
    <div class="container">
      <div class="row">
        <div class="col-lg-12">
          <div class="section-heading">
            <h2><i class="fas fa-headphones-alt"></i> Programcılar</h2> 
          </div>
        </div>
      </div>

      <div class="row">
        <div class="col-lg-12">
          <div class="team-slider slider-arrow">
            <?php while ($rowpro=$queryprogramci->fetch(PDO::FETCH_ASSOC)) { ?>
              <div class="team-card">
                <div class="team-img">
                  <img src="<?= public_url()."".$rowpro['image'] ?>" alt="<?= $rowpro['programci']; ?>" />
                  <div class="team-overlay">
                    <ul class="team-icon">
                      <li>
                        <a class="icon icon-inline" target="_blank" href="<?= $rowpro['facebook']; ?>"><i class="fab fa-facebook-f"></i></a>
                      </li>
                      <li>
                        <a class="icon icon-inline" target="_blank" href="<?= $rowpro['twitter']; ?>"><i class="fab fa-twitter"></i></a>
                      </li>
                      <li>
                        <a class="icon icon-inline" target="_blank" href="<?= $rowpro['instagram']; ?>"><i class="fab fa-instagram"></i></a>
                      </li>
                    </ul>
                  </div>
                </div>
                <div class="team-meta">
                  <h4><?= $rowpro['programci']; ?></h4>
                  <p><?= $rowpro['program']; ?></p>
                </div>
              </div>
            <?php } ?>
          </div>
        </div>
      </div>
      
      <div class="row">
        <div class="col-lg-12">
          <div class="team-btn">
            <a class="btn btn-outline" href="programci"><i class="fas fa-eye"></i><span>Tüm Programcılar</span></a>
          </div>
        </div>
      </div>
    </div>
  </section>
<?php } ?> 
<!--Yayın Akışı--> 
  <section class="section team-part">
    <div class="container">
      <div class="row">
        <div class="col-lg-12">
          <div class="section-heading">
            <h2><i class="fas fa-headphones-alt"></i> Yayın Akışı</h2> 
          </div>
        </div>
      </div>

      <div class="row">
        <div class="col-lg-12">
          <div id="show-menu">
            <ul class="nav nav-tabs">
              <li>
                <a href="#pst" class="nav-link active" data-toggle="tab"><i class="fas fa-headphones-alt"></i> Pazartesi</a>
              </li>

              <li>
                <a href="#sal" class="nav-link" data-toggle="tab"><i class="fas fa-headphones-alt"></i> Salı</a>
              </li>

              <li>
                <a href="#car" class="nav-link" data-toggle="tab"><i class="fas fa-headphones-alt"></i> Çarşamba</a>
              </li>

              <li>
                <a href="#psm" class="nav-link" data-toggle="tab"><i class="fas fa-headphones-alt"></i> Perşembe</a>
              </li>

              <li>
                <a href="#wed" class="nav-link" data-toggle="tab"><i class="fas fa-headphones-alt"></i> Cuma</a>
              </li>

              <li>
                <a href="#cmt" class="nav-link" data-toggle="tab"><i class="fas fa-headphones-alt"></i> Cumartesi</a>
              </li>

              <li>
                <a href="#pzr" class="nav-link" data-toggle="tab"><i class="fas fa-headphones-alt"></i> Pazar</a>
              </li>

            </ul>
          </div>
        </div>
      </div>

      <div class="row">
        <div class="col-lg-12">
          <?php

          $psor = $db->prepare("SELECT * FROM yayinakisi where gunler='1' order by id ASC");
          $psor->execute(array(0));
          ?>
          <div class="tab-pane active" id="pst">
            <div class="row">
              <?php while ($rowp=$psor->fetch(PDO::FETCH_ASSOC)) { ?>
                <div class="col-sm-6 col-md-4 col-lg-3">
                  <div class="show-card">
                    <div class="show-content">
                      <div class="show-bg">
                        <img src="<?= public_url()."".$rowp['image'] ?>" alt="show-1" />
                      </div>
                      <div class="show-overlay">
                        <div class="show-time">
                          <p><?= $rowp['yayin_saat']; ?> - <?= $rowp['yayin_bitisi']; ?> Arası</p>
                          <h4><?= $rowp['program']; ?> </h4>
                        </div>
                        <ul class="show-host"> 
                          <li>
                            <a href="#"
                            ><img src="<?= public_url()."".$rowp['image'] ?>" alt="host-3"
                            /></a>
                          </li>
                        </ul>
                      </div>
                    </div>
                    <div class="show-meta"><h5><?= $rowp['programci']; ?></h5></div>
                  </div>
                </div> 
              <?php } ?> 
            </div>
          </div>
          <?php
          $psor = $db->prepare("SELECT * FROM yayinakisi where gunler='2' order by id ASC");
          $psor->execute(array(0));
          ?>
          <!--Salı-->
          <div class="tab-pane" id="sal">
            <div class="row">
              <?php while ($rowsal=$psor->fetch(PDO::FETCH_ASSOC)) { ?>
                <div class="col-sm-6 col-md-4 col-lg-3">
                  <div class="show-card">
                    <div class="show-content">
                      <div class="show-bg">
                        <img src="<?= public_url()."".$rowsal['image'] ?>" alt="show-1" />
                      </div>
                      <div class="show-overlay">
                        <div class="show-time">
                          <p><?= $rowsal['yayin_saat']; ?> - <?= $rowsal['yayin_bitisi']; ?> Arası</p>
                          <h4><?= $rowsal['program']; ?> </h4>
                        </div>
                        <ul class="show-host"> 
                          <li>
                            <a href="#"
                            ><img src="<?= public_url()."".$rowsal['image'] ?>" alt="host-3"
                            /></a>
                          </li>
                        </ul>
                      </div>
                    </div>
                    <div class="show-meta"><h5><?= $rowsal['programci']; ?></h5></div>
                  </div>
                </div> 
              <?php } ?> 
            </div>
          </div>

          <?php
          $psor = $db->prepare("SELECT * FROM yayinakisi where gunler='3' order by id ASC");
          $psor->execute(array(0));
          ?>
          <!--Çarşamba-->
          <div class="tab-pane" id="car">
            <div class="row">
              <?php while ($rowcar=$psor->fetch(PDO::FETCH_ASSOC)) { ?>
                <div class="col-sm-6 col-md-4 col-lg-3">
                  <div class="show-card">
                    <div class="show-content">
                      <div class="show-bg">
                        <img src="<?= public_url()."".$rowcar['image'] ?>" alt="show-1" />
                      </div>
                      <div class="show-overlay">
                        <div class="show-time">
                          <p><?= $rowcar['yayin_saat']; ?> - <?= $rowcar['yayin_bitisi']; ?> Arası</p>
                          <h4><?= $rowcar['program']; ?> </h4>
                        </div>
                        <ul class="show-host"> 
                          <li>
                            <a href="#"
                            ><img src="<?= public_url()."".$rowcar['image'] ?>" alt="host-3"
                            /></a>
                          </li>
                        </ul>
                      </div>
                    </div>
                    <div class="show-meta"><h5><?= $rowcar['programci']; ?></h5></div>
                  </div>
                </div> 
              <?php } ?> 
            </div>
          </div>
          <?php
          $psor = $db->prepare("SELECT * FROM yayinakisi where gunler='4' order by id ASC");
          $psor->execute(array(0));
          ?>
          <!--Perşembe-->
          <div class="tab-pane" id="prs">
            <div class="row">
              <?php while ($rowprs=$psor->fetch(PDO::FETCH_ASSOC)) { ?>
                <div class="col-sm-6 col-md-4 col-lg-3">
                  <div class="show-card">
                    <div class="show-content">
                      <div class="show-bg">
                        <img src="<?= public_url()."".$rowprs['image'] ?>" alt="show-1" />
                      </div>
                      <div class="show-overlay">
                        <div class="show-time">
                          <p><?= $rowprs['yayin_saat']; ?> - <?= $rowprs['yayin_bitisi']; ?> Arası</p>
                          <h4><?= $rowprs['program']; ?> </h4>
                        </div>
                        <ul class="show-host"> 
                          <li>
                            <a href="#"
                            ><img src="<?= public_url()."".$rowprs['image'] ?>" alt="host-3"
                            /></a>
                          </li>
                        </ul>
                      </div>
                    </div>
                    <div class="show-meta"><h5><?= $rowprs['programci']; ?></h5></div>
                  </div>
                </div> 
              <?php } ?> 
            </div>
          </div>
          <?php
          $psor = $db->prepare("SELECT * FROM yayinakisi where gunler='5' order by id ASC");
          $psor->execute(array(0));
          ?>
          <!--Cuma-->
          <div class="tab-pane" id="cuma">
            <div class="row">
              <?php while ($rowcuma=$psor->fetch(PDO::FETCH_ASSOC)) { ?>
                <div class="col-sm-6 col-md-4 col-lg-3">
                  <div class="show-card">
                    <div class="show-content">
                      <div class="show-bg">
                        <img src="<?= public_url()."".$rowcuma['image'] ?>" alt="show-1" />
                      </div>
                      <div class="show-overlay">
                        <div class="show-time">
                          <p><?= $rowcuma['yayin_saat']; ?> - <?= $rowcuma['yayin_bitisi']; ?> Arası</p>
                          <h4><?= $rowcuma['program']; ?> </h4>
                        </div>
                        <ul class="show-host"> 
                          <li>
                            <a href="#"
                            ><img src="<?= public_url()."".$rowcuma['image'] ?>" alt="host-3"
                            /></a>
                          </li>
                        </ul>
                      </div>
                    </div>
                    <div class="show-meta"><h5><?= $rowcuma['programci']; ?></h5></div>
                  </div>
                </div> 
              <?php } ?> 
            </div>
          </div>

          <?php
          $psor = $db->prepare("SELECT * FROM yayinakisi where gunler='6' order by id ASC");
          $psor->execute(array(0));
          ?>
          <!--Cumartesi-->
          <div class="tab-pane" id="cmt">
            <div class="row">
              <?php while ($rowcmt=$psor->fetch(PDO::FETCH_ASSOC)) { ?>
                <div class="col-sm-6 col-md-4 col-lg-3">
                  <div class="show-card">
                    <div class="show-content">
                      <div class="show-bg">
                        <img src="<?= public_url()."".$rowcmt['image'] ?>" alt="show-1" />
                      </div>
                      <div class="show-overlay">
                        <div class="show-time">
                          <p><?= $rowcmt['yayin_saat']; ?> - <?= $rowcmt['yayin_bitisi']; ?> Arası</p>
                          <h4><?= $rowcmt['program']; ?> </h4>
                        </div>
                        <ul class="show-host"> 
                          <li>
                            <a href="#"
                            ><img src="<?= public_url()."".$rowcmt['image'] ?>" alt="host-3"
                            /></a>
                          </li>
                        </ul>
                      </div>
                    </div>
                    <div class="show-meta"><h5><?= $rowcmt['programci']; ?></h5></div>
                  </div>
                </div> 
              <?php } ?> 
            </div>
          </div>
          <?php
          $psor = $db->prepare("SELECT * FROM yayinakisi where gunler='7' order by id ASC");
          $psor->execute(array(0));
          ?>
          <!--Pazar-->
          <div class="tab-pane" id="pzr">
          <div class="row">
              <?php while ($rowpzr=$psor->fetch(PDO::FETCH_ASSOC)) { ?>
                <div class="col-sm-6 col-md-4 col-lg-3">
                  <div class="show-card">
                    <div class="show-content">
                      <div class="show-bg">
                        <img src="<?= public_url()."".$rowpzr['image'] ?>" alt="show-1" />
                      </div>
                      <div class="show-overlay">
                        <div class="show-time">
                          <p><?= $rowpzr['yayin_saat']; ?> - <?= $rowpzr['yayin_bitisi']; ?> Arası</p>
                          <h4><?= $rowpzr['program']; ?> </h4>
                        </div>
                        <ul class="show-host"> 
                          <li>
                            <a href="#"
                            ><img src="<?= public_url()."".$rowpzr['image'] ?>" alt="host-3"
                            /></a>
                          </li>
                        </ul>
                      </div>
                    </div>
                    <div class="show-meta"><h5><?= $rowpzr['programci']; ?></h5></div>
                  </div>
                </div> 
              <?php } ?> 
            </div>
          </div>
        </div>
      </div> 
    </div>
  </section>

<!--Haberler--> 
<?php if ($totalhaber > 0) { ?>
  <section class="section blog-part">
    <div class="container">
      <div class="row">
        <div class="col-lg-12">
          <div class="section-heading">
            <h2><i class="fas fa-newspaper"></i> Haberler</h2>
          </div>
        </div>
      </div>
      <div class="row">
        <div class="col-lg-12">
          <div class="blog-slider slider-arrow">
            <?php while($rowhaber=$queryhaber->fetch(PDO::FETCH_ASSOC)) { ?>
              <div class="blog-card">
                <img src="<?= public_url()."".$rowhaber['image'] ?>" alt="<?= $rowhaber['haber']; ?>" />
                <div class="blog-overlay">
                  <p><?= $rowhaber['edit_date']; ?></p>
                  <h3>
                    <a href="haber-detay/<?= $rowhaber['seourl']?>"><?= $rowhaber['haber']; ?></a>
                  </h3>
                  <a class="btn btn-outline" href="haber-detay/<?= $rowhaber['seourl']?>">Devamı oku...</a>
                </div>
              </div> 
            <?php } ?> 
          </div>
        </div>
      </div>
      <div class="row">
        <div class="col-lg-12">
          <div class="blog-btn">
            <a class="btn btn-outline" href="haber"><i class="fas fa-eye"></i><span> Tüm Programcılar</span></a>
          </div>
        </div>
      </div>
    </div>
  </section>
<?php } ?>

<?php if ($totalsponsor > 0) { ?>
  <!--Sponsorlarımız--> 
  <section class="section sponsor-part">
    <div class="container">
      <div class="row">
        <div class="col-lg-12">
          <div class="section-heading"><h2><i class="fas fa-users"></i> Sponsorlarımız</h2></div>
        </div>
      </div>
      <div class="row">
        <div class="col-lg-12">
          <div class="sponsor-slider slider-arrow">
            <?php while($rowsponsor=$querysponsor->fetch(PDO::FETCH_ASSOC)) { ?>
              <a target="_blank" href="<?= $rowsponsor['sponsor_url']; ?>">
                <img src="<?= public_url()."".$rowsponsor['image'] ?>" alt="<?= $rowsponsor=['sponsor']; ?>">
              </a>
            <?php } ?> 
          </div>
        </div>
      </div>
    </div>
  </section>
<?php } ?> 

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