<?
###################################################
#Copyright (C) 2002 Lihua Gao (hide@address.com)
#
#$Id: insert-todo.php,v 1.1 2002/12/05 10:03:33 gaolihua Exp $
#
#This file is part of myTodos.
#
#myTodos is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2 of the License, or
#(at your option) any later version.
#
#myTodos is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with myTodos; if not, write to the Free Software
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#####################################################
?>
<?
session_start();
include("constants.php");
require_once("config.php");
include("header.php");
?>
<script type="text/javascript" language="JavaScript">
function showCalendar(form,field)
{
var calenderWin=window.open("calendar.php?m=11&dj=2002&form="+form+"&field="+field, "","width=210,height=210");
calenderWin.focus();
}
</script>
<table cellspacing="0" class="table3">
<tr class="rowtitle">
<td><h5>Add new event</h5></td>
</tr>
<!-- empty line -->
<tr><td> </td></tr>
<tr>
<td>
<FORM action="insert-todo-action.php" method="POST" name="insert_todo_action" enctype="multipart/form-data" title="TITLE">
<table>
<TR>
<TD> tds_subject </TD> <TD> <INPUT TYPE="TEXT" name="tds_subject"> </TD>
</TR>
<TR>
<TD> tds_details </TD> <TD> <INPUT TYPE="TEXT" name="tds_details"> </TD>
</TR>
<TR>
<TD> tds_startdate </TD> <TD> <INPUT TYPE="TEXT" name="tds_startdate"> <a href="javascript:showCalendar('insert_todo_action','tds_startdate')"><img src="images/arrow.bmp" alt="show calender" width="16" height="14" border="0"></a> </TD>
<TD> time </TD> <TD> <INPUT TYPE="TEXT" name="time"> </TD>
</TR>
<TR>
<TD> tds_duration </TD> <TD> <INPUT TYPE="TEXT" name="tds_duration"> </TD>
<TD> minute(s)</TD>
</TR>
<TR>
<TD> tds_enddate </TD> <TD> <INPUT TYPE="TEXT" name="tds_enddate"> <a href="javascript:showCalendar('insert_todo_action','tds_enddate')"><img src="images/arrow.bmp" alt="show calender" width="16" height="14" border="0"></a> </TD>
</TR>
<TR>
<TD> tds_datetype </TD>
<TD> <!--INPUT TYPE="TEXT" value="<?echo $row['tds_datetype']?>" name="tds_datetype"-->
<SELECT NAME="datetypes">
<?
for ($i=0; $i<sizeof($_DATETYPES); $i++)
{
?>
<OPTION value="<?=$_DATETYPES[$i]?>"> <?=$_DATETYPES[$i]?>
<?
}
?>
</SELECT>
</TD>
</TR>
<TR>
<TD> tds_datestep </TD> <TD> <INPUT TYPE="TEXT" name="tds_datestep"> </TD>
<TD> every _ day/week/month(s)</TD>
</TR>
<TR><TD> </TD></TR>
</table>
<INPUT TYPE="SUBMIT" name="submit" value="add event">
</FORM>
</td>
</tr>
</table>
<?
include("footer.php");
?>