tests
This commit is contained in:
parent
6121b648ee
commit
745f461d64
@ -1142,9 +1142,43 @@ HTML;
|
|||||||
$r .= '</td></tr></table></td></tr></table>';
|
$r .= '</td></tr></table></td></tr></table>';
|
||||||
|
|
||||||
$r .= '<div style="text-align: center">';
|
$r .= '<div style="text-align: center">';
|
||||||
$r .= item('i/1x1.gif','#6D0329','#F94B89');
|
|
||||||
$r .= item('i/1x1.gif','#6D0329','#F94B89');
|
if ($user['r1'] > 0) {
|
||||||
$r .= item('i/1x1.gif','#AAA','#EEE');
|
$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>" : "") . '" />';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
#$r .= '<img class=\'tooltip\' src="i/w6.gif" width=20 height=20 title="Пустой слот Кольцо" />';
|
||||||
|
$r .= item('i/1x1.gif');
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($user['r2'] > 0) {
|
||||||
|
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `text`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['r2'])->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>" : "") . '" />';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
#$r .= '<img class=\'tooltip\' src="i/w6.gif" width=20 height=20 title="Пустой слот Кольцо" />';
|
||||||
|
$r .= item('i/1x1.gif');
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($user['r3'] > 0) {
|
||||||
|
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `text`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['r3'])->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>" : "") . '" />';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
#$r .= '<img class=\'tooltip\' src="i/w6.gif" width=20 height=20 title="Пустой слот Кольцо" />';
|
||||||
|
$r .= item('i/1x1.gif');
|
||||||
|
}
|
||||||
|
|
||||||
$r .= '</div>';
|
$r .= '</div>';
|
||||||
|
|
||||||
#$ru_1 = show_rune(1, $user['id']);
|
#$ru_1 = show_rune(1, $user['id']);
|
||||||
|
Loading…
Reference in New Issue
Block a user