Files
wp-go-form/go-form-plugin/templates/table.php

43 lines
1.0 KiB
PHP

<table class="wp-list-table widefat striped">
<thead>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Country</th>
<th>Club</th>
<th>Rank</th>
<th>EGD Number</th>
<th>Date Added</th>
<?php if ($show_admin): ?>
<th>Rating</th>
<th>Action</th>
<?php endif; ?>
</tr>
</thead>
<tbody>
<?php foreach ($entries as $e): ?>
<tr>
<td> <?= esc_html($e->first_name) ?> </td>
<td> <?= esc_html($e->last_name) ?> </td>
<td> <?= esc_html($e->country) ?> </td>
<td> <?= esc_html($e->club) ?> </td>
<td> <?= esc_html($ranks[$e->rank]) ?> </td>
<td> <?= esc_html($e->egd_number) ?> </td>
<td> <?= esc_html($e->created_at) ?> </td>
<?php if ($show_admin): ?>
<td> <?= esc_html($e->rating) ?> </td>
<td>
<?php action_button('go_form_delete_entry', 'Delete', 'Delete this entry?', $e->id); ?>
</td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>