{include file="$gentemplates/_header.tpl" pagetitle="$contentheader"}
{include file="$gentemplates/_navi.tpl" pagetitle="$contentheader"}

<form name="f1" action="index.php" method="POST">
<input type="hidden" name="{$SESSIONNAME}" value="{$SESSIONID}">
<input type="hidden" name="id" value="{$id}">
<input type="hidden" name="mod" value="notes">
<input type="hidden" name="obj" value="note">
{if $mode eq "new"}
<input type="hidden" name="op" value="create">
{else}
<input type="hidden" name="op" value="edit">
{/if}

<table border="0" width="100%" cellpadding="0" cellspacing="0">
	<tr align="left">
		<td class="tab" height="40">&nbsp;</td>
		<td class="formhead">{$hashmap.title}:</td>
		<td class="formhead"><input type="text" name="title" size="80" maxlength="255" value="{if $mode eq "edit"}{$td.title|escape:"html"}{/if}"></td>
	</tr>
	<tr><td class="lines" height="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" hspace="0" vspace="0" border="0"></td></tr>
	<tr align="left">
		<td class="tab" height="40">&nbsp;</td>
		<td class="formhead">{$hashmap.category}:</td>
		<td class="formhead">{$categories|smarty:nodefaults}</td>
	</tr>
	<tr><td class="lines" height="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" hspace="0" vspace="0" border="0"></td></tr>
	<tr align="left">
		<td class="tab" height="40">&nbsp;</td>
		<td class="formhead">{$hashmap.public}:</td>

		<td class="formhead"><input type="radio" name="public" value="1"{$pubcheckedyes}>{$yes}&nbsp;&nbsp;<input type="radio" name="public" value="0"{$pubcheckedno}>{$no}</td>
	</tr>
	<tr><td class="lines" height="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" hspace="0" vspace="0" border="0"></td></tr>
        <tr align="left">
		<td class="tab">&nbsp;</td>
		<td class="formhead">{$hashmap.content}:</td>
		<td class="formhead"><textarea name="content" style="height:25em; width:50em;">{if $mode eq "edit"}{$td.content}{/if}</textarea></td>
	</tr>
	{if $enable_comments}
	<tr><td class="lines2" height="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" hspace="0" vspace="0" border="0"></td></tr>
	{section name=c loop=$comments}
	<tr><td class="lines" height="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" hspace="0" vspace="0" border="0"></td></tr>
	<tr>
		<td class="tab">&nbsp;</td>
		<td class="tab">{$comments[c].lu_username}<br />
		{$comments[c].lu_update|mgw_datetime}</td>
		<td class="tab"><br />{$comments[c].comment}<br /><br /></td>
	</tr>
        {/section}
	{/if}
	<tr><td class="lines2" height="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" hspace="0" vspace="0" border="0"></td></tr>
	<tr align="left">
	        <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1" hspace="0" vspace="0" border="0"></td>
                <td class="formhead">&nbsp;</td>
                <td class="formhead"><input type="submit" name="{$suname}" value="{if $mode eq "new"}{$hashmap.create}{else}{$hashmap.save}{/if}" class="{$suclass}">&nbsp;&nbsp;<a href="index.php?mod=notes&amp;obj=note&amp;view=list&amp;{$SESSION}">{$hashmap.back}</a></td>
        </tr>
	<tr><td class="lines" height="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" hspace="0" vspace="0" border="0"></td></tr>
</table>
</form>

{include file="$gentemplates/_footer.tpl" aktUser=$username}