<?php include 'header.php';
$datam = [];
$sqle = $db->query("select * from ihtiyac_tanim r order by r.modul_adi asc");
$items = $sqle->fetchAll(PDO::FETCH_CLASS);
foreach ($items as $k => $v) {
$datam[$v->modul_adi][] = $v;
// print_r($v);
}
?>
<!-- page content -->
<div class="right_col" role="main">
<div class="">
<div class="page-title">
<div class="title_left">
<h3>Yönetim Paneli</h3>
</div>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="col-md-12 col-sm-12 ">
<div class="x_panel">
<div class="x_title">
<div class="col-md-6">
<h2>İhtiyaç Sahibi Formu İşlemleri</h2>
</div>
<div class="col-md-6" align="right">
<a href="#" onclick="window.print()">
<button class="btn btn-success btn-xs print"><i class="fa fa-print"></i> Yazdır </button>
</a>
<a href="ihtiyac.php">
<button class="btn btn-success btn-xs"><i class="fa fa-undo"></i> Geri Dön </button>
</a>
</div>
<div class="clearfix"></div>
</div>
<div class="x_content ">
<div class="row">
<div class="col-sm-12">
<div class="card-box table-responsive yazdir">
<form class="form-horizontal col-sm-12 print " method="post" action="ihtiyac_post.php">
<table id="datatable-responsive" class="table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%">
<tbody>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="col-form-label label-align" for="first-name"> <b><u> Adınız Soyadınız: </u></b>
</label>
<input type="text" id="first-name" name="adsoyad" value="" class="form-control " required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="col-form-label label-align" for="first-name"> <b><u> Sıra No: </u></b>
</label>
<input type="text" id="first-name" name="sirano" value="" class="form-control " required>
</div>
</div>
<div class="col-md-6 ">
<div class="font-weight-bold"><u>MESKEN DURUMU</u></div>
<hr>
<div class="row">
<?php unset($v); foreach($datam["mesken_durumu"] as $v ): ?>
<div class="form-check col-md-6 py-1">
<input class="row form-check-input" type="radio" id="radio<?=$v->Id ?>" name="mesken" value="<?=$v->Id ?>" required>
<label class="form-check-label text-nowrap" for="radio<?=$v->Id ?>"> <?=$v->aciklama ?></label>
</div>
<?php endforeach; ?>
</div>
</div>
<div class="col-md-6">
<div class="font-weight-bold"><u>AİLENİN GELİR DURUMU</u></div>
<hr>
<div class="row">
<?php unset($v); foreach($datam["ailenin_gelir_durumu"] as $v ): ?>
<div class="form-check col-md-6 py-1">
<input class="row form-check-input" type="radio" id="radio<?=$v->Id ?>" name="aile_gelir_durumu" value="<?=$v->Id ?>" required>
<label class="form-check-label text-nowrap" for="radio<?=$v->Id ?>"> <?=$v->aciklama ?></label>
</div>
<?php endforeach; ?>
</div>
</div>
<!-- section ISINMA DURUMU ---- ÖZÜR ve HASTALIK DURUMU-->
<div class="col-md-6 mt-4">
<div class="font-weight-bold "><u>ISINMA DURUMU</u></div>
<hr>
<div class="row">
<?php unset($v); foreach($datam["isinma_durumu"] as $v ): ?>
<div class="form-check col-md-6 py-1">
<input class="row form-check-input" type="radio" id="radio<?=$v->Id ?>" name="isinma_durumu" value="<?=$v->Id ?>" required>
<label class="form-check-label text-nowrap" for="radio<?=$v->Id ?>"> <?=$v->aciklama ?></label>
</div>
<?php endforeach; ?>
</div>
</div>
<div class="col-md-6 mt-4">
<div class="font-weight-bold"><u>ÖZÜR ve HASTALIK DURUMU</u></div>
<hr>
<div class="row">
<?php unset($v); foreach($datam["ozur_ve_hastalik_durumu"] as $v ): ?>
<div class="form-check col-md-6 py-1">
<input class="row form-check-input" type="radio" id="radio<?=$v->Id ?>" name="ozur_ve_hastalik_durumu" value="<?=$v->Id ?>" required>
<label class="form-check-label text-nowrap" for="radio<?=$v->Id ?>"> <?=$v->aciklama ?></label>
</div>
<?php endforeach; ?>
</div>
</div>
<!-- End section -->
<!-- section MESKEN ÖDEMESİ ---- ÖZÜR ve HANEDEKİ KİŞİ SAYISI-->
<div class="col-md-6 mt-4">
<div class="font-weight-bold "><u>MESKEN ÖDEMESİ</u></div>
<hr>
<div class="row">
<?php unset($v); foreach($datam["mesken_odemesi"] as $v ): ?>
<div class="form-check col-md-6 py-1">
<input class="row form-check-input" type="radio" id="radio<?=$v->Id ?>" name="mesken_odemesi" value="<?=$v->Id ?>" required>
<label class="form-check-label text-nowrap" for="radio<?=$v->Id ?>"> <?=$v->aciklama ?></label>
</div>
<?php endforeach; ?>
</div>
</div>
<div class="col-md-6 mt-4">
<div class="font-weight-bold"><u>HANEDEKİ KİŞİ SAYISI</u></div>
<hr>
<div class="row">
<?php unset($v); foreach($datam["hanedeki_kisi_sayisi"] as $v ): ?>
<div class="form-check col-md-6 py-1">
<input class="row form-check-input" type="radio" id="radio<?=$v->Id ?>" name="hanedeki_kisi_sayisi" value="<?=$v->Id ?>" required>
<label class="form-check-label text-nowrap" for="radio<?=$v->Id ?>"> <?=$v->aciklama ?></label>
</div>
<?php endforeach; ?>
</div>
</div>
<!-- End section -->
<!-- section MESKEN ÖDEMESİ ---- ÖZÜR ve HANEDEKİ KİŞİ SAYISI-->
<div class="col-md-6 mt-4">
<div class="font-weight-bold "><u>2022'den SAĞLANAN GELİR</u></div>
<hr>
<div class="row">
<?php unset($v); foreach($datam["2022_saglanan_gelir"] as $v ): ?>
<div class="form-check col-md-6 py-1">
<input class="row form-check-input" type="radio" id="radio<?=$v->Id ?>" name="2022_saglanan_gelir" value="<?=$v->Id ?>" required>
<label class="form-check-label text-nowrap" for="radio<?=$v->Id ?>"> <?=$v->aciklama ?></label>
</div>
<?php endforeach; ?>
</div>
</div>
<!-- End section yine yanlıs oldu bi dk-->
<!-- section HANE GENEL DURUMU ---- MEDENİ DURUMU-->
<div class="col-md-6 mt-4">
<div class="font-weight-bold "><u>HANE GENEL DURUMU</u></div>
<hr>
<div class="row">
<?php unset($v); foreach($datam["hane_genel_durumu"] as $v ): ?>
<div class="form-check col-md-6 py-1">
<input class="row form-check-input" type="radio" id="radio<?=$v->Id ?>" name="hane_genel_durumu" value="<?=$v->Id ?>" required>
<label class="form-check-label text-nowrap" for="radio<?=$v->Id ?>"> <?=$v->aciklama ?></label>
</div>
<?php endforeach; ?>
</div>
</div>
<div class="col-md-6 mt-4">
<div class="font-weight-bold"><u>MEDENİ DURUMU</u></div>
<hr>
<div class="row">
<?php unset($v); foreach($datam["medeni_durumu"] as $v ): ?>
<div class="form-check col-md-6 py-1">
<input class="row form-check-input" type="radio" id="radio<?=$v->Id ?>" name="medeni_durumu" value="<?=$v->Id ?>" required>
<label class="form-check-label text-nowrap" for="radio<?=$v->Id ?>"> <?=$v->aciklama ?></label>
</div>
<?php endforeach; ?>
</div>
</div>
<!-- End section -->
<!-- section ÇOCUKLARIN YÜKSEK ÖĞRENİM DURUMU ---- MEDENİ DURUMU-->
<div class="col-md-6 mt-4">
<div class="font-weight-bold "><u>ÇOCUKLARIN YÜKSEK ÖĞRENİM DURUMU</u></div>
<hr>
<div class="row">
<?php unset($v); foreach($datam["cocuklarin_yuksek_ogrenim_durumu"] as $v ): ?>
<div class="form-check col-md-6 py-1">
<input class="row form-check-input" type="radio" id="radio<?=$v->Id ?>" name="cocuklarin_yuksek_ogrenim_durumu" value="<?=$v->Id ?>" required>
<label class="form-check-label text-nowrap" for="radio<?=$v->Id ?>"> <?=$v->aciklama ?></label>
</div>
<?php endforeach; ?>
</div>
</div>
<div class="col-md-6 mt-4">
<div class="font-weight-bold"><u>İŞ DURUMU</u></div>
<hr>
<div class="row">
<?php unset($v); foreach($datam["is_durumu"] as $v ): ?>
<div class="form-check col-md-6 py-1">
<input class="row form-check-input" type="radio" id="radio<?=$v->Id ?>" name="is_durumu" value="<?=$v->Id ?>" required>
<label class="form-check-label text-nowrap" for="radio<?=$v->Id ?>"> <?=$v->aciklama ?></label>
</div>
<?php endforeach; ?>
</div>
</div>
<!-- End section -->
<!-- section EK GELİR DURUMU ---- MESKEN ODA SAYISI-->
<div class="col-md-6 mt-4">
<div class="font-weight-bold "><u>EK GELİR DURUMU</u></div>
<hr>
<div class="row">
<?php unset($v); foreach($datam["calisabilirlik_durumu"] as $v ): ?>
<div class="form-check col-md-6 py-1">
<input class="row form-check-input" type="radio" id="radio<?=$v->Id ?>" name="calisabilirlik_durumu" value="<?=$v->Id ?>" required>
<label class="form-check-label text-nowrap" for="radio<?=$v->Id ?>"> <?=$v->aciklama ?></label>
</div>
<?php endforeach; ?>
</div>
</div>
<div class="col-md-6 mt-4">
<div class="font-weight-bold"><u>MESKEN ODA SAYISI</u></div>
<hr>
<div class="row">
<?php unset($v); foreach($datam["mesken_oda_sayisi"] as $v ): ?>
<div class="form-check col-md-6 py-1">
<input class="row form-check-input" type="radio" id="radio<?=$v->Id ?>" name="mesken_oda_sayisi" value="<?=$v->Id ?>" required>
<label class="form-check-label text-nowrap" for="radio<?=$v->Id ?>"> <?=$v->aciklama ?></label>
</div>
<?php endforeach; ?>
</div>
</div>
<!-- End section -->
<!-- section YARDIM ALDIĞI KURUM ---- HANE HALKINA AİT HAYVAN BİLGİSİ -->
<div class="col-md-6 mt-4">
<div class="font-weight-bold "><u>YARDIM ALDIĞI KURUM</u></div>
<hr>
<div class="row">
<?php unset($v); foreach($datam["hane_halki_hayvan_bilgisi"] as $v ): ?>
<div class="form-check col-md-6 py-1">
<input class="row form-check-input" type="radio" id="radio<?=$v->Id ?>" name="hane_halki_hayvan_bilgisi" value="<?=$v->Id ?>" required>
<label class="form-check-label text-nowrap" for="radio<?=$v->Id ?>"> <?=$v->aciklama ?></label>
</div>
<?php endforeach; ?>
</div>
</div>
<div class="col-md-6 mt-4">
<div class="font-weight-bold"><u>HANE HALKINA AİT HAYVAN BİLGİSİ</u></div>
<hr>
<div class="row">
<?php unset($v); foreach($datam["yardim_aldigi_kurum"] as $v ): ?>
<div class="form-check col-md-6 py-1">
<input class="row form-check-input" type="radio" id="radio<?=$v->Id ?>" name="yardim_aldigi_kurum" value="<?=$v->Id ?>" required>
<label class="form-check-label text-nowrap" for="radio<?=$v->Id ?>"> <?=$v->aciklama ?></label>
</div>
<?php endforeach; ?>
</div>
</div>
<!-- End section -->
<!-- section GAYRİMENKUL DURUMU ---- ÇOCUKLARIN EĞİTİM DURUMU -->
<div class="col-md-6 mt-4">
<div class="font-weight-bold "><u>GAYRİMENKUL DURUMU</u></div>
<hr>
<div class="row">
<?php unset($v); foreach($datam["gayrimenkul_durumu"] as $v ): ?>
<div class="form-check col-md-6 py-1">
<input class="row form-check-input" type="radio" id="radio<?=$v->Id ?>" name="gayrimenkul_durumu" value="<?=$v->Id ?>" required>
<label class="form-check-label text-nowrap" for="radio<?=$v->Id ?>"> <?=$v->aciklama ?></label>
</div>
<?php endforeach; ?>
</div>
</div>
<div class="col-md-6 mt-4">
<div class="font-weight-bold"><u>ÇOCUKLARIN EĞİTİM DURUMU</u></div>
<hr>
<div class="row">
<?php unset($v); foreach($datam["cocuklarin_egitim_durumu"] as $v ): ?>
<div class="form-check col-md-6 py-1">
<input class="row form-check-input" type="radio" id="radio<?=$v->Id ?>" name="cocuklarin_egitim_durumu" value="<?=$v->Id ?>" required>
<label class="form-check-label text-nowrap" for="radio<?=$v->Id ?>"> <?=$v->aciklama ?></label>
</div>
<?php endforeach; ?>
</div>
</div>
<!-- End section -->
<!-- section KİŞİ BAŞI GELİR ---- ÇOCUKLARIN EĞİTİM DURUMU -->
<div class="col-md-6 mt-4">
<div class="font-weight-bold "><u>KİŞİ BAŞI GELİR</u></div>
<hr>
<div class="row">
<?php unset($v); foreach($datam["kisi_basi_gelir"] as $v ): ?>
<div class="form-check col-md-6 py-1">
<input class="row form-check-input" type="radio" id="radio<?=$v->Id ?>" name="kisi_basi_gelir" value="<?=$v->Id ?>" required>
<label class="form-check-label text-nowrap" for="radio<?=$v->Id ?>"> <?=$v->aciklama ?></label>
</div>
<?php endforeach; ?>
</div>
</div>
<!-- End section -->
</div>
<tr>
<td colspan="4" scope="col">
<label class="col-form-label label-align text-nowrap" for="first-name" required>
<b> Adres: </b>
</label>
<input class="form-control" type="text" name="adres" >
</td>
</tr>
<tr>
<td colspan="2" >
<label class="col-sm-6 col-form-label label-align text-nowrap" for="first-name" required>
<b> T.C. Kilmlik Numarası: </b>
</label>
<input class="form-control" type="number" name="tckimlikno">
</td>
<td colspan="2" >
<label class="col-sm-6 col-form-label label-align text-nowrap" for="first-name" required>
<b> Telefon Numarası: </b>
</label>
<input class="form-control" type="number" name="telefon">
</td>
</tr>
<tr>
<td scope="col">
<label class="col-sm-3 col-form-label label-align text-nowrap" for="first-name" required>
<b> Talep Edilen: </b>
</label>
<select class="form-control">
<option>Ayni Yardım</option>
<option>Nakdi Yardım</option>
</select>
</td>
<td scope="col">
<label class="col-sm-3 col-form-label label-align text-nowrap" for="first-name" required>
<b> Hane Kişi Sayısı: </b>
</label>
<input class="form-control" type="number" name="hanekisisayi">
</td>
<td scope="col">
<label class="col-sm-3 col-form-label label-align text-nowrap" for="first-name" required>
<b> Asgari Ücret </b>
</label>
<input class="form-control" type="number" name="kgb">
</td>
</tr>
</tbody>
</table>
<div align="right" class="col-md-6 col-sm-6 offset-md-6 mb-5">
<button class="btn btn-primary" name="ihtiyacbasvurukaydet" type="submit"> <b> Kaydet </b> </button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /page content -->
<?php include 'footer.php'; ?>
<script language="javascript">
function CallPrint(strid)
{
var prtContent = document.getElementById(strid);
var WinPrint = window.open(",",'letf=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0');
WinPrint.document.write(prtContent.innerHTML);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();
WinPrint.close();
prtContent.innerHTML = strOldOne;
}</script>
Merhaba hocam :) Öncelikle seyyar yazılımcı sistemine hoş geldin şeref verdin 😊. Kodlar haricinde formun a4 kağıdı üzerinde nasıl bir şekilde göründüğünü hızlı resim aracıyla da atma şansın var mı ? şu an tam anlayamadım olayı tam nasıl gözüküyor görme şansımız var mı 😊