<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Todo List</title>

||just_include||css.tpl||

<script type="text/javascript">
<!--
function setTitle(){
	||ifequal||top||_top||
		window.top.document.title = "||cust_title|| - ||current_user|| - Todo List";
	||endif||
}
//-->
</script>
</head>

<body background="||cust_panel_background||" bgcolor="||cust_panel_bgcolor||" onload="setTitle();">

||ifdef||error||
	<center>
	<table border="1">		
		<tr>
			<td><img src="||nwimg||/attention.gif" alt="Attention" /></td>
			<td bgcolor="ffffff">||error||</td>
		</tr>
	</table>
	</center>
||endif||


<form name="todo_list" method="post" action="||b_action||">
	<input type="hidden" name="utoken" value="||utoken||" />

<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
	<td width="10%">
		<table cellspacing="0" cellpadding="0">
		<tr>
			<td><b>Date</b></td>
			<td nowrap="nowrap">
			<input name="todo_month" size="2" value="||todo_month||" />/
                        <input name="todo_day" size="2" value="||todo_day||" />/
                        <input name="todo_year" size="4" value="||todo_year||" />
                        ||ifequal||date_format||mdy||mm/dd/yyyy||else||dd/mm/yyyy||endif|| eg. ||today_date||
			</td>
		</tr>
		<tr>
			<td><b>Note</b></td>
			<td><textarea name="tdl_note" rows="4" cols="25">||html_text||tdl_note||</textarea></td>
		</tr>
		<tr>
			<td></td>
			<td align="center"><input type="image" src="||nwimg||/bigsave.gif" alt="Save Todo Item" name="todo_add" /></td>
		</tr>
		</table>
	</td>
	<td width="100%" valign="top">
		<table border="0" width="100%" cellspacing="2" cellpadding="0">
		<tr bgcolor="#D6D6CE">
			<th width="10%">Date</th>
			<th width="90%">Note</th>
			<th>&nbsp;</th>
		</tr>

		||begin_todo||
			||ifdef||tdl_old||
				<tr bgcolor="#eeeeff">
			||else||
				||ifdef||tdl_today||
					<tr bgcolor="#FFC0C0">
				||else||
					<tr bgcolor="#ffffff">
				||endif||
			||endif||
			<td>||tdl_date||</td>
			<td>
				<a href="||action||?cmd=todo-||tdl_name||&amp;utoken=||utoken||">
				||ifdef||tdl_note||
					||lchop||tdl_note||40||
				||else||
					(No Note)
				||endif||
				</a>
			</td>
			<td><a href="||action||?cmd=todo_delete-||tdl_name||&amp;utoken=||utoken||">delete</a></td>
		</tr>
		||end_todo||
		</table>
	</td>
</tr>
</table>

</form>


</body>
</html>
