
{include file="../head.tpl"}


<form action="forum.php?action=save&amp;what=filesize" method="post">
<table width="100%" border="0" cellpadding="5" cellspacing="1" class="tableborder">
	<tr>
		<td colspan="3" class="header">{$langadmin.forum_header_uploads}</td>
	</tr>
	<tr>
		<td class="firstrow">{$langadmin.forum_header_allowed_files}</td>
		<td class="firstrow">{$langadmin.filemaxupload}</td>
		<td class="firstrow">{$langadmin.actions}</td>
	</tr>
	{foreach from=$allowed_files item=allowed_file}
	<tr>
		<td width="20%" class="firstrow">{$allowed_file->filetype}</td>
		<td width="20%" class="secondrow"><input type="text" name="filesize[{$allowed_file->id}]" value="{$allowed_file->filesize}" size="6" maxlength="6" /> kB</td>
		<td width="*" class="firstrow">
			<select onchange="eval(this.options[this.selectedIndex].value);selectedIndex=0;" name="filetype_{$allowed_file->id}" id="filetype_{$allowed_file->id}">
				<option value="location.href = 'forum.php?action=delete&amp;what=filetype&amp;id={$allowed_file->id}&amp;area={$area}'">{$langadmin.menue_navigation_delete}</option>
			</select>
			<input onclick="eval(document.getElementById('filetype_{$allowed_file->id}').value);" type="button" class="button" value="{$langadmin.go}">
		</td>
	</tr>
	{/foreach}
	<tr>
		<td class="firstrow" colspan="3">
			<input class="button" type="submit" value="{$langadmin.save}" />
	  </td></tr>
</table>
</form>
<form action="forum.php?action=add&amp;what=filetype" method="post">
<table width="100%" border="0" cellpadding="5" cellspacing="1" class="tableborder">
	<tr>
		<td class="header" colspan="3">{$langadmin.forum_header_possible_files}</td>
	</tr>
	<tr>
		<td width="20%" class="firstrow">
			<select name="filetype">
			{foreach from=$possible_files_keys item=possible_files_key}
				{assign var=mime_type value=$possible_files.$possible_files_key}
				<option value="{$possible_files.$possible_files_key}">{$possible_files.$possible_files_key} ({$possible_files_key})</option>
			{/foreach}
			</select>
		</td>
		<td width="20%" class="secondrow"><input type="text" name="filesize" value="{$smarty.post.filesize|default:"1024"}" size="6" maxlength="6" /> kB</td>
		<td class="firstrow">
			<input class="button" type="submit" value="{$langadmin.forum_btn_add}" />{if $smarty.get.error == 1} {$langadmin.forum_err_filesize_missing}{/if}
		</td>
	</tr>
</table>
</form>
{include file="../foot.tpl"}