{include file="$gentemplates/_header.tpl" pagetitle="$contentheader"}
{include file="$gentemplates/_navi.tpl" pagetitle="$contentheader"}
	
<table border="0" cellpadding="0" cellspacing="0" width="80%" height="300">
	<tr><td class="lines2" height="1" width="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="2"></td></tr>
	<tr>
		<td class="tab" width="30">&nbsp;</td>
		<td class="tab" height="23" width="100"><a href="index.php?mod=todo&{$SESSION}">{$hashmap.back}</a></td>
		<td class="tab" width="70%">&nbsp;</td>
	</tr>
	<tr><td class="lines2" height="1" width="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
	<tr>
		<td class="tab">&nbsp;</td>
		<td class="formhead">{$hashmap.subject}:</td>
		<td class="tab">{$td.header}</td>
	</tr>
	<tr><td class="lines" height="1" width="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
	<tr>
		<td class="tab">&nbsp;</td>
		<td class="formhead">{$hashmap.desc}:</td>
		<td class="tab">{$td.description|mgw_linkalize}</td>
	</tr>
	<tr><td class="lines" height="1" width="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
        {if $projectsupport}
	<tr>
		<td class="tab">&nbsp;</td>
		<td class="formhead">{$hashmap.forproject}:</td>
		<td class="tab">{$td.projectname}</td>
	</tr>
        {/if}
	<tr><td class="lines" height="1" width="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
	<tr>
		<td class="tab">&nbsp;</td>
	{if $td.fromuserid eq 0}
		<td class="formhead">{$hashmap.stat}:</td>
	{else}
		<td class="formhead">{$hashmap.delegation_status}:</td>
	{/if}
		<td class="tab">{$td.status|smarty:nodefaults}</td>
	</tr>
	{if $td.starttype neq 3}
	<tr><td class="lines" height="1" width="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
	<tr>
		<td class="tab">&nbsp;</td>
		<td class="formhead">{$hashmap.startdate}:</td>
		<td class="tab">{$td.startdate|mgw_datetime}</td>
	</tr>
	{/if}
	{if $td.endtype neq 3}
	<tr><td class="lines" height="1" width="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
	<tr>
		<td class="tab">&nbsp;</td>
		<td class="formhead">{$hashmap.enddate}:</td>
		<td class="tab">{$td.enddate|mgw_datetime}</td>
	</tr>
	{/if}
	<tr><td class="lines" height="1" width="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
	<tr>
		<td class="tab">&nbsp;</td>
		<td class="formhead">{$hashmap.priority}:</td>
		<td class="tab">{$td.priority}</td>
	</tr>
	<tr><td class="lines" height="1" width="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
	<tr>
		<td class="tab">&nbsp;</td>
		<td class="formhead">{$hashmap.lastchange}:</td>
		<td class="tab">{$td.lu_date|mgw_datetime}</td>
	</tr>
	<tr><td class="lines2" height="1" width="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
	<tr>
		<td class="tab">&nbsp;</td>
		<td class="tab" height="23"><a href="index.php?mod=todo&{$SESSION}">{$hashmap.back}</a></td>
		<td class="tab">
		{if $ty eq "own"}
		<input type="button" onclick="location='index.php?mod=todo&obj=item&view=editform&id={$id}&{$SESSION}'" CLASS="{$suclass}" value="{$hashmap.edit}">
		&nbsp;&nbsp;&nbsp;
		<input type="button" onclick="location='index.php?mod=todo&obj=item&view=delete&id={$id}&{$SESSION}'" CLASS="{$suclass}" value="{$hashmap.delete}">
		</td>
		{/if}
		{if $ty eq "dfr"}
		<input type="button" onclick="location='index.php?mod=todo&obj=item&view=editform&id={$id}&{$SESSION}'" CLASS="{$suclass}" value="{$hashmap.edit}">
		{/if}
		{if $ty eq "dto"}
		<input type="button" onclick="location='index.php?mod=todo&obj=item&view=editform&id={$id}&{$SESSION}'" CLASS="{$suclass}" value="{$hashmap.edit}">
		&nbsp;&nbsp;&nbsp;
		<input type="button" onclick="location='index.php?mod=todo&obj=item&view=delete&id={$id}&{$SESSION}'" CLASS="{$suclass}" value="{$hashmap.delete}">
		{/if}
		</td>
	</tr>
	<tr><td class="lines" height="1" width="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>	
</table>

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