поехала строка в ЛД

This commit is contained in:
lopar
2020-07-06 00:35:25 +03:00
parent 484b2e4f8a
commit 2a0f454343
3 changed files with 6 additions and 5 deletions

View File

@@ -187,7 +187,7 @@ EMPTY_SLOT;
echo '</div><!-- user-info-container-lower -->';
if ($this->watcherIsAdmin || $this->watcherIsModerator) {
echo '<div class="secretInfo">';
echo '<div class="secret-info">';
$infoString = '<b>Личное дело</b><br>ИД Игрока: %s<br> ДР Игрока: %s<br> IP Регистрации: %s';
echo sprintf($infoString, $this->id, date('d.m.Y', strtotime($this->borndate)), $this->ip);
if ($this->watcherIsAdmin) {
@@ -196,10 +196,12 @@ EMPTY_SLOT;
echo sprintf($infoString, $this->room, $this->money, $this->Bank->money, $this->experience, $this->stat_points, $this->email, $this->session_id);
}
$this->UserLogs = new UserLogModel($this->id);
echo '<div class="secret-info-user-log">';
while ($userLogRow = $this->UserLogs->getUserLog()->fetch_object()) {
echo sprintf('<code>%s</code><br>', date("d.m.Y H:i ", strtotime($userLogRow->date)) . $userLogRow->text);
}
echo '</div>';
echo '</div><!-- secret-info-user-log -->';
echo '</div><!-- secret-info -->';
}
}