File size: 4.95Kb
{include file="smartex_header.tpl"}
{literal}
<script language="JavaScript">
<!--
var is_follow = true;
function CheckForm(){
for (counter = 0; counter < document.forms[0].currency.length; counter++){
if (document.forms[0].currency[counter].checked){
return true;
}
}
alert("Выберите валюту, которую хотите получить, пожалуйста!");
return false;
}
function course(id,height){
window.open("courses.php?id="+id, "course"+id,"width=520,height="+height+",menubar=0,left=50,resizable=1,scrollbars=1,status=0,toolbar=0,location=0")
}
//-->
</SCRIPT>
</script>
{/literal}
<table border=0 width="100%" cellspacing="0" cellpadding="0" ><tr><td>
<form name="curr_form" action="/currency.php" method="POST" onSubmit="return CheckForm();" style="position: relative; top:0 px;left:0px;">
<table width="100%" 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 width="270" background="imgs/yell_bg.gif" bgcolor="#eeb400" class="zag_td">Платежная система </td>
<td width="36" background="imgs/yell_bg.gif" bgcolor="#eeb400"><img src="imgs/yell_r2.gif" width="10" height="30"><img src="imgs/yell_l.gif" width="26" height="30"></td>
<td background="imgs/yell_bg.gif" bgcolor="#eeb400" class="zag_td">Запас средств</td>
<td background="imgs/yell_bg.gif" bgcolor="#eeb400" class="zag_td">Выбрать</td>
<td width="10" background="imgs/yell_bg.gif" bgcolor="#eeb400"><img src="imgs/yell_r.gif" width="10" height="30"></td>
</tr>
<tr><td colspan=6><table width="100%" border="0" cellspacing="0" cellpadding="0">
{foreach from=$ex_currencies item=currency key=num}
{if $currency.type neq "pincode"}
<tr>
<td class="color{if $num%2==0}1{else}2{/if}" onMouseOver="this.style.backgroundColor='#fcf4d5';" onMouseOut="this.style.backgroundColor='{if $num%2=="0"}#fefbf0{else}#f4f0e1{/if}';" onclick="if(is_follow)document.location.href='./currency.php?currency={$currency.id}';">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30" align="center">{$currency.c_img} </td>
<td width="100" valign="top" class="kurs2name" class="valrow">{$currency.l_img} </td>
<td width="180">{$currency.name}
{*
<br><a onMouseOver="is_follow=false;" onMouseOut="is_follow=true;" href="#" onClick="course('{$currency.id}',{$currency.height});return false;" title="Посмотреть курсы обмена на {$currency.name}">курсы обмена</a>
*}
</td>
<td align="center">{$currency.rest}</td>
<td width="90" align="center"><input name="currency" type="radio" value="{$currency.id}" {if $num==0}checked="1"{/if}></td>
</tr>
</table>
</td>
</tr>
{/if}
{/foreach}
</table></td></tr>
<tr>
<td height="40" align="center" colspan=6><input name="Submit" type="submit" class="button" value="Получить выбранную валюту!" title="Приступить к операции обмена">
</td></tr>
</table>
</td>
</tr>
</form>
</td></tr></table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:10px; margin-left:5px; ">
<tr>
<td class="zag_td2"><span class="zag">Продажа ПИН-кодов</span></td>
</tr>
</table>
{if $pinc_size > 0}
<TABLE class=table cellSpacing=0 cellPadding=0 width=100%>
<TBODY>
<TR>
<TH>Пин-код</TH>
<TH align=middle>Цена</TH>
<TH align=middle>Количество</TH>
<TH align=middle>Заплатить</TH>
<TH align=middle> </TH>
</TR>
{foreach from=$ex_currencies_pinc item=currency}
{if $currency.type == "pincode"}
<form action="exchange.php" method="GET">
<TR>
<TD class="moneynames" align="center"><input type="hidden" name="to" value="{$currency.id}"><strong><NOBR><a href="{$currency.url}" target="_new">{$currency.name}</a></NOBR></strong></TD>
<TD align=middle>{$currency.sell_price} {$currency.c_code}</TD>
<TD align=middle class="hisrory">{$currency.rest}</TD>
<TD width="155" align=middle class="hisrory"><select name="from" class="select">
{foreach from=$ex_currencies item=curr}
{if $curr.type != "pincode"}
<option value="{$curr.id}">{$curr.topay} {$curr.name}</option>
{/if}
{/foreach}
</select></TD>
<TD width="50" align=middle><input name="Submit2" class="button2" type="submit" value="Купить"></TD>
</TR>
</form>
{/if}
{/foreach}
</TBODY>
</TABLE>
{/if}
{include file="smartex_footer.tpl"}