
	{if $addfolder}
	
	{$ADDFOLDER_FORM}
	<table border=0 cellspacing="0" width="100%" cellpadding="4">
	<tr class="dataTableHeadingRow">
		<td class="dataTableHeadingContent" colspan="2">
			<table border=0 cellspacing="0" width="100%">
			<tr>
				<td class="main"><b>{$ADDFOLDER_TITLE}</b></td>
				<td class="main" align="right"><a class="lbAction" rel="deactivate" title="{$BUTTON_CLOSE}"><img src="images/cal_close_small.gif" border="0" title="{$BUTTON_CLOSE}"/></a></td>
			</tr>
			</table>
		</td>
	</tr><tr>
		<td class="main">{$ADDFOLDER_INTRO}:</td>
		<td class="main">{$ADDFOLDER_INPUT}</td>
	</tr>
	<tr>
		<td class="main" colspan="2" align="center">{$ADDFOLDER_SUBMIT}</td>
	</tr>
	</table>
	</form>
	
	{/if}
	
	{if $delfolder}
	
	<table border=0 cellspacing="0" width="100%" cellpadding="4">
	<tr class="dataTableHeadingRow">
		<td class="dataTableHeadingContent" colspan="2">
			<table border=0 cellspacing="0" width="100%">
			<tr>
				<td class="main"><b>{$DELFOLDER_TITLE}</b></td>
				<td class="main" align="right"><a class="lbAction" rel="deactivate" title="{$BUTTON_CLOSE}"><img src="images/cal_close_small.gif" border="0" title="{$BUTTON_CLOSE}"/></a></td>
			</tr>
			</table>
		</td>
	</tr><tr>
		<td class="main">{$DELFOLDER_INTRO}</td>
	</tr>
	<tr>
		<td class="main" align="center">{$DELFOLDER_SUBMIT}</td>
	</tr>
	</table>
	
	{/if}
	
	{if $view}

	{$TERMIN_FORM}
	<table border=0 cellspacing="0" width="100%" cellpadding="4">
	<tr class="dataTableHeadingRow">
		<td class="dataTableHeadingContent" colspan="2">
			<table border=0 cellspacing="0" width="100%">
			<tr>
				<td class="main"><b>{$NOTICE_VIEW}</b></td>
				<td class="main" align="right"><a class="lbAction" rel="deactivate" title="{$BUTTON_CLOSE}"><img src="images/cal_close_small.gif" border="0" title="{$BUTTON_CLOSE}"/></a></td>
			</tr>
			</table>
		</td>
	</tr><tr>
		<td class="main" colspan="2">&nbsp;</td>
	</tr><tr>
		<td class="main" valign="top"><b>{$NOTE_CAPT}</b></td><td class="main">{$TITLE}</td>
	</tr><tr>
		<td class="main" valign="top"><b>{$NOTE_FROM_DATE}</b></td><td class="main">{$DATE}</td>
	</tr><tr>
		<td class="main" valign="top" colspan="2">
			<iframe name="note" src="{$NOTE_IFRAME_SRC}" style="width:95%;height:270px;border:0;padding:0px; border:1px dashed #000000; padding:4px;"></iframe>
		</td>
	</tr><tr>
		<td class="main" valign="top"><b>{$NOTE_RECIPIENT}</b></td><td class="main">{$FROM}</td>
	</tr><tr class="dataTableRow">
		<td class="main" valign="top"><b>{$NOTE_TERMIN}</b></td>
		<td class="main">
			<b>{$NOTE_TERMIN_INTRO}</b>
				<table border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td><input value='{if $TERMIN != '0000-00-00 00:00:00' and $TERMIN != ''}{$TERMIN|date_format:"%Y-%m-%d"}{/if}' type="text" size="12" maxlength="12" name="termin" id="termin" /></td>
					<td><img onclick="scwShow(scwID('termin'),event);" src="includes/javascript/spiffyCal/images/btn_date_over.gif" border="0" /></td>
					<td>&nbsp;</td>
					<td class="main">{$INPUT_TERMIN_HOUR}&nbsp;:&nbsp;{$INPUT_TERMIN_MINUTE} Uhr</td>
				</tr>
				</table>
				<br />
				<input type="submit" value="{$BUTTON_SAVE_TERMIN}">
				{if $TERMIN != '0000-00-00 00:00:00' and $TERMIN != ''}
				&nbsp;&nbsp;
				<input type="button" onclick="window.location.href='{$LINK_DELETE_TERMIN}';" value="{$BUTTON_DELETE_TERMIN}" style="background-color:#FF0000; color:#FFFFFF;" />
				{/if}
		
		</td>
	</tr>
	</table>
	</form>
	
	{/if}
	
	{if $edit}
	
	<form action="{$FORM_ACTION}" method="post" name="noteedit" rel="quicknoteadd" onsubmit="return check_note();">

	<table border=0 cellspacing="0" width="100%" cellpadding="4">
	<tr class="dataTableHeadingRow">
		<td class="dataTableHeadingContent" colspan="2">
			<table border=0 cellspacing="0" width="100%">
			<tr>
				<td class="main"><b>{$TITLE}</b></td>
				<td class="main" align="right"><a class="lbAction" rel="deactivate" title="{$BUTTON_CLOSE}"><img src="images/cal_close_small.gif" border="0" title="{$BUTTON_CLOSE}"/></a></td>
			</tr>
			</table>
		</td>
	</tr><tr>
		<td class="main" valign="top">{$NOTE_CAPT} *</td><td class="main">{$INPUT_TITLE}</td>
	</tr><tr>
		<td class="main" valign="top">{$NOTE_NOTE} *</td><td class="main">{$INPUT_NOTE}</td>
	</tr><tr>
		<td class="main" valign="top">{$NOTE_TERMIN}</td><td class="main" valign="top">
			<table border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td valign="top" rowspan="2">{$INPUT_TERMIN_ACTIVE}&nbsp;&nbsp;</td>
				<td class="smallText">{$NOTE_TERMIN_ADD_INTRO}</td>
			</tr><tr>
				<td class="smallText">
					<table border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td><input value="{$TERMIN}" type="text" size="12" maxlength="12" name="termin" id="termin" /></td>
						<td><img onclick="scwShow(scwID('termin'),event);" src="includes/javascript/spiffyCal/images/btn_date_over.gif" border="0" /></td>
						<td>&nbsp;</td>
						<td class="main">{$INPUT_TERMIN_HOUR}&nbsp;:&nbsp;{$INPUT_TERMIN_MINUTE} Uhr</td>
					</tr>
					</table>
				</td>
			</tr>
			</table>
		</td>
	</tr><tr>
		<td class="main">&nbsp;</td><td class="main" valign="top">&nbsp;</td>
		{if $INPUT_REC != ''}
	</tr><tr>
		<td class="main" valign="top">{$NOTE_RECIPIENT} *</td><td class="main">{$INPUT_REC}</td>
	</tr><tr>
		<td class="main">&nbsp;</td><td class="main" valign="top"><input type="button" onclick="checkbox_toggle('noteedit','rec[]',true);" value="{$MARK_ALL}" class="iButton" />&nbsp;<input type="button" onclick="checkbox_toggle('noteedit','rec[]',false);" value="{$DEMARK_ALL}" class="iButton" /></td>
	</tr><tr>
		<td class="main">&nbsp;</td><td class="main" valign="top">&nbsp;</td>
		{/if}
	</tr><tr class="dataTableHeadingRow">
		<td class="main" colspan="2" align="center">
		{$INPUT_CHANGE} &nbsp; {$INPUT_SUBMIT}</td>
	</tr><tr class="dataTableHeadingRow">
		<td class="main" colspan="2" align="left">
		* = {$NOTE_PFLICHTFELDER}
		</td>
	</table>
	</form>
	
	{/if}
	
	{if $list}
	
<script language="javascript" type="text/javascript">
<!--
var SAVE_FORWARD_LINK = '{$JS_SAVE_FORWARD_LINK}';
var note_id_array = new Array();
{assign var="notes_num" value="0"}
{foreach name=aussena item=n from=$notizen} 
note_id_array[{$notes_num}] = {$n.id};
{assign var="notes_num" value="`$notes_num+1`"}
{/foreach}

{literal}

function do_folderselect(form_instance,el){
	pager_list_action(form_instance,'move',el.value);
}
{/literal}

//-->
</script>

	<table border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="main">{$EDITLINK}</td>
		<td class="main">&nbsp;&nbsp;&nbsp;</td>
		
		<td class="main">{$FOLDERFORM}{$TEXT_GOTO} {$FOLDERSELECT}</form></td>
		
		<td class="main">&nbsp;<a class="lbOn" href="{$FOLDERADD_LINK}"><img src="images/plus.gif" border="0" alt="{$FOLDERADD_LINK_TITLE}" title="{$FOLDERADD_LINK_TITLE}"></a></td>
		{if $FOLDERREMOVE_LINK}
		<td class="main"><a href="{$FOLDERREMOVE_LINK}" class="lbOn"><img src="images/icons/cross.gif" border="0" alt="{$FOLDERDELETE_LINK_TITLE}" title="{$FOLDERDELETE_LINK_TITLE}"></a></td>	
		{/if}
		<td class="main">&nbsp;&nbsp;&nbsp;</td>
		<td class="main">{$VIEW_CALENDARLINK}</td>	
	</tr>
	</table>
	
	<table border=0 width="100%">
	<tr>
		<td class="main">
		
			{$PAGER_LISTING}
			{$PAGER_SELECT}<br />
			{$PAGER_DELETELINK}&nbsp;{$PAGER_MARKASREADLINK}&nbsp;{$PAGER_MOVETOFOLDER}

	        {if $notizen}
		{foreach name=aussena item=n from=$notizen} 
					<td class="main">{$n.viewlink}<img alt="Ansehen" title="Ansehen" src="images/icons/preview.gif" border="0"></a></td>
					<td class="main">{$n.forwardlink}<img alt="Weiterleiten" title="Weiterleiten" src="images/icon_arrow_right.gif" border="0"></a></td>
					{if $n.changelink}
					<td class="main">{$n.changelink}<img alt="�ndern" title="�ndern" border="0" src="images/icons/icon_edit.gif"></a></td>
					{/if}
					<td class="main">{$n.deletelink}<img alt="l�schen" title="l�schen" src="images/icons/cross.gif" border="0"></a></td>
				</tr>
				</table>
				</div>
			</td>
		</tr>
		{/foreach}
		{/if}
	</td></tr>
	</table>

	{/if}

	{if $forward}

	<form name="forward">
	<table border="0" cellspacing="0" width="100%" cellpadding="4">
	<tr class="dataTableHeadingRow">
		<td class="main" colspan="2">
			<table border=0 cellspacing="0" width="100%">
			<tr>
				<td class="main"><b>
					{if $message}
					{$TEXT_FORWARD}
					{else}
					{$TEXT_CHOOSE_RECIPIENT}
					{/if}
				</b></td>
				<td class="main" align="right"><a class="lbAction" rel="deactivate" title="{$BUTTON_CLOSE}"><img src="images/cal_close_small.gif" border="0" title="{$BUTTON_CLOSE}"/></a></td>
			</tr>
			</table>
		</td>
	</tr>
	{if $message}
	<tr>
		<td colspan="2" class="smallText">{$message}</td>
	</tr>
	{else}
		{if $rec_array != ''}
			{foreach name=aussena item=fwd from=$rec_array} 
	<tr>
		<td colspan="2" class="smallText">{$fwd.input}&nbsp;{$fwd.name}</td>
	</tr>
			{/foreach}
	<tr class="dataTableHeadingRow">
		<td class="smallText"><b>{$TEXT_FORWARD}</b></td><td class="smallText" align="right"><a onClick="save_forward('{$id}');"><img alt="{$TEXT_FORWARD}" title="{$TEXT_FORWARD}" src="images/icon_save.gif" border="0"></a></td>
	</tr>
		{else}
	<tr>
		<td colspan="2" class="smallText"><font color="#AAAAAA">Kein Empf&auml;nger verf&uuml;gbar.</font></td>
	</tr>
		{/if}
	{/if}
	</table>
	</form>

	{/if}
