mirror of https://github.com/itsmrval/subway
30 lines
1.5 KiB
PHP
30 lines
1.5 KiB
PHP
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">#</th>
|
|
<th scope="col">Email</th>
|
|
<th scope="col">First Name</th>
|
|
<th scope="col">Last Name</th>
|
|
<th scope="col"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($users as $user): ?>
|
|
<tr>
|
|
<th scope="row"><?php echo htmlspecialchars($user['id']); ?></th>
|
|
<td><?php echo htmlspecialchars($user['email']); ?></td>
|
|
<td><?php echo htmlspecialchars($user['firstName']); ?></td>
|
|
<td><?php echo htmlspecialchars($user['lastName']); ?></td>
|
|
<td>
|
|
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#editUserModal"
|
|
data-id="<?php echo htmlspecialchars($user['id']); ?>"
|
|
data-email="<?php echo htmlspecialchars($user['email']); ?>"
|
|
data-firstname="<?php echo htmlspecialchars($user['firstName']); ?>"
|
|
data-lastname="<?php echo htmlspecialchars($user['lastName']); ?>">
|
|
Edit
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|