two type test

This commit is contained in:
lopar
2019-01-11 23:57:15 +02:00
parent 6181e30766
commit 6a791d528e
2 changed files with 29 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
<?php
class InventoryItem extends Item
{
public function printInfo()
{
parent::printBaseInfo();
parent::printRequirements();
parent::printBonuses();
}
/**
* Для кнопок управления под картинкой прелмета в зависимости от ситуации.
*/
public function printControls()
{
echo <<<BTN
<p><input type="button" style="background: darkgrey; border: 1px solid grey; border-radius: 2px;" value="Надеть"
onclick="location='/admin.php'">
<input type="button" style="background: brown; border: 1px solid grey; color: white border-radius: 2px;" value="Выбросить"
onclick="location='/admin.php'">
BTN;
}
}