echo $ar_dtype["NAME"]." - ".CurrencyFormat($ar_dtype["PRICE"], $ar_dtype["CURRENCY"], $ar_dtype["NAME"])."<br>";
$price = $ar_dtype["PRICE"];
if($price > 0){
$txt_price = CurrencyFormat($ar_dtype["PRICE"], $ar_dtype["CURRENCY"], $ar_dtype["NAME"]);
}
else{
$txt_price = 'Бесплатно';
}
echo $ar_dtype["NAME"] . " - " . $txt_price . '<br>';
$data = json_decode(file_get_contents('domain2.ru/getinfo.php?id=' . $_REQUEST['id']));
$data = [
'title' => $title,
'img' => $img,
'text' => $text
];
echo json_encode($data);
if($filter) {
$where = '';
foreach($filter as $key => $value)
{
$res = explode("=", $value);
if($where != ''){
$where .= ',';
}
$where .= '"'.$res[0].':=":"'.$res[1].'"';
}
$where = '{' . $where . '}';
echo $where
}
if ($_POST["param2"]) {
$ids = $_POST["param2"];
if ($_POST["param3"]) {
$ids = $_POST["param3"];