New Occupant

Register new users for available rooms, Registering a new occupant!

Data Occupant

query("SELECT * FROM occupant WHERE status = 'rejected' ORDER BY id_occupant ASC"); $occupants = $stmt->fetchAll(); ?> '; $fotoSrc = (!empty($row['foto']) && file_exists($row['foto'])) ? $row['foto'] : 'images/faces/user.jpg'; $hasFoto = (!empty($row['foto']) && file_exists($row['foto'])) ? '1' : '0'; $codeRaw = $row['code_register']; $codeDisplay = htmlspecialchars($codeRaw); if ($row['progress'] === 'used' && strlen($codeRaw) > 10) $codeDisplay = htmlspecialchars(substr($codeRaw, 0, 24)) . '...'; $fingerId = !empty($row['finger_id']) ? htmlspecialchars($row['finger_id']) : ''; $fingerOk = !empty($row['finger_id']); $sc = ($no % 2 == 1) ? 'row-odd' : 'row-even'; ?>
No Name Phone No. Code Reg Status Action