<?php
if(isset($error))
{echo '<b><font color="#FF0000">The name field must be filled in</font></b>'; }
?>
<h4>Create New Timeline Event </h4>

        <form action="<?php echo SITE_URL; ?>/admin/index.php/Timeline" method="post" enctype="multipart/form-data">
            <table class="tablesorter">
            <tr>
                <td>Event Name</td>
                <td><input type="text" name="name" style="width: 350px;"
                           <?php
                                if(isset($event))
                                {echo 'value="'.$event['name'].'"';}
                           ?>
                           >
                </td>
            </tr>
            <tr>
                <td>Date</td>
                <td><input type="date" name="date" style="width: 350px;"
                           <?php
                                if(isset($event))
                                {echo 'value="'.$event['date'].'"';}
                           ?>
                           >
                </td>
            </tr>
            <tr>
                <td colspan="2"><input type="hidden" name="action" value="save" /><input type="submit" value="save"></td>
            </tr>
                </table>
        </form>
