This commit is contained in:
lopar 2018-12-28 00:49:50 +02:00
parent 7452bb8353
commit c5abbd1eac

View File

@ -924,7 +924,7 @@ function showinf_pers($id, $battle = 0, $me = 0) //FIXME 37 запросов! Т
function item($image,$bg_color = '#AAA',$border_color = '#EEE')
{
return '<img src="' . $image . '" style="width: 48px; height: 48px; border-radius: 5px; border: 1px solid rgba(0, 0, 0, 0.25);
padding: 7px; display: inline-block; background-repeat: no-repeat; margin: 1px;
padding: 7px; display: inline-block; background-repeat: no-repeat;
background-color: ' . $bg_color . '; background-image: radial-gradient(circle, ' . $border_color . ', ' . $bg_color . ');">';
}
@ -954,10 +954,8 @@ HTML;
$r .= '</div>';
$r .= setHP2($user['hp'], $user['maxhp']);
$r .= "<table style='width: 100%; text-align: center;'><tr><td colspan=3 width=100%>";
$r .= '</td></tr>';
$r .= '<tr><td width=62 valign=top><table width=100% cellspacing=0 cellpadding=0><tr><td>';
$r .= "<table style='width: 100%; text-align: center;'>";
$r .= '<tr><td width=62 valign=top><table width=100%><tr><td>';
if ($user['sergi'] > 0) {
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `text`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['sergi'])->fetch_assoc();
@ -1040,7 +1038,7 @@ HTML;
$r .= '</table></td>';
$r .= '<td valign=top><img src="i/shadow/' . $user['shadow'] . '" width="76" height="209" /></td><td width="62" valign=top><table width=100% cellspacing=0 cellpadding=0><tr><td>';
$r .= '<td valign=top><img src="i/shadow/' . $user['shadow'] . '" width="100" height="250" /></td><td width="62" valign=top><table width=100%><tr><td>';
if ($user['helm'] > 0) {
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `text`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['helm'])->fetch_assoc();