Postingan lainnya
Buku Ini Koding!
Baru!
Buku ini akan jadi teman perjalanan kamu belajar sampai dapat kerjaan di dunia programming!
Menampilkan data array dalam bentuk Checkbox
Bagaimana menampilkan data array dalam bentuk checkbox ?
<table class='table table-bordered'>
<tr>
<td style="border-right-style:hidden" width="50%">
<input style="width:20px" type="checkbox" name="PA" value="1" <?php if ($row['eo_pa'] == "1") {echo "checked";} ?>> <label style="font-size:1.7em">Rajin /<i>Diligent</i></label><br>
<input style="width:20px" type="checkbox" name="PA" value="2" > <label style="font-size:1.7em">Disiplin / <i>Discipline</i></label><br>
<input style="width:20px" type="checkbox" name="PA" value="3" > <label style="font-size:1.7em">Sopan / <i>Polite</i></label><br>
<input style="width:20px" type="checkbox" name="PA" value="4" > <label style="font-size:1.7em">Rapi / <i>Neat</i></label><br>
<input style="width:20px" type="checkbox" name="PA" value="5" > <label style="font-size:1.7em">Gigih / <i>Persistent</i></label><br>
<input style="width:20px" type="checkbox" name="PA" value="6" > <label style="font-size:1.7em">Penyesuaian Diri / <i>Acclimatization</i></label><br>
<input style="width:20px" type="checkbox" name="PA" value="7" > <label style="font-size:1.7em">Kooperatif / <i>Cooperative</i></label><br>
<input style="width:20px" type="checkbox" name="PA" value="8" > <label style="font-size:1.7em">Fleksible / <i>Flexibility</i></label><br>
<input style="width:20px" type="checkbox" name="PA" value="9" > <label style="font-size:1.7em">Antusias / <i>Enthusiastic</i></label><br>
<input style="width:20px" type="checkbox" name="PA" value="10" > <label style="font-size:1.7em">Mandiri / <i>Independent</i></label><br>
<input style="width:20px" type="checkbox" name="PA" value="11" > <label style="font-size:1.7em">Tegas / <i>Firmly</i></label><br>
<input style="width:20px" type="checkbox" name="PA" value="12" > <label style="font-size:1.7em">Cekatan / <i>Workmanlike</i></label><br>
</td>
<td><input style="width:20px" type="checkbox" name="PA" value="13" > <label style="font-size:1.7em">Mudah Terpengaruh / <i>Impressionable</i></label><br>
<input style="width:20px" type="checkbox" name="PA" value="14" > <label style="font-size:1.7em">Proaktif / <i>Proactive</i></label><br>
<input style="width:20px" type="checkbox" name="PA" value="15" > <label style="font-size:1.7em">Sombong / <i>Snobbish</i></label><br>
<input style="width:20px" type="checkbox" name="PA" value="16" > <label style="font-size:1.7em">Berpandangan Negatif / <i>Negative Concern</i></label><br>
<input style="width:20px" type="checkbox" name="PA" value="17" > <label style="font-size:1.7em">Lamban / <i>Sluggish</i></label><br>
<input style="width:20px" type="checkbox" name="PA" value="18" > <label style="font-size:1.7em">Banyak Cakap / <i>Many Say</i></label><br>
<input style="width:20px" type="checkbox" name="PA" value="19" > <label style="font-size:1.7em">Sok Akrab / <i>Repretentious Familiar</i></label><br>
<input style="width:20px" type="checkbox" name="PA" value="20" > <label style="font-size:1.7em">Sok Tahu / <i>Smartass</i></label><br>
<input style="width:20px" type="checkbox" name="PA" value="21" > <label style="font-size:1.7em">Keras Kepala / <i>Stubborn</i></label><br>
<input style="width:20px" type="checkbox" name="PA" value="22" > <label style="font-size:1.7em">Agresif / <i>Aggresive</i></label><br>
<input style="width:20px" type="checkbox" name="PA" value="23" > <label style="font-size:1.7em">Ragu-ragu / <i>Doubtfull</i></label><br>
<input style="width:20px" type="checkbox" name="PA" value="24" > <label style="font-size:1.7em">Reaktif / <i>Reactive</i></label><br>
</td>
</tr>
</table>
0
Belum ada Jawaban. Jadi yang pertama Jawaban
Login untuk ikut Jawaban