<!-- $Id: todo_edit.tpl,v 1.13 2003/11/17 17:18:38 k-fish Exp $ -->
{if $mode eq "new"}
{include file="$gentemplates/_header.tpl" pagetitle="$createnewtodo"}
{include file="$gentemplates/_navi.tpl" pagetitle="$createnewtodo"}
{else}
{include file="$gentemplates/_header.tpl" pagetitle="$edittodo"}
{include file="$gentemplates/_navi.tpl" pagetitle="$edittodo"}
{/if}

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

<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <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="20">&nbsp;</td>
    <td class="tab" width="20%" height="23"><a href="index.php?mod=todo&amp;{$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 align="left">
    <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="formhead">{$hashmap.subject}:</td>
    <td class="formhead">
      <input type="text" name="header" size="60" maxlength="100" value="{$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 align="left">
    <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="formhead">{$hashmap.desc}:</td>
    <td class="formhead">&nbsp;<br>
      <textarea name="description" rows="8" cols="60">{$description}</textarea><br>&nbsp;</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 align="left">
    <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="formhead">{$hashmap.starttype}:</td>
    <td class="formhead"><input type="radio" name="starttype" value="1" {$sselecttype1} /> {$hashmap.datetime} <input type="radio" name="starttype" value="2" {$sselecttype2} /> {$hashmap.dateonly} <input type="radio" name="starttype" value="3" {$sselecttype3} /> {$hashmap.nostartdate} </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 align="left">
    <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="formhead">{$hashmap.startdate}:</td>
    <td class="formhead">{mgw_html_select_date prefix="Start" start_year="-5" end_year="+5" time=$sts}
      {datepick form="f1" field="StartYear,StartMonth,StartDay"}&nbsp;&nbsp;&nbsp;
      {html_select_time prefix="Start" use_24_hours=yes display_seconds=no time=$sts}
    </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 align="left">
    <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="formhead">{$hashmap.endtype}:</td>
    <td class="formhead"><input type="radio" name="endtype" value="1" {$eselecttype1} /> {$hashmap.datetime} <input type="radio" name="endtype" value="2" {$eselecttype2} /> {$hashmap.dateonly} <input type="radio" name="endtype" value="3" {$eselecttype3} /> {$hashmap.noenddate} </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 align="left">
    <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="formhead">{$hashmap.enddate}:</td>
    <td class="formhead">{mgw_html_select_date prefix="End" start_year="-5" end_year="+5" time=$ets}
      {datepick form="f1" field="EndYear,EndMonth,EndDay"}&nbsp;&nbsp;&nbsp;
      {html_select_time prefix="End" use_24_hours=yes display_seconds=no time=$ets}
    </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 align="left">
    <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="formhead">{$hashmap.priority}:</td>
    <td class="formhead">{$prty|smarty:nodefaults}</td>
  </tr>
  
  {if $projectsupport}
  <tr><td class="lines" height="1" width="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
  <tr align="left">
    <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="formhead">{$hashmap.forproject}:</td>
    <td class="formhead">{$projects|smarty:nodefaults}
    </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 align="left">
    <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="formhead">{$hashmap.stat}:</td>
    <td class="formhead">{$status|smarty:nodefaults}</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 align="left">
    <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="formhead">
      {if $todotype eq "delegatedfrom"}{$hashmap.delegadefrom}:{/if}
      {if $todotype eq "delegatedto"}{$hashmap.delegadeto}:{/if}
      {if $mode eq "new"}{$hashmap.delegadeto}:{/if}
    </td>
    <td class="formhead">{$delegade|smarty:nodefaults} 
      {if $mode neq "edit"}
      <input type="checkbox" name="todo_notification_screen" {$delscreen}/> {$hashmap.screen}
      <input type="checkbox" name="todo_notification_mim" {$delmim}/> MIM
      <input type="checkbox" name="todo_notification_mail" {$delmail}/> {$hashmap.email}
      {else}
      <input type="hidden" name="fromuserid" value="{$delegadeid}">
      {/if}
    </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 align="left">
    <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="formhead">&nbsp;</td>
    <td class="formhead"><input type="submit" value="{if $mode eq "new"}{$hashmap.create}{else}{$hashmap.save}{/if}" class="{$suclass}"></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>

</form>

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