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

<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="action" value="category">
{if $mode eq "new"}
<input type="hidden" name="op" value="create">
{else}
<input type="hidden" name="op" value="edit">
{/if}

<table border="0" cellpadding="0" cellspacing="0" width="80%">
	<tr><td class="lines2" height="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="2" hspace="0" vspace="0" border="0"></td></tr>
	<tr>
		<td class="tab" width="30">&nbsp;</td>
		<td class="tab" height="23" width="130"><a href="index.php?mod=notes&amp;action=category&amp;view=list&amp;{$SESSION}">{$hashmap.back}</a></td>
		<td class="tab">&nbsp;</td>
	</tr>
	<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>
		<td class="tab" height="40">&nbsp;</td>
		<td class="formhead">{$hashmap.name}:</td>
		<td class="formhead"><input type="text" name="name" size="25" maxlength="100" value="{if $mode eq "edit"}{$td.name|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>
		<td class="tab" height="40">&nbsp;</td>
		<td class="formhead">{$hashmap.description}:</td>
		<td class="formhead"><input type="text" name="description" size="50" maxlength="255" value="{if $mode eq "edit"}{$td.description|escape:"html"}{/if}"></td>
	</tr>
	<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}"></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>
		<td class="tab">&nbsp;</td>
		<td class="tab" height="23"><a href="index.php?mod=notes&amp;action=category&amp;view=list&amp;{$SESSION}">{$hashmap.back}</a></td>
		<td class="tab">&nbsp;</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}