<?php include("header.php");?>

<?php
if(g('islem')=="sil")
{
	$id = g('id');
	
	$slider_sil_sorgu = Sorgu("DELETE FROM admin WHERE yonetici_id='$id'");
	
	$bilgi = '	 <div class="alert alert-success">
										Başarı ile Silinmiştir !
				  </div>' ;
	
}

?>


  <section id="main-content">
          <section class="wrapper site-min-height">
              <!-- page start-->
              <section class="panel">
                  <header class="panel-heading">
                      Yöneticiler
                  </header>
                  <div class="panel-body">
                      <div class="adv-table editable-table ">
                          <div class="clearfix">
                               <div class="box-header">
                <a href="yoneticiekle.php" class="btn btn-shadow btn-warning">
				<i class="fa fa-plus"></i> Yönetici Ekle</a>
                </div><!-- /.box-header --><br>
                          
                          </div>
                          <div class="space15"></div>
                          <table class="table table-striped table-hover table-bordered" id="editable-sample">
                              <thead>
                              <tr>
                                  <th>Sıra</th>
                                  <th>Adı Soyadı</th>
                                  <th>Kullanıcı Adı</th>
                                  <th>Email</th>
								  <th>Son Giriş</th>
                                  <th>İşlem</th>
                                 
                              </tr>
                              </thead>
                              <tbody>
							  
							  
							  
			        <?php $YoneticiSorgu = Sorgu("SELECT * FROM admin ORDER BY id DESC");
        while($YoneticiSonuc = Sonuc($YoneticiSorgu)){?>
                              <tr class="">
                           <td><?php echo $YoneticiSonuc->id; ?></td>
                        <td><?php echo $YoneticiSonuc->ad_soyad; ?></td>
                        <td><?php echo $YoneticiSonuc->kullanici; ?></td>
                        <td><?php echo $YoneticiSonuc->email; ?></td>
                        <td><?php echo $YoneticiSonuc->son_giris; ?></td>
								   
								   
								   
                              
								  
								  
								           <td>

									      <a  href="?islem=sil&id=<?php echo $YoneticiSonuc->id;?>" onclick="return confirm('Silmek istediğinize emin misiniz ?')" class="btn btn-danger btn-xs"><i class="fa fa-trash-o "></i></a>
										     <a  href="yoneticiekle.php?islem=duzenle&id=<?php echo $YoneticiSonuc->id;?>""  class="btn btn-primary btn-xs"><i class="fa fa-pencil"></i></a>
                                            </td>
											
                              </tr>
                             
                             
							    <?php } ?>  
							 
							 
							 
							 
							 
							 
                              </tbody>
                          </table>
                      </div>
                  </div>
              </section>
              <!-- page end-->
          </section>
      </section>



<?php include("footer.php");?>