make class greater:modificators
This commit is contained in:
parent
729fa148d7
commit
04b7c33e9d
@ -24,8 +24,9 @@ class ShopItem extends Item
|
||||
*/
|
||||
public function printControls()
|
||||
{
|
||||
$btnPrice = 'Купить за' . intval($this->cost) . 'кр.';
|
||||
echo <<<BTN
|
||||
<p><input type="button" style="background: darkgrey; border: 1px solid grey; border-radius: 2px;" value="Купить"
|
||||
<p><input type="button" style="background: darkgrey; border: 1px solid grey; border-radius: 2px;" value="{$btnPrice}"
|
||||
onclick="location='/admin.php'">
|
||||
BTN;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user