{include file="smartex_header.tpl"}

<script>
{$js_content}
</script>
<p class="zag">Данные обмена</p>
<font color=red>{$error}</font>
<form name="exchange" method=POST action="./order.php" onSubmit="return CheckData();">
<input type="hidden" name="curr_from" value="{$curr_from}">
<input type="hidden" name="curr_to" value="{$curr_to}">
<input type="hidden" name="amount" value="{$amount}">
<table width="400" border="0" cellpadding="0" cellspacing="0" >
  <tr> 
    <td class="header2">Вы отдаете:</td>
  </tr>
  <tr> 
    <td class="datasum">{$amount} {$row_from->name} 
		{if ($row_from->metal_id > 0)}
		<br><small>или {$grams} гр.</small>
		{/if}
		<br> <hr size="1" noshade> </td>
  </tr>
  <tr> 
    <td class="celpad2"><!-- <strong>Реквизиты счета для снятия суммы</strong> --></td>
  </tr>

  <tr> 
  <td class="celpad2">
	{$in_content}
  </td>
  </tr>
  <tr>
    <td class="celpad2"><hr size="1" noshade></td>
  </tr>
  <tr> 
    <td class="header2">Вы получаете:</td>
  </tr>
  <tr> 
    <td class="datasum">{$values_arr.out_amount} {$row_to->name}<br>
	{if $row_to->metal_id > 0}
	 <small>или {$grams_get} гр.</small>
	{/if}
	<br> <hr size="1" noshade> </td>
  </tr>
  <tr> 
    <td class="celpad2"><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"><input name="{$purse|lower}_wm_purse" type="text" class="cells2" value="{$wm_purse}">&nbsp;*</td>
			</tr>
			<tr> 
				<td width="120" class="celpad2">WM идентификатор:<br><small>не обязательно</small></td>
				<td class="celpad2"><input name="wm_id" type="text" class="cells2" value="{$wm_id}"></td>
			</tr>
		
	{elseif ($row_to->code eq "YMR" or $row_to->code eq "PCE" or $row_to->code eq "PCD" or $row_to->code eq "PCL" or $row_to->code eq "PCH")}

			<tr> 
				<td width="120" class="celpad2"><nobr>Номер счета:</nobr></td>
				<td class="celpad2"><input name="{$var_name}" type="text" class="cells2" value="{$var_val}"></td>
			</tr>	
	
	{elseif ($row_to->code == "EPD")}
	
			<tr> 
          <td width="120" class="celpad2">Номер карты:</td>
          <td class="celpad2"><input name="eport_serial" type="text" class="cells2" value="{$eport_serial}" 
    					 maxlength=6 size=7>&nbsp;<input name="eport_number" type="text" class="cells2" value="{$eport_number}" maxlength=5 size=6>
		 			</td>
		 </tr>

	{elseif ($row_to->code == "EGOLD" or $row_to->code == "ESILVER" or $row_to->code == "EPLATINUM" or $row_to->code == "EPALLADIUM")}
	
	 	 <tr> 
          <td width="120" class="celpad2"><nobr>Номер счета в E-Gold:</nobr></td>
          <td class="celpad2"><input name="egold_account" type="text" class="cells2" value="{$egold_account}"></td>
        </tr>
				
	{/if}

	
	<!-- {$out_content} -->
	<tr> 
        <td width="140" class="celpad2">Ваш E-mail:<br><small>не обязательно</small></td>
        <td class="celpad2"><input name="user_email" type="text" class="cells2" value="{$user_email}"></td>
    </tr>

	</table></td>
  </tr>
  <tr> 
    <td height="40" class="celpad2" >
		<table>
			<tr>
				<td><input type="button" class="button1" value="< Назад" onClick="document.location.href='./currency.php?currency={$curr_to}';" title="Вернуться назад"></td>
				<td width=5>&nbsp;</td>
				<td><input type="button" class="button1" value="Сбросить форму" onClick="document.forms('exchange').reset();" title="Очистить содержание формы"></td>
				<td width=5>&nbsp;</td>
				<td><input name="submit" type="submit" class="button1" value="Продолжить >>" title="Оплатить заказ"></td>

			</tr>
		</table>
	<br>Операция действительна только в течении 30 минут! 
    </td>
  </tr>
</table><br>
</form>


{include file="smartex_footer.tpl"}