121 lines
6.5 KiB
PHP
121 lines
6.5 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>HIMS - Hospital Information Management System</title>
|
|
<meta name="description" content="A comprehensive Hospital Information Management System built with Flatlogic Generator.">
|
|
<meta name="keywords" content="hims, hospital management, patient registration, medical records, healthcare, flatlogic">
|
|
|
|
<!-- Social Media Meta Tags -->
|
|
<meta property="og:title" content="HIMS - Hospital Information Management System">
|
|
<meta property="og:description" content="A comprehensive Hospital Information Management System built with Flatlogic Generator.">
|
|
<meta property="og:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
<meta name="twitter:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
|
|
|
|
<!-- Bootstrap CSS -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
|
|
|
<!-- Custom Fonts & CSS -->
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
|
</head>
|
|
<body>
|
|
|
|
<main class="container mt-4">
|
|
<header class="d-flex justify-content-between align-items-center mb-4">
|
|
<h1 class="header-title">Hospital Information Management System</h1>
|
|
<button class="btn btn-primary btn-lg" data-bs-toggle="modal" data-bs-target="#registerPatientModal">
|
|
<i class="bi bi-person-plus-fill me-2"></i> Register New Patient
|
|
</button>
|
|
</header>
|
|
|
|
<div class="card">
|
|
<div class="card-header bg-white">
|
|
<h5 class="card-title mb-0">Recently Registered Patients</h5>
|
|
</div>
|
|
<div class="card-body p-0">
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-hover">
|
|
<thead class="table-light">
|
|
<tr>
|
|
<th scope="col">ID</th>
|
|
<th scope="col">Name</th>
|
|
<th scope="col">Date of Birth</th>
|
|
<th scope="col">Gender</th>
|
|
<th scope="col">Contact</th>
|
|
<th scope="col">Registration Date</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="patientTableBody">
|
|
<!-- Patient rows will be injected here by JavaScript -->
|
|
<tr><td colspan="6" class="text-center p-4">Loading patient data...</td></tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<!-- Registration Modal -->
|
|
<div class="modal fade" id="registerPatientModal" tabindex="-1" aria-labelledby="registerPatientModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" id="registerPatientModalLabel">New Patient Registration</h5>
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<form id="registrationForm">
|
|
<div class="row">
|
|
<div class="col-md-6 mb-3">
|
|
<label for="firstName" class="form-label">First Name</label>
|
|
<input type="text" class="form-control" id="firstName" name="first_name" required>
|
|
</div>
|
|
<div class="col-md-6 mb-3">
|
|
<label for="lastName" class="form-label">Last Name</label>
|
|
<input type="text" class="form-control" id="lastName" name="last_name" required>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-6 mb-3">
|
|
<label for="dob" class="form-label">Date of Birth</label>
|
|
<input type="date" class="form-control" id="dob" name="date_of_birth" required>
|
|
</div>
|
|
<div class="col-md-6 mb-3">
|
|
<label for="gender" class="form-label">Gender</label>
|
|
<select class="form-select" id="gender" name="gender" required>
|
|
<option value="" disabled selected>Select gender...</option>
|
|
<option value="Male">Male</option>
|
|
<option value="Female">Female</option>
|
|
<option value="Other">Other</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="contactNumber" class="form-label">Contact Number</label>
|
|
<input type="tel" class="form-control" id="contactNumber" name="contact_number" required>
|
|
</div>
|
|
<div class="d-flex justify-content-end">
|
|
<button type="button" class="btn btn-secondary me-2" data-bs-dismiss="modal">Cancel</button>
|
|
<button type="submit" class="btn btn-primary">Register Patient</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Toast Container -->
|
|
<div class="position-fixed bottom-0 end-0 p-3" style="z-index: 11" id="toastContainer"></div>
|
|
|
|
<!-- Bootstrap JS -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
|
<!-- Custom JS -->
|
|
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
|
|
</body>
|
|
</html> |