tests
This commit is contained in:
parent
9ce5aac842
commit
60d89e6abf
@ -1098,13 +1098,14 @@ HTML;
|
||||
$r .= '</td></tr></table></td></tr></table>';
|
||||
|
||||
$r .= '<div style="text-align: center">';
|
||||
|
||||
// TODO Не забыть включить отображение всплывашки с названием предмета!
|
||||
if ($user['r1'] > 0) {
|
||||
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `text`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['r1'])->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && ($battle && $me)) {
|
||||
$r .= showhrefmagic($dress);
|
||||
} else {
|
||||
$r .= '<img class="tooltip" src="i/sh/' . $dress['img'] . '" width=20 height=20 title="<b>' . $dress['name'] . "</b>" . ((!empty($dress['text'])) ? "<br><i>{$dress['text']}</i>" : "") . '" />';
|
||||
#$r .= '<img class="tooltip" src="i/sh/' . $dress['img'] . '" width=20 height=20 title="<b>' . $dress['name'] . "</b>" . ((!empty($dress['text'])) ? "<br><i>{$dress['text']}</i>" : "") . '" />';
|
||||
$r .= item('i/sh/' . $dress['img'])." ";
|
||||
}
|
||||
} else {
|
||||
#$r .= '<img class=\'tooltip\' src="i/w6.gif" width=20 height=20 title="Пустой слот Кольцо" />';
|
||||
@ -1116,7 +1117,8 @@ HTML;
|
||||
if ($dress['includemagicdex'] && ($battle && $me)) {
|
||||
$r .= showhrefmagic($dress);
|
||||
} else {
|
||||
$r .= '<img class="tooltip" src="i/sh/' . $dress['img'] . '" width=20 height=20 title="<b>' . $dress['name'] . "</b>" . ((!empty($dress['text'])) ? "<br><i>{$dress['text']}</i>" : "") . '" />';
|
||||
#$r .= '<img class="tooltip" src="i/sh/' . $dress['img'] . '" width=20 height=20 title="<b>' . $dress['name'] . "</b>" . ((!empty($dress['text'])) ? "<br><i>{$dress['text']}</i>" : "") . '" />';
|
||||
$r .= item('i/sh/' . $dress['img'])." ";
|
||||
}
|
||||
} else {
|
||||
#$r .= '<img class=\'tooltip\' src="i/w6.gif" width=20 height=20 title="Пустой слот Кольцо" />';
|
||||
|
Loading…
Reference in New Issue
Block a user