{include file="smartex_header.tpl"}
<p class="zag">Завершение обмена</p>
<table width="400" border="0" cellpadding="0" cellspacing="0" >
  <tr> 
    <td class="header2" valign="top"><nobr>Всего к оплате:</nobr></td>
    <td class="datasum"><nobr>{$amount} {$row_from->name}</nobr> 
		{if ($row_from->metal_id > 0)}
		<br><small>или {$grams} гр.</small>
		{/if}
		<font color=red>
		{if $real_invoice!=""}
		*
		{/if}
		</font></td>
  </tr>
  <tr> 
    <td class="header2" valign="top">Вы получаете:</td>
    <td class="datasum"><nobr>{$out_amount} {$row_to->name}</nobr>
		 {if $row_to->metal_id > 0}
		 <small>или {$grams_get} гр.</small>
		{/if}	
	<font color=red>
	{if $real_invoice_to!=""}
	*
	{/if}
	</font></td>
  </tr>
</table>
<table>
  <tr> 
    <td class="celpad2" colspan=2><strong>Реквизиты счета для получения суммы</strong></td>
  </tr>
  <tr> 
    <td >
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	
	{if ($row_to->code == "WMR"||$row_to->code == "WMZ"||$row_to->code == "WME"||$row_to->code == "WMU")}
	<tr> 
		<td width="120" class="celpad2">Кошелек {$purse} типа:</td>
		<td class="celpad2">{$wm_purse}</td>
	</tr>
	<tr> 
		<td width="120" class="celpad2">WM идентификатор:</td>
		<td class="celpad2">
		{if $wm_id==""}
			<small>не указан</small>
		{else}
			{$wm_id}
		{/if}
		</td>
	</tr>	
	{elseif ($row_to->code == "YMR"||$row_to->code == "PCE"||$row_to->code == "PCD"||$row_to->code == "PCL"||$row_to->code == "PCH")}
	<tr> 
		<td width="120" class="celpad2"><nobr>Номер счета:</nobr></td>
		<td class="celpad2">{$ym_account}</td>
	</tr>	
	{elseif ($row_to->code == "EPD")}
	<tr> 
		<td width="120" class="celpad2">Номер карты E-Port:</td>
		<td class="celpad2">{$eport_serial}'-'{$eport_number}</td>
	</tr>
	{elseif ($row_to->code == "EGOLD"||$row_to->code == "ESILVER"||$row_to->code == "EPLATINUM"||$row_to->code == "EPALLADIUM")}
		<tr> 
		<td width="120" class="celpad2"><nobr>Номер счета в E-Gold:</nobr></td>
		<td class="celpad2">{$egold_account}</td>
	</tr>
	{/if}
	
	<tr> 
        <td width="140" class="celpad2">Ваш E-mail:</td>
        <td class="celpad2">
				{if $user_email==""}
				<small>не указан</small>
				{else}
				<a href='mailto:{$user_email}'>{$user_email}</a>
				{/if}
				</td>
    </tr>
	</tr>
</table>
</td></tr>
</table>

{$purchase_form}



{include file="smartex_footer.tpl"}
