<?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>Yayın Akışı Ekle</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="yakis-listele">Yayın Akışı Listele</a></li>
            <li class="breadcrumb-item active">Yayın Akışı</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">Yayın Akışı Ekle</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="inputEmail3" class="col-sm-2 col-form-label">Programcı Adı</label>
            <div class="col-sm-8">
              <input type="text" class="form-control" name="programci" placeholder="Programcı Adı">
            </div>
          </div>  
          <div class="form-group row">
            <label for="inputEmail3" class="col-sm-2 col-form-label">Slogan</label>
            <div class="col-sm-8">
              <input type="text" class="form-control" name="program" placeholder="Programcı Slogan">
            </div>
          </div> 
           <div class="form-group row">
            <label class="col-sm-2 col-form-label">Yayın Saati</label>
            <div class="col-sm-3">
              <input type="time" class="form-control" name="yayin_saat" placeholder="Başlama Saati">
            </div>
 
            <label class="col-sm-1 col-form-label">Bitiş Saati</label>
            <div class="col-sm-3">
              <input type="time" class="form-control" name="yayin_bitisi" placeholder="Biriş Saati">
            </div>
          </div>  


          <div class="form-group row">
            <label for="inputEmail3" class="col-sm-2 col-form-label">Günler</label>
            <div class="col-sm-2">
              <select name="gunler" class="form-control" required="">
               <option <?php if ($row['gunler']=="1") {echo 'selected=""';} ?> value="1">Pazartesi</option>
               <option <?php if ($row['gunler']=="2") {echo 'selected=""';} ?> value="2">Salı</option>
               <option <?php if ($row['gunler']=="3") {echo 'selected=""';} ?> value="3">Çarşamba</option>
               <option <?php if ($row['gunler']=="4") {echo 'selected=""';} ?> value="4">Perşembe</option>
               <option <?php if ($row['gunler']=="5") {echo 'selected=""';} ?> value="5">Cuma</option>
               <option <?php if ($row['gunler']=="6") {echo 'selected=""';} ?> value="6">Cumartesi</option>
               <option <?php if ($row['gunler']=="7") {echo 'selected=""';} ?> value="7">Pazar</option>
             </select>
           </div>
         </div>
         
          
           <div class="form-group row">
            <label for="inputEmail3" class="col-sm-2 col-form-label">Durumu</label>
            <div class="col-sm-1">
              <select name="durum" class="form-control" required="">
                <option value="yes">Durum Aktif</option>
                <option value="no">Durum Pasif</option>
              </select>
            </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ı 400x400 px olmalıdır.</p>
            </div> 
          </div> 
        </div>
        <!-- /.card-body --> 
        <div class="card-footer">
          <button type="submit" name="yayinakisiekle" class="btn btn-info"><i class="fas fa-save"></i> Kaydet</button> 
        </div>
        <!-- /.card-footer -->
      </form>
    </div>
    <!-- /.card -->

  </section>
  <!-- /.content -->
</div>
<!-- /.content-wrapper -->
<?php require admin_view('include/footer'); ?>
