id}&rnd=".mt_rand(); $this->maxdur = 0; } else { $btnPrice = "Купить за " . intval($this->cost) . " кр."; $btnLink = "/shop.php?buy={$this->id}&rnd=" . mt_rand(); } echo << BTN; if ($this->count > 0) echo "
В наличии: {$this->count} штук"; } }