This commit is contained in:
dev sp
2024-04-29 12:55:11 +00:00
commit ca6af2f5e2
67 changed files with 6792 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<?php
require_once('/var/www/html/.hta_config/crm_config.php');
require_once('/var/www/html/.htac_header.php');
require_once('/var/www/html/.htac_nav.php');
?>
<div>
<div class="flex flex-row place-content-between">
<p>Notifications</p>
<button>Mark all as read</button>
</div>
<?php
try {
$conn = new PDO("mysql:host=$mariaServer;dbname=$mariaDb", $mariaUser, $mariaPass);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stmt = $conn->prepare("SELECT * FROM appointment");
// $stmt->bindParam(':leadid', $_GET['id']);
$stmt->execute();
$appt_data = $stmt->fetchAll(PDO::FETCH_ASSOC);
foreach($appt_data as $appt){
?>
<div class="flex flex-row">
<div class="flex flex-col">
<p>Reminders for <span><?php echo $appt['name'] ?></span></p>
<p><?php echo date("Y/m/d"); ?></p>
</div>
</div>
<?php
}
} catch (PDOException $e) {
echo "<p class='text-danger'>Error: " . $e->getMessage() . "</p>";
};
?>
</div>