{assign var="page_title" value="Einstellungen bearbeiten"}
{assign var="page_title_long" value="Mitglieder Bereich &raquo; Einstellungen bearbeiten"}
{assign var="page_title_site" value="Einstellungen bearbeiten"}

{if $saved}
Die Einstellungen in dieser Kategorie wurden erfolgreich gespeichert.
{/if}
<form method="post" action="settings_admin.php">
	<input type="hidden" name="sid" value="{$SID_SHORT}" />
    <b>Kategorie:</b>
    <select name="category" class="list_form">
    	{html_options options=$catlist selected=$cat.categoryID}
    </select>
    <input type="submit" name="set_cat" value="GO" class="button_form" /></input>
</form>

<form method="post" action="settings_admin.php">
    <input type="hidden" name="sid" value="{$SID_SHORT}" />
    <input type="hidden" name="category" value="{$cat.categoryID}" />
    <table>
        <tr>
        	<th colspan="3" bgcolor="{$style.bg_2}">
            	{$cat.name}
            </th>
        </tr>
        {foreach from=$values item=item}
        <tr>
            <td bgcolor="{$style.bg_a}">
            	<input type="text" name="settings_{$item.settingID}" size="30" value="{$item.value|stripslashes}" class="input_form" />
            </td>
            <td bgcolor="{$style.bg_a}">{$item.description|stripslashes}</td>
        </tr>
        {/foreach}
    </table>
    <br />
    <input type="submit" name="send_form" value="Einstellungen speichern" class="button_form" /></input>
</form>