{{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}}

<script type="text/javascript">
	$(document).ready(function(){
		$("form#transfers-and-invoices-form").validate();
		$("form#transfers-and-invoices-form #tranfers-company-name").rules("add", {required: true});
		$("form#transfers-and-invoices-form #transfers-address").rules("add", {required: true});
		$("form#transfers-and-invoices-form #transfers-postcode").rules("add", {required: true});
		$("form#transfers-and-invoices-form #transfers-city").rules("add", {required: true});
		$("form#transfers-and-invoices-form #transfers-nip").rules("add", {required: true});
	});
</script>
<h1>{{$lang.Transfers_and_Invoices}}</h1>
<form action="?p={{$_GET.p}}" method="post" name="form" id="transfers-and-invoices-form">
	<fieldset>
		<table class="details">
			<tr>
			<td class="help" colspan="3">{{$lang.help_settings_transfers_and_invoices}}</td>
			</tr>
			<tr>
				<th class="name"><label>{{$lang.Invoices_company_name}}</label></th><td class="value"><input id="tranfers-company-name" maxlength="100" type="text" name="invoices_company_name" value="{{$config.invoices_company_name}}" size="5" class="input" /></td><td class="help"></td>
			</tr><tr>
				<th class="name"><label>{{$lang.Invoices_address}}</label></th><td class="value"><input id="transfers-address" maxlength="40" type="text" name="invoices_address" value="{{$config.invoices_address}}" size="5" class="input" /></td><td class="help"></td>
			</tr><tr>
				<th class="name"><label>{{$lang.Invoices_postal_code}}</label></th><td class="value"><input id="transfers-postcode" maxlength="20" type="text" name="invoices_postal_code" value="{{$config.invoices_postal_code}}" size="5" class="input" /></td><td class="help"></td>
			</tr><tr>
				<th class="name"><label>{{$lang.Invoices_city}}</label></th><td class="value"><input id="transfers-city" maxlength="40" type="text" name="invoices_city" value="{{$config.invoices_city}}" size="5" class="input" /></td><td class="help"></td>
			</tr><tr>
				<th class="name"><label>{{$lang.Invoices_NIP}}</label></th><td class="value"><input id="transfers-nip" maxlength="30" type="text" name="invoices_NIP" value="{{$config.invoices_NIP}}" size="5" class="input" /></td><td class="help"></td>
			</tr><tr>
				<th class="name"><label>{{$lang.Invoices_REGON}}</label></th><td class="value"><input type="text" name="invoices_REGON" value="{{$config.invoices_REGON}}" size="5" class="input" /></td><td class="help"></td>
			</tr><tr>
				<th class="name"><label>{{$lang.Invoices_Bank}}</label></th><td class="value"><input type="text" name="invoices_Bank" value="{{$config.invoices_Bank}}" size="5" class="input" /></td><td class="help"></td>
			</tr><tr>
				<th class="name"><label>{{$lang.Invoices_Account}}</label></th><td class="value"><input type="text" name="invoices_Account" value="{{$config.invoices_Account}}" size="5" class="input" /></td><td class="help"></td>
			</tr><tr>
				<th class="name"><label>{{$lang.Invoices_phone}}</label></th><td class="value"><input type="phone" name="invoices_phone" value="{{$config.invoices_phone}}" size="5" class="input" /></td><td class="help"></td>
			</tr><tr>
				<th class="name"><label>{{$lang.Invoices_email}}</label></th><td class="value"><input type="text" name="invoices_email" value="{{$config.invoices_email}}" size="5" class="input" /></td><td class="help"></td>
			</tr><tr>
				<th class="name"><label>{{$lang.Invoices_www}}</label></th><td class="value"><input type="text" name="invoices_www" value="{{$config.invoices_www}}" size="5" class="input" /></td><td class="help"></td>
			</tr>
		</table>
		<div class="save float"><div class="save floatcontainer">
		<input type="submit" class="submit" value="{{$lang.Save}} &raquo;" name="sOption" />
		</div></div>
	</fieldset>
</form>