<div class="form form-profile aif" style='width:auto'>
    <h2 style="margin-top:0px;">
        Reminders
    </h2>
    <table class="admintable" style="width:100%; overflow:hidden;">
            <th>Text</th>
            <th>BDay</th>
            <th>From</th>
            <th>Remind Me When?</th>
            <th>Created</th>
            <th width="100">Actions</th>
            <?php
            foreach ($reminders as $reminder) {        
                echo "<tr>
                    <td style='padding:10px;'>{$reminder['text']}</td>
                    <td style='padding:10px; text-align:center;'>{$reminder['date']}</td>
                    <td style='padding:10px; text-align:center;'>{$reminder['from_user_id']}</td>
                    <td style='padding:10px; text-align:center;'>{$reminder['remindme']}</td>
                    <td style='padding:10px; text-align:center;'>{$reminder['created']}</td>
                    <td style='padding:10px; max-width:100px'><a href='?reminder&edit={$reminder['id']}'>edit</a> | <a href='?reminder&delete={$reminder['id']}' class='confirm'>delete</a></td>
                </tr>";
            }
            ?>
    </table>
    
    <div style="margin:10px;">
        <a href='?reminder&add' class='btn btn-blue'>Add New</a>
    </div>
</div>