diff --git a/add_case_note.php b/add_case_note.php new file mode 100644 index 0000000..ecf604c --- /dev/null +++ b/add_case_note.php @@ -0,0 +1,40 @@ +prepare("INSERT INTO case_notes (resident_id, note) VALUES (?, ?)"); + $stmt->execute([$resident_id, $note]); + + // Redirect back to the resident's view page after successful insertion + header("Location: resident_view.php?id={$resident_id}&success=note_added"); + exit; +} catch (PDOException $e) { + // In a real app, log this error. + // For simplicity, redirect with a generic error. + header("Location: resident_view.php?id={$resident_id}&error=db_error"); + exit; +} diff --git a/compose_message.php b/compose_message.php new file mode 100644 index 0000000..d9ab597 --- /dev/null +++ b/compose_message.php @@ -0,0 +1,68 @@ +query("SELECT id, email FROM users WHERE role = 'staff' ORDER BY email"); +$staff_users = $stmt->fetchAll(PDO::FETCH_ASSOC); + +?> + + +
+ + +| File Name | +Description | +Uploaded On | +Action | +
|---|---|---|---|
| No documents uploaded yet. | +|||
| + | + | + | + Download + | +
| Name | -Program | -Status | -|||||
|---|---|---|---|---|---|---|---|
| No residents are currently assigned to you. | +Date | +Resident | +Referred By | +Status | +Actions | ||
|---|---|---|---|---|---|---|---|
| - | - | + | No referrals found. | ||||