{{function name="selectOptions" aOptions=0 mOption=0}}
	{{foreach from=$aOptions item=sOption}}
		<option value="{{$sOption@key}}" {{if ( is_array( $mOption ) && in_array( $sOption@key, $mOption ) ) || ( $sOption@key == $mOption )}}selected="selected"{{/if}}>{{$sOption}}</option>
	{{/foreach}}
{{/function}}

<h1>{{$lang.Configuration}}</h1>
<form action="?p={{$_GET.p}}" method="post" name="form">
	<fieldset>
		<table class="details">
			<thead>
				<tr>
					<th class="name">{{$lang.Color_scheme}}</th>
					<td class="value">
						<select name="overwrite_style"><option value="">{{$lang.Select}}</option>{{selectOptions aOptions=$aColors mOption="none"}}</select>
					</td>
					<td class="help"><img class="tTip info" src="templates/images/info.png"  title="{{$lang.help_settings_color_scheme}}" /></td>
				</tr>
				<tr>
					<th class="name">{{$lang.Color_scheme_saveas}}</th>
					<td class="value">
						<input name="saveAs" type="text" value="" />
					</td>
					<td class="help"></td>
				</tr>
			</thead>
			<tbody>
				{{foreach from=$aValues item=mValue}}
					{{if !is_array( $mValue )}}
						<tr><th colspan="3">{{$mValue}}</th></tr>
					{{else}}
						<tr><td class="name">{{$mValue.name}}</td><td class="value"><input class="color" type="text" name="aValues[{{$mValue.name}}]" value="#{{$mValue.value}}" /></td><td class="help"></td>
					{{/if}}
				{{/foreach}}
			</tbody>
		</table>

		<div class="save float"><div class="save floatcontainer">
		<input type="submit" class="submit" value="{{$lang.Save}} &raquo;" name="sOption" />
		</div></div>
	</fieldset>
</form>