Пример #1
0
<div id="formEdit">
    <h1>Ubah Data Siswa</h1>
     <form id="formEditX">
         
     <input type="hidden" id="nomorSiswa"/>
     
     <label>Nama :</label> </br>
     <label id="labelNama" for="nama" class="error" />
     <input type="text" name="nama" id="nama" />
     
     <label>Kelas :</label>
     <?php 
include_once '../service/KelasServiceImpl.php';
$kelasService = new KelasServiceImpl();
$kelases = $kelasService->ambilSemuaKelas();
?>
     <select id="kelas" name="kelas">
         <?php 
foreach ($kelases as $kelas) {
    ?>
         <option value="<?php 
    echo $kelas->getIdKelas();
    ?>
"><?php 
    echo $kelas->getNama();
    ?>
</option>
         <?php 
}
?>