-
Notifications
You must be signed in to change notification settings - Fork 0
/
detail_indikator_delete.php
41 lines (39 loc) · 2.31 KB
/
detail_indikator_delete.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<div class="modal fade" id="deleteDetail-<?php echo $sub->id_sub_tema?>">
<div class="modal-dialog">
<div class="modal-content">
<!-- Modal Header -->
<div class="modal-header">
<h4 class="modal-title">Delete Indikator Sub tema - <?php echo $sub->nama ?></h4>
</div>
<form action="proses/indikatorDetailProses.php" method="POST">
<!-- Modal body -->
<div class="modal-body">
<p>Pilih indikator yang akan dihapus!</p>
<?php
$indikators = pg_query($konek, "SELECT * FROM indikator_detail JOIN indikator ON indikator.kode_indikator = indikator_detail.kode_indikator WHERE id_sub_tema =".$sub->id_sub_tema);
while($indikator = pg_fetch_object($indikators)){
?>
<label>
<!-- <div class="icheckbox_flat-green" style="position: relative;">-->
<input type="checkbox" name="kode_indikator[]" value=" <?php echo $indikator->kode_indikator ?>" >
<!-- <input type="hidden" name="kode_indikator" value="<?php echo $indikator->kode_indikator ?>">
<input type="hidden" name="id_sub_tema" value="<?php echo $indikator->id_sub_tema ?>"> -->
<!-- <ins class="iCheck-helper" style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"></ins></div>-->
<?php echo $indikator->nama ?>
</label>
<br>
<?php
}
?>
</div>
<!-- Modal footer -->
<div class="modal-footer">
<input hidden name="id_sub_tema" value="<?php echo $sub->id_sub_tema ?>">
<input hidden name="tema_id" value="<?php echo $sub->tema_id ?>">
<button type="button" class="btn btn-primary" data-dismiss="modal">Batal</button>
<input type="submit" class="btn btn-success" name="indikator_detail_delete" value="Delete">
</div>
</form>
</div>
</div>
</div>