
{include file="../head.tpl"}
{literal}
<script language="JavaScript" type="text/JavaScript">
function checkf(){
var error = 0;
if(document.getElementById('gname').value == "" )
	{
	alert("{/literal}{$langadmin.nonamegroup}{literal}");
	document.getElementById('gname').focus();
	return false;
	error = 1;
	}

	if(error!=0){
	return false;
	} else {
		if(!confirm('{/literal}{$langadmin.areyousureperms}{literal}'))
		{
		return false;
		}
	}
}
</script>
{/literal}


<form name="f" method="post" action="{$form}" enctype="multipart/form-data" onSubmit="return checkf();">
<table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
    <tr>
      <td colspan="2" class="header">{$title}</td>
    </tr>
	 <tr class="secondrow">
	   <td class="firstrow">{$langadmin.groupdef}</td>
	   <td class="secondrow"><input name="gname" type="text" class="feld" id="gname" style="width:50%" value="{$row->groupname|sslash}"></td>
    </tr>
	 <tr class="secondrow">
	   <td class="firstrow">{$langadmin.groupdef_show}</td>
	   <td class="secondrow"><input name="gname_show" type="gname_show" class="feld" id="gname" style="width:50%" value="{$row->groupname_single|sslash}"></td>
    </tr>
	 <tr class="secondrow">
	   <td colspan="2" class="header">{$langadmin.permsmore}</td>
    </tr>
	 <tr class="secondrow">
      <td width="35%" class="firstrow">{$langadmin.maxpicdownload}
      </td>
      <td class="secondrow">
        <div align="left">
          <input name="maxpicdownload" type="text" class="feld" id="maxpicdownload" onKeypress="{$onkey}" value="{$maxpicdownload|default:"5"}" size="15" maxlength="8" >
       </div></td>
    </tr>
   {if $id != 2}
    <tr class="secondrow">
      <td width="35%" class="firstrow">{$langadmin.maxcountpn}
      </td>
      <td class="secondrow">
        <div align="left">
          <input name="groupmaxpn" type="text" class="feld" id="groupmaxpn" onKeypress="{$onkey}" value="{$maxpn|default:"50"}" size="15" maxlength="8" >
      </div></td>
    </tr>
    <tr class="secondrow">
      <td width="35%" class="firstrow">{$langadmin.maxlengthpn}</td>
      <td class="secondrow">
        <div align="left">
          <input name="maxpnlength" type="text" class="feld" id="maxpnlength" onKeypress="{$onkey}" value="{$maxpnlength|default:"2000"}" size="15" maxlength="8">
      </div></td>
    </tr>
    <tr class="secondrow">
      <td width="35%" class="firstrow">{$langadmin.sigmax}
      </td>
      <td class="secondrow">
        <div align="left">
          <input name="groupmaxsig" type="text" class="feld" id="groupmaxsig" onKeypress="{$onkey}" value="{$groupmaxsig|default:"100"}" size="15" maxlength="8" >
      </div></td>
     
    </tr>
	   {/if}
    <tr class="secondrow">
      <td width="35%" class="firstrow">{$langadmin.maxlengthcomm}</td>
      <td class="secondrow">
        <div align="left">
          <input name="maxcommlength" type="text" class="feld" id="maxcommlength" onKeyPress="{$onkey}" value="{$maxcommlength|default:"1000"}" size="15" maxlength="8" >
      </div></td>
    </tr>
	
	 {if $id != 0}
	 <tr class="secondrow">
      <td width="35%" class="firstrow">{$langadmin.maxlength_forums_post}</td>
      <td class="secondrow">
        <div align="left">
          <input name="maxlength_post" type="text" class="feld" id="maxlength_post" onKeyPress="{$onkey}" value="{$maxlength_post|default:"5000"}" size="15" maxlength="8" >
      </div></td>
    </tr>
	{/if}
	  <tr class="secondrow">
      <td width="35%" class="firstrow">{$langadmin.max_attachments}</td>
      <td class="secondrow">
        <div align="left">
          <input name="max_attachments" type="text" class="feld" id="max_attachments" onKeyPress="{$onkey}" value="{$max_attachments|default:"5"}" size="15" maxlength="8" >
      </div></td>
    </tr>
	
	{if $id != 2}
    <tr class="secondrow">
      <td width="35%" class="firstrow">{$langadmin.avatar_size_max}</td>
      <td class="secondrow">
        <div align="left">
          <input name="avatar_size" type="text" class="feld" id="avatar_size" onKeyPress="{$onkey}" value="{$row->avatar_size|default:"15360"}" size="15" maxlength="8" >
      </div></td>
    </tr>
    <tr class="secondrow">
      <td width="35%" class="firstrow">{$langadmin.avatar_height_max}</td>
      <td class="secondrow">
        <div align="left">
          <input name="avatar_height" type="text" class="feld" id="avatar_height" onKeyPress="{$onkey}" value="{$row->avatar_height|default:"100"}" size="15" maxlength="8" >
      </div></td>
    </tr>
    <tr class="secondrow">
      <td width="35%" class="firstrow">{$langadmin.avatar_width_max}</td>
      <td class="secondrow">
        <div align="left">
          <input name="avatar_width" type="text" class="feld" id="avatar_width" onKeyPress="{$onkey}" value="{$row->avatar_width|default:"100"}" size="15" maxlength="8" >
      </div></td>
    </tr>
	<tr>
	  <td width="35%" class="firstrow">{$langadmin.avatar_default_groups}</td>
	  <td class="secondrow"><div align="left">
	 {if $avatar}
	  {$avatar}
	  <br />
	  {/if}
        <input name="file" type="file" size="40">
	  
	  </div></td>
    </tr>
	<tr>
	<td class="firstrow">{$langadmin.set_avatar_asdefault}</td>
	<td class="secondrow"><input name="set_default_avatar" type="checkbox" id="set_default_avatar" value="1" {if $row->set_default_avatar=="1"}checked="checked"{/if}></td>
	</tr>
	{if $smarty.request.action!="new"}
	<tr>
	  <td width="35%" class="firstrow">{$langadmin.avatar_delete}</td>
	  <td class="secondrow"><div align="left">
	    <input name="delav" type="checkbox" id="delav" value="1">
	  </div></td>
    </tr>
	{/if}
{/if}
    <tr class="firstrow">
      <td colspan="2">        <input name="Submit" type="submit" class="button" value="{$langadmin.edit}">        <input name="send" type="hidden" id="send" value="1">        </td>
    </tr>

</table>
</form>
{include file="../foot.tpl"}