


	<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">İletişim Mesajları</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 active">İletişim Mesajları</li>
          </ol>
        </div><!-- /.col -->
      </div><!-- /.row -->
    </div><!-- /.container-fluid -->
  </div>
  <!-- /.content-header -->

  <section class="content">
    <div class="container-fluid"> 
     <div class="card">
      <!-- /.card-header -->
      <div class="card-body">
        <table id="example1" class="table table-bordered table-striped">
          <thead>
            <tr>
              <th style="width:5px;">Sıra</th>
              <th style="width:100px;">Adı Soyadı</th> 
              <th style="width:50px;">konu</th>  
              <th style="width:50px;">E-Mail</th>
              <th style="width:50px;">Telefon</th> 
              <th style="width:50px;">Tarih</th>
              <th style="width:5px;">İşlem</th>
            </tr>
          </thead>
          <tbody>
            <?php
            $veriler=$VT->VeriGetir("contact","","","ORDER BY ID ASC");
            if($veriler!=false)
            {
              $sira=0;
              for($i=0;$i<count($veriler);$i++)
              {
                $sira++; 
                ?>
                <tr>
                  <td><?=$sira?></td>
                  <td><?=stripcslashes($veriler[$i]["adsoyad"])?></td> 
                  <td><?=stripcslashes($veriler[$i]["konu"])?></td> 
                  <td><?=stripcslashes($veriler[$i]["mail"])?></td>
                  <td><?=stripcslashes($veriler[$i]["telefon"])?></td> 
                  <td><?=$veriler[$i]["tarih"]?></td>
                  <td> 
                    <button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal<?=$veriler[$i]["ID"]?>">
                      <i class="fa fa-eye" aria-hidden="true"></i> Tümünü Oku
                    </button>
                    <a href="<?=SITE?>iletisim-sil/<?=$veriler[$i]["ID"]?>" class="btn btn-danger silmeAlani"><i class="fa fa-trash"></i> Sil</a>
                  </td>
                </tr>
                <div class="modal fade" id="modal<?=$veriler[$i]["ID"]?>">
                  <div class="modal-dialog modal-lg">
                    <div class="modal-content">
                      <div class="modal-header">
                        <h4 class="modal-title">Konu: <?=stripcslashes($veriler[$i]["konu"])?></h4>
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                          <span aria-hidden="true">&times;</span>
                        </button>
                      </div>
                      <div class="modal-body"> 
                        <p><?=stripcslashes($veriler[$i]["mesaj"])?></p>
                      </div>
                      <div class="modal-footer justify-content-between">
                        <button type="button" class="btn btn-default" data-dismiss="modal">Kapat</button>
                        <p>Gönderme Tarihi: <?=$veriler[$i]["tarih"]?> </p>
                      </div>
                    </div>
                    <!-- /.modal-content -->
                  </div>
                  <!-- /.modal-dialog -->
                </div>
                <!-- /.modal -->
                <?php
              }
            }
            ?>               
          </tbody> 
        </table>
      </div>
      <!-- /.card-body -->
    </div> 
  </div><!-- /.container-fluid -->
</section>
<!-- /.content -->
</div>

