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

	<section class="single-banner">
		<div class="container">
			<div class="row">
				<div class="col-lg-12">
					<div class="single-content">
						<h2>Yayın Akışı</h2>
						<ol class="breadcrumb">
							<li class="breadcrumb-item"><a href="index">Anasayfa</a></li>
							<li class="breadcrumb-item active" aria-current="page">
								Yayın Akışı
							</li>
						</ol>
					</div>
				</div>
			</div>
		</div>
	</section>

	<section class="show-part">
		<div class="container">
			<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">Pazartesi</a>
							</li>

							<li>
								<a href="#sal" class="nav-link" data-toggle="tab">Salı</a>
							</li>

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

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

							<li>
								<a href="#wed" class="nav-link" data-toggle="tab">Cuma</a>
							</li>

							<li>
								<a href="#cmt" class="nav-link" data-toggle="tab">Cumartesi</a>
							</li>

							<li>
								<a href="#pzr" class="nav-link" data-toggle="tab">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 class="row">
				<div class="col-lg-12">
					<div class="show-btn">
						<a class="btn btn-outline" href="iletisim"
						><i class="fas fa-eye"></i><span>Programcı Aranıyor...</span></a
						>
					</div>
				</div>
			</div>
		</div>
	</section>
	<?php require view('include/footer'); ?>