35461-vm/add-medication.php
Flatlogic Bot 34c9bbd153 Medipet
2025-11-04 15:04:01 +00:00

69 lines
3.8 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Add Medication - Medipet</title>
<meta name="description" content="Add a new medication to your schedule.">
<meta property="og:title" content="Add Medication - Medipet">
<meta property="og:description" content="Add a new medication to your schedule.">
<meta property="og:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? '', ENT_QUOTES, 'UTF-8'); ?>">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? '', ENT_QUOTES, 'UTF-8'); ?>">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<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=Poppins:wght@400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-white shadow-sm">
<div class="container">
<a class="navbar-brand" href="index.php">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="#20c997" class="d-inline-block align-text-top me-2" viewBox="0 0 16 16">
<path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M2 3v1h12V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1m12 2H2v9a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1z"/>
<path d="M8 7a.5.5 0 0 1 .5.5V9H10a.5.5 0 0 1 0 1H8.5v1.5a.5.5 0 0 1-1 0V10H6a.5.5 0 0 1 0-1h1.5V7.5A.5.5 0 0 1 8 7"/>
</svg>
Medipet
</a>
</div>
</nav>
<main class="container py-5">
<div class="row justify-content-center">
<div class="col-lg-6">
<div class="card">
<div class="card-body">
<h2 class="card-title text-center mb-4">Add a New Medication</h2>
<form action="index.php" method="POST">
<div class="mb-3">
<label for="medicationName" class="form-label">Medication Name</label>
<input type="text" class="form-control" id="medicationName" name="medicationName" placeholder="e.g., Vitamin D" required>
</div>
<div class="mb-3">
<label for="dosage" class="form-label">Dosage</label>
<input type="text" class="form-control" id="dosage" name="dosage" placeholder="e.g., 1 tablet" required>
</div>
<div class="mb-3">
<label for="schedule" class="form-label">Schedule</label>
<textarea class="form-control" id="schedule" name="schedule" rows="3" placeholder="e.g., Every morning at 8:00 AM" required></textarea>
</div>
<div class="d-grid">
<button type="submit" class="btn btn-primary">Save Medication</button>
</div>
</form>
</div>
</div>
</div>
</div>
</main>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
</body>
</html>