<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> 

<style>
* {
  box-sizing: border-box;
}

input[type=text],[type=date], select, textarea, table, tr {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

label {
  padding: 12px 12px 12px 0;
  display: inline-block;
}

input[type=submit] {
  background-color: #4CAF50;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  float: right;
  margin-top:5px;

}

input[type=submit]:hover {
  background-color: #45a049;
}

.ana {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
}

.col-25 {
  float: left;
  width: 25%;
  margin-top: 6px;
}

.col-75 {
  float: left;
  width: 75%;
  margin-top: 6px;
}

/* Clear floats after the columns */
.satir:after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .col-25, .col-75, input[type=submit] {
    width: 100%;
    margin-top: 5px;
  }
}
</style>
</head>
 
<body>
<div class="ana">    
<?php include '../menu.php';?>
<?php include '../baglanti.php';?>




<table border="1" align="center">
<tr>
<td colspan="2" align="center"> Gelir Kayıt Ekleme</td>
 
</tr>


<form method="POST" autocomplete="off"  action="gelirkayit.php">

    <?php
    $odemedonemi=   $_GET['odemedonemi'];
    $odemeturu=     $_GET['odemeturu'];


    ?>


<div id="gizli" style="display:none;">
<tr>
<td>Öğrenci Adı</td>
<td>
    
    <select name="ogrenciadi">

    <?php 
    
    //veritabanı sorgusu
                                $sorgu = $conn->query("SELECT * FROM ogrenci WHERE Durum='Aktif' order by ogrenciadi ASC"); 
                                while ($sonuc = $sorgu->fetch_assoc()) { 
                                $ogrenciadi = $sonuc['ogrenciadi'];
                                ?>
                  <option value="<?php echo $ogrenciadi; ?>"><?php echo $ogrenciadi; ?></option><?php
                        //öğrenci aidat bilgisi çekme ekranı

                                
                                
    }
                        ?>
    </select>
</td>
</tr>
</div>



<tr>
<td>Tahsilat Tarihi</td>
<td><input type="date" value="<?php echo date('Y-m-d'); ?>" name="odemetarihi"></td>
</tr>
<td>Tutar</td>
<td><input type="text" name="tutar" required="required"></td>
</tr>


<tr>
<td>Ödemeyi Yapan</td>
<td>
    
             <select name="odemeyiyapan">
                  <option value="Annesi">Annesi</option>
                  <option value="Babası">Babası</option>
                  <option value="Dedesi">Dedesi</option>
                  <option value="Diğer">Diğer</option>
            </select>


</td>
</tr>
<tr>
<td>Ödemeyi Alan</td>
<td>
    
             <select name="odemeyialan">
                  <option value="Gamze Nur Sarı">Gamze Nur Sarı</option>
                  <option value="Tuğba Gemici">Tuğba Gemici</option>
                  <option value="Muhammet Selman Ayas">Muhammet Selman Ayas</option>
                  <option value="Adem Gemici">Adem Gemici</option>
                  <option value="Banka">Banka</option>
            </select>


</td>
</tr>
<tr>
<td>Ödeme Yönetmi</td>
<td>
    
             <select name="odemeyontemi">
                  <option value="Nakit">Nakit</option>
                  <option value="EFT">EFT</option>
            </select>


</td>
</tr>
<tr>
<td>Not</td>
<td><input type="text" name="bilgi"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Kaydet"></td>
</tr>
</table>
</form>
<a href="gelirtakip.php">Gelir Kayıtlarını Görüntüle</a>
<a href="gelirlistesi.php">Gelir Kayıtlarını Liste Görünümü</a>
</div>

</body>
 
 
 <p align="center" style=" padding-top:100px;">Güç İçinde!</p>

</html>

