{if $mode eq "new"}
{include file="$gentemplates/_header.tpl" pagetitle=`$hashmap.createnewworkloc`}
{include file="$gentemplates/_navi.tpl" pagetitle=`$hashmap.createnewworkloc`}
{else}
{include file="$gentemplates/_header.tpl" pagetitle=`$hashmap.editworkloc`}
{include file="$gentemplates/_navi.tpl" pagetitle=`$hashmap.editworkloc`}
{/if}

<form name="f1" action="workplacemanager.php" method="POST">
<input type="hidden" name="{$SESSIONNAME}" value="{$SESSIONID}">
<input type="hidden" name="id" value="{$td.id}">			
<input type="hidden" name="mod" value="admin">			
<input type="hidden" name="obj" value="workloc">
{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="100%">
  
  <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.worklocname}:</td>
    <td class="formhead"><input type="text" name="worklocname" size="20" maxlength="100" value="{$td.name|escape:"html"}"> {$hashmap.exception}</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.description}:</td>
    <td class="formhead"><input type="text" name="description" size="40" maxlength="100" value="{$td.description|escape:"html"}"></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="{if $mode eq "new"}{$hashmap.createnewworkloc}{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}
