{if $mode eq "new"}
{include file="$gentemplates/_header.tpl" pagetitle="$createnewgroup"}
{include file="$gentemplates/_navi.tpl" pagetitle="$createnewgroup"}
{else}
{include file="$gentemplates/_header.tpl" pagetitle="$editgroup"}
{include file="$gentemplates/_navi.tpl" pagetitle="$editgroup"}
{/if}

<form name="f1" action="groupmanager.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="group">			
{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="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">{$groupname}:</td>
    <td class="formhead"><input type="text" name="groupname" size="20" maxlength="100" value="{$td.name|escape:"html"}"> {$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">{$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"}{$createnewgroup}{else}{$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}