{include file="$gentemplates/$header_tpl"}
	{strip}
	<form action="{$form.action}" method="post" id="account_form">
	<input type="hidden" name="paysys" id="paysys" value="">
	<input type="hidden" name="sel" id="sel" value="save_account">
		<div>
			<h2>{$lang.payment.update_account_page.select_account}</h2>			
			<p>{$lang.payment.update_account_page.toptext}</p>
		
                {*if $form.err}
				<p class="error_msg">*&nbsp;{$form.err}</p>
		{/if}
                
		{if $send}
				<p class="error_msg">*&nbsp;{$lang.pays.manual_payment_submit}</p>
		{/if*}
			<p>{$lang.payment.update_account_page.online_payment}</p>
				<div>
					<table cellpadding="0" cellspacing="0" border="0">
					<tr><td height=25 class="text">{$lang.payment.account_count}:&nbsp;</td>
						<td class="text"><b>{$data.count} &nbsp;{$data.account_currency}</b></td>
					</tr>
					<tr>
						<td height=25 class="text">{$lang.payment.update_account_page.add}:&nbsp;</td>
						<td class="text">
							<input type="text" name="account_to_add" id="account_to_add">&nbsp;&nbsp;&nbsp;
							<font class="text_hidden">{$lang.payment.update_account_page.account_to_add_hint}</font>
						</td>
					</tr>
					</table>
				</div>
				<div style="padding-top: 5px;">
					{section name=s loop=$paysys}
						{if $paysys[s].template_name eq 'manual'}
					<input style="margin-top:5px;" type="button" class="button" onclick="javascript: window.document.location.href ='{$site_root}/{$seo.payment}?sel=manual&id={$paysys[s].id}&add='+document.getElementById('account_to_add').value;" value="{$paysys[s].name}">&nbsp;
						{elseif $paysys[s].use_special_form eq '1'}
					<input style="margin-top:5px;" type="button" class="button" onclick="javascript: window.document.location.href ='{$site_root}/{$seo.payment}?sel=authorizenet&id={$paysys[s].id}&add='+document.getElementById('account_to_add').value;" value="{$paysys[s].name}">&nbsp;
						{else}
					<input style="margin-top:5px;" type="button" class="button" onclick="javascript: document.getElementById('paysys').value='{$paysys[s].id}'; document.getElementById('account_form').submit();" value="{$paysys[s].name}">&nbsp;
						{/if}
					{/section}
					{if $smssystems eq 'yes'}
					<input type="button" class="button" style="margin-top: 5px;" onclick="javascript: document.location.href ='sms_payment.php';" value="{$lang.sms_payments.sms_payment}">
					&nbsp;{/if}
				</div>
		</div>
	</form>
	{/strip}
{include file="$gentemplates/$footer_tpl"}