<?php

/*---------------------------------------------
  MAIAN EVENTS v2.0
  Written by David Ian Bennett
  E-Mail: support@maianscriptworld.co.uk
  Website: www.maianscriptworld.co.uk
  This File: Admin - Add New Event
----------------------------------------------*/

if(!defined('INCLUDE_FILES')) {
	include('index.html');
	exit;
}

?>
<tr>
    <td>
    <table border="0" cellpadding="0" cellspacing="0" width="100%" class="tableBorder">
    <tr>
        <td class="displayTable">&raquo; <b><?php echo strtoupper($add); ?></b><br /><br /><?php echo $add2; ?></td>
    </tr>
    </table>
    <form method="post" action="index.php?cmd=add">
    <p><input type="hidden" name="process" value="1" /></p>
    <table cellpadding="0" cellspacing="1" width="100%" class="tableBorderHeader">
    <tr>
        <td class="menutable">&raquo; <b><?php echo $add3; ?></b></td>
    </tr>
    </table>
    <?php
    if (isset($OK)) {
    echo ok($add18);
    }
    if ($count>0) {
    echo error($add19);
    }
    ?>
    <table cellpadding="0" cellspacing="0" width="100%" class="tableBorder">
    <tr>
        <td class="displayTable">
        <table cellpadding="0" cellspacing="1" width="100%">
        <tr>
           <td style="width:30%"><b><?php echo $add5; ?></b>:</td>
           <td style="width:70%"><input class="formbox" type="text" name="title" size="30" value="<?php echo (isset($_POST['title']) ? cleanData($_POST['title']) : ''); ?>" /></td>
        </tr>
        <tr>
           <td><b><?php echo $add6; ?></b>:</td>
           <td><input class="formbox" type="text" name="fromDate" size="30" value="<?php echo (isset($_POST['fromDate']) ? cleanData($_POST['fromDate']) : ''); ?>" style="width:20%" /> <img onclick="displayDatePicker('fromDate');" src="img/calendar.gif" style="vertical-align:middle" alt="<?php echo $add15; ?>" title="<?php echo $add15; ?>" /> <input class="formbox" type="text" name="toDate" size="30" value="<?php echo (isset($_POST['toDate']) ? cleanData($_POST['toDate']) : ''); ?>" style="width:20%" /> <img style="vertical-align:middle" onclick="displayDatePicker('toDate');" src="img/calendar.gif" alt="<?php echo $add15; ?>" title="<?php echo $add15; ?>" /> <?php echo toolTip($msg_javascript2,$msg_javascript14); ?></td>
        </tr>
        <tr>
           <td><b><?php echo $add7; ?></b>:</td>
           <td><input class="formbox" type="text" name="keywords" size="30" maxlength="250" value="<?php echo (isset($_POST['keywords']) ? cleanData($_POST['keywords']) : ''); ?>" /> (<?php echo $script11; ?>) <?php echo toolTip($msg_javascript2,$msg_javascript9,'LEFT'); ?></td>
        </tr>
        <tr>
           <td><b><?php echo $add8; ?></b>:</td>
           <td><input class="formbox" type="text" name="description" size="30" maxlength="250" value="<?php echo (isset($_POST['description']) ? cleanData($_POST['description']) : ''); ?>" /> (<?php echo $script11; ?>) <?php echo toolTip($msg_javascript2,$msg_javascript10,'LEFT'); ?></td>
        </tr>
        <tr>
           <td><b><?php echo $add16; ?></b>:</td>
           <td><input type="checkbox" name="contact" value="1"<?php echo (isset($_POST['contact']) ? ' checked="checked"' : ''); ?> /> <?php echo toolTip($msg_javascript2,$msg_javascript15); ?></td>
        </tr>
        <tr>
           <td><b><?php echo $add9; ?></b>:</td>
           <td><input class="formbox" type="text" name="email" size="30" maxlength="250" value="<?php echo (isset($_POST['email']) ? cleanData($_POST['email']) : ''); ?>" /> (<?php echo $script11; ?>) <?php echo toolTip($msg_javascript2,$msg_javascript11,'LEFT'); ?></td>
        </tr>
        <tr>
           <td><b><?php echo $add10; ?></b>:</td>
           <td><input type="checkbox" name="en_comments" value="1"<?php echo (isset($_POST['en_comments']) ? ' checked="checked"' : ''); ?> /> <?php echo toolTip($msg_javascript2,$msg_javascript12); ?></td>
        </tr>
        <tr>
           <td><b><?php echo $add11; ?></b>:</td>
           <td><input type="radio" name="finish" value="1"<?php echo (isset($_POST['finish']) && $_POST['finish']=='1' ? ' checked="checked"' : ''); ?> /> <?php echo $add12; ?>
           <input type="radio" name="finish" value="2"<?php echo (isset($_POST['finish']) && $_POST['finish']=='2' ? ' checked="checked"' : ''); ?> /> <?php echo $add13; ?>
           <input type="radio" name="finish" value="3"<?php echo (isset($_POST['finish']) && $_POST['finish']=='3' ? ' checked="checked"' : (!isset($_POST['finish']) ? ' checked="checked"' : '')); ?> /> <?php echo $add14; ?> <?php echo toolTip($msg_javascript2,$msg_javascript13,'LEFT'); ?></td>
        </tr>
        </table>
        </td>
    </tr>
    </table>  
    <table cellpadding="0" cellspacing="1" width="100%" class="tableBorderHeader">
    <tr>
        <td class="menutable">&raquo; <b><?php echo $add20; ?></b> <?php echo toolTip($msg_javascript2,$msg_javascript19,'RIGHT'); ?></td>
    </tr>
    </table>  
    <table cellpadding="0" cellspacing="0" width="100%" class="tableBorder">
    <tr>
        <td class="displayTable">
        <table cellpadding="0" cellspacing="1" width="100%">
        <tr>
           <td style="width:10%"><b><?php echo $add21; ?></b>:</td>
           <td style="width:23%"><input class="formbox" type="text" name="name_1" size="30" maxlength="200" value="<?php echo (isset($_POST['name_1']) ? cleanData($_POST['name_1']) : ''); ?>" style="width:90%" /></td>
           <td style="width:10%"><b><?php echo $add22; ?></b>:</td>
           <td style="width:23%"><input class="formbox" type="text" name="thumb_1" size="30" value="<?php echo (isset($_POST['thumb_1']) ? cleanData($_POST['thumb_1']) : ''); ?>" style="width:90%" /></td>
           <td style="width:10%"><b><?php echo $add23; ?></b>:</td>
           <td style="width:24%"><input class="formbox" type="text" name="image_1" size="30" value="<?php echo (isset($_POST['image_1']) ? cleanData($_POST['image_1']) : ''); ?>" style="width:90%" /></td>
        </tr>
        </table>
        </td>
    </tr>
    <tr>
        <td class="displayTable">
        <table cellpadding="0" cellspacing="1" width="100%">
        <tr>
           <td style="width:10%"><b><?php echo $add21; ?></b>:</td>
           <td style="width:23%"><input class="formbox" type="text" name="name_2" size="30" maxlength="200" value="<?php echo (isset($_POST['name_2']) ? cleanData($_POST['name_2']) : ''); ?>" style="width:90%" /></td>
           <td style="width:10%"><b><?php echo $add22; ?></b>:</td>
           <td style="width:23%"><input class="formbox" type="text" name="thumb_2" size="30" value="<?php echo (isset($_POST['thumb_2']) ? cleanData($_POST['thumb_2']) : ''); ?>" style="width:90%" /></td>
           <td style="width:10%"><b><?php echo $add23; ?></b>:</td>
           <td style="width:24%"><input class="formbox" type="text" name="image_2" size="30" value="<?php echo (isset($_POST['image_2']) ? cleanData($_POST['image_2']) : ''); ?>" style="width:90%" /></td>
        </tr>
        </table>
        </td>
    </tr>
    <tr>
        <td class="displayTable">
        <table cellpadding="0" cellspacing="1" width="100%">
        <tr>
           <td style="width:10%"><b><?php echo $add21; ?></b>:</td>
           <td style="width:23%"><input class="formbox" type="text" name="name_3" size="30" maxlength="200" value="<?php echo (isset($_POST['name_3']) ? cleanData($_POST['name_3']) : ''); ?>" style="width:90%" /></td>
           <td style="width:10%"><b><?php echo $add22; ?></b>:</td>
           <td style="width:23%"><input class="formbox" type="text" name="thumb_3" size="30" value="<?php echo (isset($_POST['thumb_3']) ? cleanData($_POST['thumb_3']) : ''); ?>" style="width:90%" /></td>
           <td style="width:10%"><b><?php echo $add23; ?></b>:</td>
           <td style="width:24%"><input class="formbox" type="text" name="image_3" size="30" value="<?php echo (isset($_POST['image_3']) ? cleanData($_POST['image_3']) : ''); ?>" style="width:90%" /></td>
        </tr>
        </table>
        </td>
    </tr>
    <tr>
        <td class="displayTable">
        <table cellpadding="0" cellspacing="1" width="100%">
        <tr>
           <td style="width:10%"><b><?php echo $add21; ?></b>:</td>
           <td style="width:23%"><input class="formbox" type="text" name="name_4" size="30" maxlength="200" value="<?php echo (isset($_POST['name_4']) ? cleanData($_POST['name_4']) : ''); ?>" style="width:90%" /></td>
           <td style="width:10%"><b><?php echo $add22; ?></b>:</td>
           <td style="width:23%"><input class="formbox" type="text" name="thumb_4" size="30" value="<?php echo (isset($_POST['thumb_4']) ? cleanData($_POST['thumb_4']) : ''); ?>" style="width:90%" /></td>
           <td style="width:10%"><b><?php echo $add23; ?></b>:</td>
           <td style="width:24%"><input class="formbox" type="text" name="image_4" size="30" value="<?php echo (isset($_POST['image_4']) ? cleanData($_POST['image_4']) : ''); ?>" style="width:90%" /></td>
        </tr>
        </table>
        </td>
    </tr>
    </table>    
    <table cellpadding="0" cellspacing="1" width="100%" class="tableBorderHeader">
    <tr>
        <td class="menutable">&raquo; <b><?php echo $add4; ?></b></td>
    </tr>
    </table>
    <table cellpadding="0" cellspacing="0" width="100%" class="tableBorder">
    <tr>
        <td class="displayTable">
        <table cellpadding="0" cellspacing="1" width="100%">
        <tr>
           <td><textarea name="comments" rows="8" cols="40" style="width:99%"><?php echo (isset($_POST['comments']) ? cleanData($_POST['comments']) : ''); ?></textarea>
           <span style="display:block;margin-top:3px;font-size:11px"><?php echo $add17; ?></span></td>
        </tr>
        <tr>
           <td style="text-align:center"><br /><input class="formbutton" type="submit" value="<?php echo $add; ?>" title="<?php echo $add; ?>" /></td>
        </tr>
        </table>
        </td>
    </tr>
    </table>
    </form>
    </td>
</tr>

