Просмотр файла templates/smartex_currency.tpl

Размер файла: 3.57Kb
{include file="smartex_header.tpl" js_foo=1}


<table width=555  border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="26" background="imgs/yell_bg.gif" bgcolor="#eeb400"><img src="imgs/yell_l.gif" width="26" height="30"></td>
                  <td background="imgs/yell_bg.gif" bgcolor="#eeb400" class="zag_td">Получение {$curr_name}</td>
                  <td width="10" background="imgs/yell_bg.gif" bgcolor="#eeb400"><img src="imgs/yell_r.gif" width="10" height="30"></td>
                  </tr>
        </table>

<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td width="40%" height="35" align="left" bgcolor="#f4f0e1" class="tableheadpad">Отдадите</td>
    <td align="left" bgcolor="#f4f0e1" class="tableheadpad">Получите</td>
    <td width="30" align="left" bgcolor="#f4f0e1" >&nbsp;</td>
  </tr>

{foreach from=$currs item=curr}

<!-- FORM # id_{$curr.id} -->
<form name="id_{$curr.id}" action="./exchange.php" method="GET" onSubmit="return Exchange('id_{$curr.id}', '{$curr.id}', '{$curr.name}');">
<input type="hidden" name="from" value="{$curr.id}">
<input type="hidden" name="to" value="{$curr_id}">
<tr class="celpad1" bgcolor="{$curr.bgcolor}"> 
    <td height="30" align="left" > 
      <input name="amount_in" type="text" class="cells2" size="5" value="0" onchange="in_out('id_{$curr.id}', '{$curr.id}', '{$curr.code}')" onkeyup="in_out('id_{$curr.id}', '{$curr.id}', '{$curr.code}')" onfocusout="in_out('id_{$curr.id}', '{$curr.id}', '{$curr.code}')" onactivate="in_out('id_{$curr.id}', '{$curr.id}', '{$curr.code}')" ondeactivate="in_out('id_{$curr.id}', '{$curr.id}', '{$curr.code}')">
      {$curr.name} </td>
    <td align="left" > <input name="out" value=0 type="text" class="cells2" size="5" onchange="out_in('id_{$curr.id}', '{$curr.id}','{$curr.code}')" onkeyup="out_in('id_{$curr.id}', '{$curr.id}','{$curr.code}')" onfocusout="out_in('id_{$curr.id}', '{$curr.id}','{$curr.code}')" onactivate="out_in('id_{$curr.id}', '{$curr.id}','{$curr.code}')" ondeactivate="out_in('id_{$curr.id}', '{$curr.id}','{$curr.code}')">
      {$curr_name}</td>
    
	
	<td width="75" align="center" valign="middle" rowspan="2">
	<input type="image" src="images/changebut.gif" width="55" height="25" title="Обменять {$curr.name} на {$curr_name}" >
{*
	id_{$curr.id}<br />
	code_to<input name="code_to" type="text" class="cells2" size="5" value="0" />
	amount<input name="amount" type="text" class="cells2" size="5" value="0" />
	in_val<input name="in_val" type="text" class="cells2" size="5" value="0" />
	inP_id<input name="inP_id" type="text" class="cells2" size="5" value="0" />
	id_id<input name="id_id" type="text" class="cells2" size="5" value="0" />
	code_id<input name="code_id" type="text" class="cells2" size="5" value="0" />
*}
    </td>

  </tr>
</form>
<tr class="celpad1" bgcolor="{$curr.bgcolor}"> 
<td colspan="2">
	{if $curr.ex_course >= $curr.ex_course_back}
		1 {$curr.name} &nbsp; = &nbsp; <strong>{$curr.ex_course}</strong> {$curr_name} 
	{else}
		<strong>{$curr.ex_course_back}</strong> {$curr.name} &nbsp; = &nbsp; 1 {$curr_name} 
	{/if}
</td>
</tr>
<!-- /FORM # id_{$curr.id} -->

{/foreach}

</table>
<table>
<tr>
	<td><input type="button" class="button" value="< Назад" onClick="document.location.href='/';" title="Вернуться назад"></td>
	<td width=5>&nbsp;</td>
	<td><input type="button" class="button" value="Сбросить форму" onClick="ResetForms(); return false;" title="Очистить содержание всех форм"></td>

</tr>
</table>


{include file="smartex_footer.tpl"}