This commit is contained in:
lopar 2018-12-27 22:17:54 +02:00
parent 0ec7f9c4ce
commit 70bfb3e36c

View File

@ -958,7 +958,8 @@ HTML;
$r .= '<img class="tooltip" src="i/sh/' . $dress['img'] . '" width=60 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=60 height=20 title="<b>' . $dress['name'] . "</b>" . ((!empty($dress['text'])) ? "<br><i>{$dress['text']}</i>" : "") . '" />';
} }
} else { } else {
$r .= '<img src="i/w1.gif" width="60" height="20" class="tooltip" title="Пустой слот Серьги" />'; #$r .= '<img src="i/w1.gif" width="60" height="20" class="tooltip" title="Пустой слот Серьги" />';
$r .= '<img src="i/1x1.gif" style="width: 64px; height: 64px; border: 1px solid silver; border-radius: 5px;">';
} }
$r .= '</td></tr><tr><td>'; $r .= '</td></tr><tr><td>';
@ -971,7 +972,8 @@ HTML;
$r .= '<img class="tooltip" src="i/sh/' . $dress['img'] . '" width=60 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=60 height=20 title="<b>' . $dress['name'] . "</b>" . ((!empty($dress['text'])) ? "<br><i>{$dress['text']}</i>" : "") . '" />';
} }
} else { } else {
$r .= '<img src="i/w2.gif" width=60 height=20 class="tooltip" title="Пустой слот Ожерелье" />'; #$r .= '<img src="i/w2.gif" width=60 height=20 class="tooltip" title="Пустой слот Ожерелье" />';
$r .= '<img src="i/1x1.gif" style="width: 64px; height: 64px; border: 1px solid silver; border-radius: 5px;">';
} }
$r .= '</td></tr><tr><td>'; $r .= '</td></tr><tr><td>';
@ -985,7 +987,7 @@ HTML;
} }
} else { } else {
#$r .= '<img class=\'tooltip\' src="i/w3.gif" width=60 height=60 title="Пустой слот Оружие" />'; #$r .= '<img class=\'tooltip\' src="i/w3.gif" width=60 height=60 title="Пустой слот Оружие" />';
$r .= '<img src="i/1x1.gif" title="Пустой слот" style="width: 64px; height: 64px; background: #dedede; border: 1px solid silver; border-radius: 5px;" class="tooltip">'; $r .= '<img src="i/1x1.gif" style="width: 64px; height: 64px; border: 1px solid silver; border-radius: 5px;">';
} }
$r .= '</td></tr><tr><td>'; $r .= '</td></tr><tr><td>';
@ -1021,7 +1023,8 @@ HTML;
$r .= '<img class="tooltip" src="i/sh/' . $dress['img'] . '" width=60 height=80 title="<b>' . $dress['name'] . "</b>" . ((!empty($dress['text'])) ? "<br><i>{$dress['text']}</i>" : "") . '" />'; $r .= '<img class="tooltip" src="i/sh/' . $dress['img'] . '" width=60 height=80 title="<b>' . $dress['name'] . "</b>" . ((!empty($dress['text'])) ? "<br><i>{$dress['text']}</i>" : "") . '" />';
} }
} else { } else {
$r .= '<img class=\'tooltip\' src="i/w4.gif" width=60 height=80 title="Пустой слот Броня" />'; #$r .= '<img class=\'tooltip\' src="i/w4.gif" width=60 height=80 title="Пустой слот Броня" />';
$r .= '<img src="i/1x1.gif" style="width: 64px; height: 64px; border: 1px solid silver; border-radius: 5px;">';
} }
$r .= '</td></tr><tr><td><table cellspacing=0 cellpadding=0><tr><td>'; $r .= '</td></tr><tr><td><table cellspacing=0 cellpadding=0><tr><td>';
@ -1034,7 +1037,8 @@ HTML;
$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>" : "") . '" />';
} }
} else { } else {
$r .= '<img class=\'tooltip\' src="i/w6.gif" width=20 height=20 title="Пустой слот Кольцо" />'; #$r .= '<img class=\'tooltip\' src="i/w6.gif" width=20 height=20 title="Пустой слот Кольцо" />';
$r .= '<img src="i/1x1.gif" style="width: 64px; height: 64px; border: 1px solid silver; border-radius: 5px;">';
} }
$r .= '</td><td>'; $r .= '</td><td>';
@ -1047,7 +1051,8 @@ HTML;
$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>" : "") . '" />';
} }
} else { } else {
$r .= '<img class=\'tooltip\' src="i/w6.gif" width=20 height=20 title="Пустой слот Кольцо" />'; #$r .= '<img class=\'tooltip\' src="i/w6.gif" width=20 height=20 title="Пустой слот Кольцо" />';
$r .= '<img src="i/1x1.gif" style="width: 64px; height: 64px; border: 1px solid silver; border-radius: 5px;">';
} }
$r .= '</td><td>'; $r .= '</td><td>';
@ -1060,7 +1065,8 @@ HTML;
$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>" : "") . '" />';
} }
} else { } else {
$r .= '<img class=\'tooltip\' src="i/w6.gif" width=20 height=20 title="Пустой слот Кольцо" />'; #$r .= '<img class=\'tooltip\' src="i/w6.gif" width=20 height=20 title="Пустой слот Кольцо" />';
$r .= '<img src="i/1x1.gif" style="width: 64px; height: 64px; border: 1px solid silver; border-radius: 5px;">';
} }
$r .= '</td></tr></table></td></tr></table></td>'; $r .= '</td></tr></table></td></tr></table></td>';
@ -1076,7 +1082,8 @@ HTML;
$r .= '<img class="tooltip" src="i/sh/' . $dress['img'] . '" width=60 height=60 title="<b>' . $dress['name'] . "</b>" . ((!empty($dress['text'])) ? "<br><i>{$dress['text']}</i>" : "") . '" />'; $r .= '<img class="tooltip" src="i/sh/' . $dress['img'] . '" width=60 height=60 title="<b>' . $dress['name'] . "</b>" . ((!empty($dress['text'])) ? "<br><i>{$dress['text']}</i>" : "") . '" />';
} }
} else { } else {
$r .= '<img class=\'tooltip\' src="i/w9.gif" width=60 height=60 title="Пустой слот Шлем" />'; #$r .= '<img class=\'tooltip\' src="i/w9.gif" width=60 height=60 title="Пустой слот Шлем" />';
$r .= '<img src="i/1x1.gif" style="width: 64px; height: 64px; border: 1px solid silver; border-radius: 5px;">';
} }
$r .= '</td></tr><tr><td>'; $r .= '</td></tr><tr><td>';
@ -1089,7 +1096,8 @@ HTML;
$r .= '<img class="tooltip" src="i/sh/' . $dress['img'] . '" width=60 height=40 title="<b>' . $dress['name'] . "</b>" . ((!empty($dress['text'])) ? "<br><i>{$dress['text']}</i>" : "") . '" />'; $r .= '<img class="tooltip" src="i/sh/' . $dress['img'] . '" width=60 height=40 title="<b>' . $dress['name'] . "</b>" . ((!empty($dress['text'])) ? "<br><i>{$dress['text']}</i>" : "") . '" />';
} }
} else { } else {
$r .= '<img class=\'tooltip\' src="i/w11.gif" width=60 height=40 alt="Пустой слот Перчатки" />'; #$r .= '<img class=\'tooltip\' src="i/w11.gif" width=60 height=40 alt="Пустой слот Перчатки" />';
$r .= '<img src="i/1x1.gif" style="width: 64px; height: 64px; border: 1px solid silver; border-radius: 5px;">';
} }
$r .= '</td></tr><tr><td>'; $r .= '</td></tr><tr><td>';
@ -1102,7 +1110,8 @@ HTML;
$r .= '<img class="tooltip" src="i/sh/' . $dress['img'] . '" width=60 height=60 title="<b>' . $dress['name'] . "</b>" . ((!empty($dress['text'])) ? "<br><i>{$dress['text']}</i>" : "") . '" />'; $r .= '<img class="tooltip" src="i/sh/' . $dress['img'] . '" width=60 height=60 title="<b>' . $dress['name'] . "</b>" . ((!empty($dress['text'])) ? "<br><i>{$dress['text']}</i>" : "") . '" />';
} }
} else { } else {
$r .= '<img class=\'tooltip\' src="i/w10.gif" width=60 height=60 title="Пустой слот Щит" />'; #$r .= '<img class=\'tooltip\' src="i/w10.gif" width=60 height=60 title="Пустой слот Щит" />';
$r .= '<img src="i/1x1.gif" style="width: 64px; height: 64px; border: 1px solid silver; border-radius: 5px;">';
} }
$r .= '</td></tr><tr><td>'; $r .= '</td></tr><tr><td>';
@ -1115,7 +1124,8 @@ HTML;
$r .= '<img class="tooltip" src="i/sh/' . $dress['img'] . '" width=60 height=40 title="<b>' . $dress['name'] . "</b>" . ((!empty($dress['text'])) ? "<br><i>{$dress['text']}</i>" : "") . '" />'; $r .= '<img class="tooltip" src="i/sh/' . $dress['img'] . '" width=60 height=40 title="<b>' . $dress['name'] . "</b>" . ((!empty($dress['text'])) ? "<br><i>{$dress['text']}</i>" : "") . '" />';
} }
} else { } else {
$r .= '<img class=\'tooltip\' src="i/w12.gif" width=60 height=40 title="Пустой слот Oбувь" />'; #$r .= '<img class=\'tooltip\' src="i/w12.gif" width=60 height=40 title="Пустой слот Oбувь" />';
$r .= '<img src="i/1x1.gif" style="width: 64px; height: 64px; border: 1px solid silver; border-radius: 5px;">';
} }
$data = db::c()->query('SELECT * FROM `online` WHERE `date` >= ?i AND `id` = ?i', time() - 60, $user['id'])->fetch_assoc(); $data = db::c()->query('SELECT * FROM `online` WHERE `date` >= ?i AND `id` = ?i', time() - 60, $user['id'])->fetch_assoc();
@ -1171,7 +1181,7 @@ HTML;
if ($user['klan']) { if ($user['klan']) {
$clann = db::c()->query('SELECT `name`, `glava` FROM `clans` WHERE `id` = ?i', $user['klan'])->fetch_assoc(); $clann = db::c()->query('SELECT `name`, `glava` FROM `clans` WHERE `id` = ?i', $user['klan'])->fetch_assoc();
$r .= $clann['name']; $r .= $clann['name'];
if ($clann['glava'] == $user['id']) $r .= " - <span style='color:teal;'>Глава клана</span>"; if ($clann['glava'] == $user['id']) $r .= " - <span style='color:teal;'>Глава клана</span><br>";
elseif (!empty($user['status'])) $r .= " - " . $user['status'] . "<br>"; elseif (!empty($user['status'])) $r .= " - " . $user['status'] . "<br>";
} }