init
This commit is contained in:
35
.hta_slug/notifications/_home.php
Normal file
35
.hta_slug/notifications/_home.php
Normal 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>
|
||||
Reference in New Issue
Block a user