<?php include 'include/header.php'; ?> 
<!-- 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>Radyo Ayarlar</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 active">Radyo Ayarlar</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"><i class="fa fa-info-circle fa-lg" aria-hidden="true"></i> Radyo yayın bilgilerinizi güncelleyniz..</h3>
      </div>
      <!-- /.card-header -->
      <!-- form start -->
      <form action="" method="post">
        <div class="card-body"> 

          <div class="form-group row">
            <label for="inputEmail3" class="col-sm-2 col-form-label">Radyo İsmi:</label>
            <div class="col-sm-8">
              <iframe src="https://<?= $row['radyo_ip'] ?>/cp/widgets/player/single/?p=<?= $row['radyo_port'] ?>" height="110" width="100%" scrolling="no" style="border:none;"></iframe>
            </div>
          </div> 

          <div class="form-group row">
            <label for="inputEmail3" class="col-sm-2 col-form-label">Radyo İsmi:</label>
            <div class="col-sm-8">
              <input type="text" class="form-control" name="radyo_frekans" value="<?= $row['radyo_frekans'] ?>" placeholder="Radyonuzun ismini yazınız">
            </div>
          </div> 

          <div class="form-group row">
            <label for="inputEmail3" class="col-sm-2 col-form-label">Radyo İp:</label>
            <div class="col-sm-8">
              <input type="text" class="form-control" name="radyo_ip" value="<?= $row['radyo_ip'] ?>" placeholder="Örnek: sp.radyotescil.com">
            </div>
          </div> 

          <div class="form-group row">
            <label for="inputEmail3" class="col-sm-2 col-form-label">Radyo Port:</label>
            <div class="col-sm-8">
              <input type="text" class="form-control" name="radyo_port" value="<?= $row['radyo_port'] ?>" placeholder="Örnek: 8000">
            </div>
          </div> 

          
        </div>
        <!-- /.card-body -->

        <div class="card-footer">
          <button type="submit" name="editshoutcast" class="btn btn-info">Güncelle</button> 
        </div>
        <!-- /.card-footer -->
      </form>
    </div>
    <!-- /.card -->

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

<?php include 'include/footer.php'; ?>  
