2912909021

This commit is contained in:
Flatlogic Bot 2025-10-25 19:15:23 +00:00
parent 8f1d678d64
commit d05f2381f7
3 changed files with 4 additions and 8 deletions

View File

@ -29,7 +29,7 @@ $total_records = $total_stmt->fetchColumn();
$total_pages = ceil($total_records / $records_per_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(':offset', $offset, PDO::PARAM_INT);
$stmt->execute();
@ -67,8 +67,6 @@ $attendees = $stmt->fetchAll(PDO::FETCH_ASSOC);
<th>First Name</th>
<th>Last Name</th>
<th>Email</th>
<th>Company</th>
<th>UTM Source</th>
<th>Registered At</th>
<th>Actions</th>
</tr>
@ -76,7 +74,7 @@ $attendees = $stmt->fetchAll(PDO::FETCH_ASSOC);
<tbody>
<?php if (empty($attendees)): ?>
<tr>
<td colspan="8" class="text-center">No attendees found.</td>
<td colspan="6" class="text-center">No attendees found.</td>
</tr>
<?php else: ?>
<?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['last_name']); ?></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>
<a href="edit_attendee.php?id=<?php echo $attendee['id']; ?>" class="btn btn-sm btn-primary">Edit</a>

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -65,13 +65,13 @@ try {
$stmt->execute([$webinar_id, $first_name, $last_name, $email, $company, $how_did_you_hear, $password_hash, $timezone]);
// --- 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";
$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);
// --- 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'));
$start_time_utc = $webinar_date->format('Ymd\THis\Z');
$webinar_date->add(new DateInterval('PT1H')); // Assume 1 hour duration