


	<div class="content-wrapper">
  <!-- Content Header (Page header) -->
  <div class="content-header">
    <div class="container-fluid">
      <div class="row mb-2">
        <div class="col-sm-6">
          <h1 class="m-0 text-dark">Banner Liste</h1>
        </div><!-- /.col -->
        <div class="col-sm-6">
          <ol class="breadcrumb float-sm-right">
            <li class="breadcrumb-item"><a href="<?=SITE?>">Anasayfa</a></li>
                <li class="breadcrumb-item"><a href="<?=SITE?>banner-ekle">Banner Ekle</a></li>
            <li class="breadcrumb-item active">Banner Liste</li>
          </ol>
        </div><!-- /.col -->
      </div><!-- /.row -->
    </div><!-- /.container-fluid -->
  </div>
  <!-- /.content-header -->

  <section class="content">
    <div class="container-fluid">
      <div class="row">
        
     </div>
     <div class="card">
      <!-- /.card-header -->
      <div class="card-body">
        <table id="example1" class="table table-bordered table-striped">
          <thead>
            <tr>
              <th style="width:50px;">Sıra</th>
              <th>Açıklama</th>
              <th style="width:50px;">Durum</th>
              <th style="width:80px;">Tarih</th>
              <th style="width:120px;">İşlem</th>
            </tr>
          </thead>
          <tbody>
            <?php
            $veriler=$VT->VeriGetir("banner","","","ORDER BY ID ASC");
            if($veriler!=false)
            {
             $sira=0;
             for($i=0;$i<count($veriler);$i++)
             {
              $sira++;
              if($veriler[$i]["durum"]==1){$aktifpasif=' checked="checked"';}else{$aktifpasif='';}
              ?>
              <tr>
                <td><?=$sira?></td>
                <td> 
                  <img src="<?=ANASITE?>images/banner/<?=$veriler[$i]["resim"]?>" style="height: 60px; width: auto; margin-right: 8px; float: left;">
                  <?=stripcslashes($veriler[$i]["baslik"])?>
                </td>
                <td>
                  <div class="custom-control custom-switch custom-switch-off-danger custom-switch-on-success">
                    <input type="checkbox" class="custom-control-input aktifpasif<?=$veriler[$i]["ID"]?>" id="customSwitch3<?=$veriler[$i]["ID"]?>"<?=$aktifpasif?> value="<?=$veriler[$i]["ID"]?>" onclick="aktifpasif(<?=$veriler[$i]["ID"]?>,'banner');">
                    <label class="custom-control-label" for="customSwitch3<?=$veriler[$i]["ID"]?>"></label>
                  </div>
                </td>
                <td><?=$veriler[$i]["tarih"]?></td>
                <td>
                  <a href="<?=SITE?>banner-duzenle/<?=$veriler[$i]["ID"]?>" class="btn btn-warning btn-sm">Düzenle</a>
                  <a href="<?=SITE?>banner-sil/<?=$veriler[$i]["ID"]?>" class="btn btn-danger btn-sm silmeAlani">Sil</a>
                </td>
              </tr>
              <?php
            }
          }
          ?>               
        </tbody> 
      </table>
    </div>
    <!-- /.card-body -->
  </div> 
</div><!-- /.container-fluid -->
</section>
<!-- /.content -->
</div>

