2912909021
This commit is contained in:
parent
8f1d678d64
commit
d05f2381f7
@ -29,7 +29,7 @@ $total_records = $total_stmt->fetchColumn();
|
|||||||
$total_pages = ceil($total_records / $records_per_page);
|
$total_pages = ceil($total_records / $records_per_page);
|
||||||
|
|
||||||
// Get records for the current page
|
// Get records for the current page
|
||||||
$stmt = $pdo->prepare("SELECT id, first_name, last_name, email, company, utm_source, created_at FROM attendees ORDER BY first_name ASC, last_name ASC LIMIT :limit OFFSET :offset");
|
$stmt = $pdo->prepare("SELECT id, first_name, last_name, email, created_at FROM attendees ORDER BY first_name ASC, last_name ASC LIMIT :limit OFFSET :offset");
|
||||||
$stmt->bindValue(':limit', $records_per_page, PDO::PARAM_INT);
|
$stmt->bindValue(':limit', $records_per_page, PDO::PARAM_INT);
|
||||||
$stmt->bindValue(':offset', $offset, PDO::PARAM_INT);
|
$stmt->bindValue(':offset', $offset, PDO::PARAM_INT);
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
@ -67,8 +67,6 @@ $attendees = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
|||||||
<th>First Name</th>
|
<th>First Name</th>
|
||||||
<th>Last Name</th>
|
<th>Last Name</th>
|
||||||
<th>Email</th>
|
<th>Email</th>
|
||||||
<th>Company</th>
|
|
||||||
<th>UTM Source</th>
|
|
||||||
<th>Registered At</th>
|
<th>Registered At</th>
|
||||||
<th>Actions</th>
|
<th>Actions</th>
|
||||||
</tr>
|
</tr>
|
||||||
@ -76,7 +74,7 @@ $attendees = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
|||||||
<tbody>
|
<tbody>
|
||||||
<?php if (empty($attendees)): ?>
|
<?php if (empty($attendees)): ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="8" class="text-center">No attendees found.</td>
|
<td colspan="6" class="text-center">No attendees found.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?php foreach ($attendees as $attendee): ?>
|
<?php foreach ($attendees as $attendee): ?>
|
||||||
@ -85,8 +83,6 @@ $attendees = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
|||||||
<td><?php echo htmlspecialchars($attendee['first_name']); ?></td>
|
<td><?php echo htmlspecialchars($attendee['first_name']); ?></td>
|
||||||
<td><?php echo htmlspecialchars($attendee['last_name']); ?></td>
|
<td><?php echo htmlspecialchars($attendee['last_name']); ?></td>
|
||||||
<td><?php echo htmlspecialchars($attendee['email']); ?></td>
|
<td><?php echo htmlspecialchars($attendee['email']); ?></td>
|
||||||
<td><?php echo htmlspecialchars($attendee['company']); ?></td>
|
|
||||||
<td><?php echo htmlspecialchars($attendee['utm_source']); ?></td>
|
|
||||||
<td><?php echo htmlspecialchars($attendee['created_at']); ?></td>
|
<td><?php echo htmlspecialchars($attendee['created_at']); ?></td>
|
||||||
<td>
|
<td>
|
||||||
<a href="edit_attendee.php?id=<?php echo $attendee['id']; ?>" class="btn btn-sm btn-primary">Edit</a>
|
<a href="edit_attendee.php?id=<?php echo $attendee['id']; ?>" class="btn btn-sm btn-primary">Edit</a>
|
||||||
|
|||||||
BIN
assets/pasted-20251025-191303-2c7c1987.png
Normal file
BIN
assets/pasted-20251025-191303-2c7c1987.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
@ -65,13 +65,13 @@ try {
|
|||||||
$stmt->execute([$webinar_id, $first_name, $last_name, $email, $company, $how_did_you_hear, $password_hash, $timezone]);
|
$stmt->execute([$webinar_id, $first_name, $last_name, $email, $company, $how_did_you_hear, $password_hash, $timezone]);
|
||||||
|
|
||||||
// --- SEND CONFIRMATION EMAIL ---
|
// --- SEND CONFIRMATION EMAIL ---
|
||||||
$webinar_date_obj = new DateTime('2025-12-29 13:00:00', new DateTimeZone('America/New_York'));
|
$webinar_date_obj = new DateTime('2025-11-19 13:00:00', new DateTimeZone('America/New_York'));
|
||||||
$subject = "Confirmation: You're Registered for Professional Vibe-Coding Webinar by Flatlogic";
|
$subject = "Confirmation: You're Registered for Professional Vibe-Coding Webinar by Flatlogic";
|
||||||
$body_html = "<h1>You're in!</h1><p>Thanks for registering for our webinar: <strong>Professional Vibe-Coding Webinar by Flatlogic</strong>.</p><p>It will take place on <strong>" . $webinar_date_obj->format('l, F j, Y \a\t g:i A T') . "</strong>.</p><p>You can now log in to your dashboard to see the details.</p>";
|
$body_html = "<h1>You're in!</h1><p>Thanks for registering for our webinar: <strong>Professional Vibe-Coding Webinar by Flatlogic</strong>.</p><p>It will take place on <strong>" . $webinar_date_obj->format('l, F j, Y \a\t g:i A T') . "</strong>.</p><p>You can now log in to your dashboard to see the details.</p>";
|
||||||
MailService::sendMail($email, $subject, $body_html);
|
MailService::sendMail($email, $subject, $body_html);
|
||||||
|
|
||||||
// --- PREPARE SUCCESS RESPONSE ---
|
// --- PREPARE SUCCESS RESPONSE ---
|
||||||
$webinar_date = new DateTime('2025-12-29 13:00:00', new DateTimeZone('America/New_York'));
|
$webinar_date = new DateTime('2025-11-19 13:00:00', new DateTimeZone('America/New_York'));
|
||||||
$webinar_date->setTimezone(new DateTimeZone('UTC'));
|
$webinar_date->setTimezone(new DateTimeZone('UTC'));
|
||||||
$start_time_utc = $webinar_date->format('Ymd\THis\Z');
|
$start_time_utc = $webinar_date->format('Ymd\THis\Z');
|
||||||
$webinar_date->add(new DateInterval('PT1H')); // Assume 1 hour duration
|
$webinar_date->add(new DateInterval('PT1H')); // Assume 1 hour duration
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user