tests
This commit is contained in:
parent
93a9ef420e
commit
d0497b1606
@ -2,15 +2,10 @@
|
|||||||
|
|
||||||
class ShopItem extends Item
|
class ShopItem extends Item
|
||||||
{
|
{
|
||||||
public $count;
|
|
||||||
public $razdel;
|
|
||||||
public $ecost;
|
|
||||||
public $zeton;
|
|
||||||
public $onlyone;
|
|
||||||
public $shshop;
|
|
||||||
|
|
||||||
public function printInfo()
|
public function printInfo()
|
||||||
{
|
{
|
||||||
|
if (self::printControls(true)) $this->maxdur = 0;
|
||||||
|
|
||||||
parent::printBaseInfo();
|
parent::printBaseInfo();
|
||||||
parent::printRequirements();
|
parent::printRequirements();
|
||||||
parent::printBonuses();
|
parent::printBonuses();
|
||||||
@ -25,6 +20,7 @@ class ShopItem extends Item
|
|||||||
if ($sell) {
|
if ($sell) {
|
||||||
$btnPrice = "Продать";
|
$btnPrice = "Продать";
|
||||||
$btnLink = "/shop.php?sell={$this->id}&rnd=".mt_rand();
|
$btnLink = "/shop.php?sell={$this->id}&rnd=".mt_rand();
|
||||||
|
$this->maxdur = 0;
|
||||||
} else {
|
} else {
|
||||||
$btnPrice = "Купить за " . intval($this->cost) . " кр.";
|
$btnPrice = "Купить за " . intval($this->cost) . " кр.";
|
||||||
$btnLink = "/shop.php?buy={$this->id}&rnd=" . mt_rand();
|
$btnLink = "/shop.php?buy={$this->id}&rnd=" . mt_rand();
|
||||||
|
1
test.php
1
test.php
@ -46,7 +46,6 @@ foreach ($iteminfo as $ii) {
|
|||||||
echo "<tr><td bgcolor='#d3d3d3'>";
|
echo "<tr><td bgcolor='#d3d3d3'>";
|
||||||
$ii->printImage();
|
$ii->printImage();
|
||||||
$ii->printControls();
|
$ii->printControls();
|
||||||
echo $this->printControls();
|
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
echo "<td bgcolor='#d3d3d3'>";
|
echo "<td bgcolor='#d3d3d3'>";
|
||||||
$ii->printInfo();
|
$ii->printInfo();
|
||||||
|
Loading…
Reference in New Issue
Block a user