35 lines
1.2 KiB
PHP
35 lines
1.2 KiB
PHP
<?php
|
|
require_once('.hta_config/crm_config.php');
|
|
require_once('.htac_header.php');
|
|
require_once('.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>
|