Перенос разрозненных файлов в фабрику. Утилизация неиспользуемых функций. #49
This commit is contained in:
@@ -427,7 +427,12 @@ class InfoBox
|
||||
|
||||
$hptop = 0;
|
||||
$lh = [0 => 'hp_none', 1 => 1];
|
||||
$lh[1] = floor((0 + $sn['hpNow']) / (0 + $sn['hpAll']) * 120);
|
||||
|
||||
if ($sn['hpNow'] == 0 || $sn['hpAll'] == 0) {
|
||||
$lh[1] = 0;
|
||||
} else {
|
||||
$lh[1] = floor((0 + $sn['hpNow']) / (0 + $sn['hpAll']) * 120);
|
||||
}
|
||||
if ($lh[1] > 0) {
|
||||
$lh[0] = 'hp_1';
|
||||
}
|
||||
@@ -544,7 +549,7 @@ class InfoBox
|
||||
if ($pb != '') {
|
||||
$pb = '<div align="center" style="width:246px;"><!-- blocked -->' . $pb . '</div>';
|
||||
}
|
||||
$rt[0] .= '<div id="lgnthm" style="width:246px; padding:0 3px 0 3px;" align="center">' . $this->user->getLogin($u['id']) . '</div>' . $pb . '
|
||||
$rt[0] .= '<div id="lgnthm" style="width:246px; padding:0 3px 0 3px;" align="center">' . User::getLogin($u['id']) . '</div>' . $pb . '
|
||||
<div class="personag" style="width:240px; background-color:#CCC; padding:3px; margin-right:11px; border-bottom:1px solid #666666; border-right:1px solid #666666; border-left:1px solid #FFFFFF; border-top:1px solid #FFFFFF;">
|
||||
<table width="240" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user