Postingan lainnya
Membuat notifikasi approved
Selamat siang teman2, saya mau buat notifikasi approve nii, data nya tidak tampil di modal, malah tampilnya di bawah tabel, boleh saran teman2?Trmksi..
Ini Tampilannya.
Screenshot 2022-08-12 115605.png
modal
<!----modal data uraian tugas pending---->
<div class="container">
<div class="row">
<div class="col-md"></div>
<div class="col-md-2">
<button type="button" class="btn btn-warning btn-block" style="border-radius:0%;" data-toggle="modal" data-target="#addPostModal"><i class="fa fa-spinner"></i>Data Pending</a>
</div>
<div class="col-md-2">
<button type="button" class="btn btn-success btn-block" style="border-radius:0%;" data-toggle="modal" data-target="#addCateModal"><i class="fa fa-check"></i>Approved</a>
</div>
<!--Header Post-->
<div class="modal fade" id="addPostModal">
<div class="modal-dialog modal">
<div class="modal-content">
<div class="modal-header bg-warning text-white">
<div class="modal-title">
<h5>Pending</h5>
</div>
<button type="button" class="close" data-dismiss="modal"><span>×</span></button>
</div>
<div class="modal-body">
<table class="table table-bordered table-hover table-striped">
<thead>
<th>No</th>
<th>Name</th>
<th>Tanggal</th>
<th>Uraian Tugas</th>
<th>Waktu</th>
<th>Jumlah Capaian</th>
<th>Status</th>
<th>Verif</th>
</thead>
<tbody>
<?php
$sql = "SELECT * FROM tb_paru WHERE status = 0";
$que = mysqli_query($conn, $sql);
$cnt = 1;
while ($result = mysqli_fetch_assoc($que)) {
?>
<tr>
<td><?php echo $cnt;?></td>
<td><?php echo $result['nama_depan']; ?></td>
<td><?php echo $result['tanggal']; ?></td>
<td><?php echo $result['uraian_tugas']; ?></td>
<td><?php echo $result['waktu']; ?></td>
<td><?php echo $result['jumlah_capaian']; ?></td>
<td>
<?php
if ($result['status'] == 0) {
echo "Pending";
?>
</td>
<td>
<form action="acc.php?id_paru=<?php echo $result['id_paru']; ?>" method="POST">
<input type="hidden" name="appid" value="<?php echo $result['id_paru']; ?>">
<input type="submit" class="btn btn-sm btn-success" name="approve" value="Approve">
</form>
</td>
<?php
}
else{
echo "Approved";
}
$cnt++; }
?>
</tr>
0
1 Jawaban:
<div>Yang salah itu tombol mu<br><br></div><pre><button type="button" class="btn btn-warning btn-block" style="border-radius:0%;" data-toggle="modal" data-target="#addPostModal"><i class="fa fa-spinner"></i>Data Pending</a> <!-- berakhiran tag href ---></pre>
0
Tanggapan
jd bener nya gimana bg?
button type nya dhapus?
Itu kan dah nampak salahny.. penutup tag nya
dihapus tag </a> tapi ttp ga nampil bg