<?php

if (isset($data['firstCurrency'])) {
    $currentRate = $data;
} else {
    if (isset($_GET['Data'])) {
        $currentRate = $_GET['Data'];
    }
}
if (isset($currentRate['firstCurrency'])) {
    $rateInfo = api::rateInfo($currentRate['firstCurrency'], $currentRate['secondCurrency']);
    $maxPrice = $rateInfo['bid'];
    $minPrice = $rateInfo['ask'];
}
$id = $currentRate['firstCurrency'] . $currentRate['secondCurrency'];
?>
<div class="title greenMark"><?php 
print Core::translateToCurrentLocale('Special kinds of deals');
?>
:</div>
<form class="specialtrade">
    <input type="hidden" name="firstCurrency" value="<?php 
print $currentRate['firstCurrency'];
?>
">
    <input type="hidden" name="secondCurrency" value="<?php 
print $currentRate['secondCurrency'];
?>
">
    <span class="trade-radio">
        <label><input name="type" class="buy" type="radio" value="buy" checked="checked" onclick='(function(obj){$(obj).closest("div").children().find(".Limit").val("BuyLimit"); $(obj).closest("div").children().find(".Stop").val("BuyStop"); $(obj).closest("div").children().find(".price").attr("placeholder","<?php