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

<form name="f1" action="index.php" method="POST">

<input type="hidden" name="{$SESSIONNAME}" value="{$SESSIONID}">
<input type="hidden" name="op" value="signout">
<input type="hidden" name="mod" value="outboard">

{if $mode eq "edit"}
<input type="hidden" name="id_username" value="{$td.id_username}">
{/if}

{if $mode eq "edit"}
{include file="$gentemplates/_navi.tpl"}
{include file="$gentemplates/_contentheader.tpl" title="$outedittitle"}
{else}
{include file="$gentemplates/_navi.tpl" submenu="1"}
{include file="$gentemplates/_contentheader.tpl" title="$signout"}
{/if}

<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr><td class="lines2" height="2" width="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="2" /></td></tr>						

  <tr align="left">
    <td class="tab" height="20"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1" /></td>
    <td class="tab">&nbsp;</td>
    <td class="tab">&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">{$personsname}:</td>
    <td class="tab">{if $mode eq "edit"}{$userfull}{else}{$userlist|smarty:nodefaults}{/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>
  <tr align="left">
    <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1" /></td>
    <td class="formhead">{$statusheader}:</td>
    <td class="tab">{$statuslist|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">{$location}:</td>
    <td class="tab">
      <input type="text" name="location" size="30" maxlength="100" value="{$td.location}">
    </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">{$dateout}:</td>
    <td class="tab">{mgw_html_select_date prefix="Start" end_year="+1" time=$sts}
      {datepick form="f1" field="StartYear,StartMonth,StartDay"}</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">{$timeout}:</td>
    <td class="tab">
      <select name="time_in" size=1>
	{section name=hour loop=$appointment_start_list}
	<option value={$appointment_start_list[hour].timestamp}{$appointment_start_list[hour].sel}>{$appointment_start_list[hour].time_label}</option>	
	  {/section}	    
      </select>
    </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="{$imgpathgeneral}/space.gif" alt="" width="60" height="1" /></td>
    <td class="formhead">{$datein}:</td>
    <td class="tab">{mgw_html_select_date prefix="End" end_year="+2" time=$ets}
      {datepick form="f1" field="EndYear,EndMonth,EndDay"}</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">{$timein}:</td>
    <td class="tab">
      <select name="time_out" size=1>	
	{section name=hour loop=$appointment_end_list}
	<option value={$appointment_end_list[hour].timestamp}{$appointment_end_list[hour].sel}>{$appointment_end_list[hour].time_label}</option>	
	  {/section}
      </select>
    </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">{$autointext}</td>
    <td class="tab">
      <input type="radio" name="autoin" value="1"{if $autoin eq 1} checked{/if}>{$yes}<br><input type="radio" name="autoin" value="0"{if $autoin neq 1} checked{/if}>{$no}
    </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">{$notes}:</td>
    <td class="formhead"><br>
      <textarea name="notes" rows="5" cols="30">{$td.notes}</textarea>
    </td>
  </tr>

  <tr align="left">
    <td class="tab" height="20"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1" /></td>
    <td class="tab">&nbsp;</td>
    <td class="tab">&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">&nbsp;</td>
    <td class="formhead"><input type="submit" name="{$suname}" value="{$suvalue}" 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}

