tests
This commit is contained in:
parent
321a332612
commit
bc7c8ec828
@ -61,7 +61,7 @@ class User
|
||||
$dressed_item[$row['dressed_slot']] = $row;
|
||||
}
|
||||
$di = new DressedItems();
|
||||
$di->getSlots($this->id);
|
||||
|
||||
// for ($i = 1; $i <= 12; $i++) {
|
||||
// echo sprintf('<div class="slot-%s">', $i);
|
||||
// if (isset($dressed_item[$i])) {
|
||||
@ -82,10 +82,10 @@ class User
|
||||
if (isset($di->getSlots()[$i])) {
|
||||
if (!$isBattle && $isMain) {
|
||||
$itemString = '<a href="?edit=1&drop=%s"><img src="/i/sh/%s" class="item-wrap-normal" alt="%s" title="%s"></a>';
|
||||
echo sprintf($itemString, $i, $di->getSlots()[$i]['image'], $di->getSlots()[$i]['name'], $di->getSlots()[$i]['name']);
|
||||
echo sprintf($itemString, $i, $di->getSlots($this->id)[$i]['image'], $di->getSlots($this->id)[$i]['name'], $di->getSlots($this->id)[$i]['name']);
|
||||
} else {
|
||||
$itemString = '<img src="/i/sh/%s" class="item-wrap-normal tip" alt="%s"><span class="tiptext"><strong>%s</strong></span>';
|
||||
echo sprintf($itemString, $di->getSlots()[$i]['image'], $di->getSlots()[$i]['name'], $di->getSlots()[$i]['name']);
|
||||
echo sprintf($itemString, $di->getSlots($this->id)[$i]['image'], $di->getSlots($this->id)[$i]['name'], $di->getSlots($this->id)[$i]['name']);
|
||||
}
|
||||
} else {
|
||||
echo sprintf('<img src="/i/sh/noitem.png" class="item-wrap-normal" title="Пустой слот [%s]" alt="Пустой слот [%s]">', $i, $i);
|
||||
|
Loading…
Reference in New Issue
Block a user