Edit Issue #14
Back
Title
Language
PHP
Python
Java
JavaScript
C++
Go
Category
Bug
Error
Status
Open
Resolved
Closed
Level / Priority
Beginner
Intermediate
Advanced
Description
Belajar memahami logika tabel supaya ukuran seimbang
Code Snippet
\\ Pastikan penamaan label "$" di taruh paling atas <div class="row mt-4 g-4"> <div class="col-12"> <div class="card card-custom shadow-sm p-4 bg-white border-start border-warning border-5"> <h5 class="fw-bold mb-4"> <i class="bi bi-envelope-check-fill me-2 text-warning"></i> Daftar Pengajuan Izin / Cuti (Hari Ini) </h5> <div class="table-responsive"> <table class="table table-hover align-middle"> <thead class="table-light small"> <tr> <th></th> <th class="text-center">TIPE</th> <th>KETERANGAN / ALASAN</th> <th class="text-center">WAKTU INPUT</th> </tr> </thead> <tbody> <?php // Reset pointer result izin jika diperlukan atau gunakan variabel baru mysqli_data_seek($result_izin, 0); if(mysqli_num_rows($result_izin) > 0): while($rowi = mysqli_fetch_assoc($result_izin)): ?> <tr> <td class="fw-bold"><?php echo htmlspecialchars($rowi['nama_karyawan']); ?></td> <td class="text-center"> <?php $badge_color = 'bg-secondary'; if($rowi['tipe_absen'] == 'sakit') $badge_color = 'bg-danger'; if($rowi['tipe_absen'] == 'izin') $badge_color = 'bg-info text-dark'; if($rowi['tipe_absen'] == 'cuti') $badge_color = 'bg-warning text-dark'; ?> <span class="badge rounded-pill <?php echo $badge_color; ?> text-uppercase"> <?php echo $rowi['']; ?> </span> </td> <td class="small text-muted italic-text"> "<?php echo htmlspecialchars($rowi['']); ?>" </td> <td class="text-center small"> <?php echo date('H:i', strtotime($rowi[''])); ?> WIB </td> </tr> <?php endwhile; else: ?> <tr> <td colspan="" class="text-center py-3 text-muted small"> Tidak ada pengajuan izin atau cuti hari ini. </td> </tr> <?php endif; ?> </tbody> </table> </div> </div> </div>
Update Issue