view куклы не пригодился

This commit is contained in:
lopar 2020-07-05 01:22:48 +03:00
parent 1e55456f6f
commit 3f614f35d2
3 changed files with 0 additions and 96 deletions

View File

@ -68,7 +68,6 @@ EMPTY_SLOT;
while ($row = $dressed_items->fetch_assoc()) {
$dressed_item[$row['dressed_slot']] = $row;
}
//include_once 'views/user-info-doll.php';
echo <<<USERINFO
<div style="text-align: center">
<?php if ($this->align): ?>

View File

@ -53,7 +53,6 @@ if (empty($user->id)): ?>
<tr>
<td style="width: 250px; vertical-align: top;">
<?php
//include_once 'views/user-info-doll.php';
try {$user->showUserInfo();} catch (Exception $e) {echo "<div class='private'>Ошибка классового генератора персонажа showUserInfo(): {$e}</div>";}
if (!empty($user->married)): ?>
<a href="inf.php?<?= $user->married ?>" target=_blank>

View File

@ -1,94 +0,0 @@
<?php
function showItemInSlot($slot = 0)
{
global $dressed_item;
if (isset($dressed_item[$slot])) {
echo <<<SLOT
<img src="/i/sh/{$dressed_item[$slot]['image']}" class="item-wrap-normal tip" alt="Слот [{$slot}]">
<span class="tiptext"><strong>{$dressed_item[$slot]['name']}</strong></span>
SLOT;
} else {
echo <<<EMPTY_SLOT
<img src="/i/sh/noitem.png" class="item-wrap-normal" title="Пустой слот [{$slot}]" alt="Пустой слот [{$slot}]>
EMPTY_SLOT;
}
}
?>
<div style="text-align: center">
<?php if (!empty($user->align)): ?>
<img src="/i/align_<?= $user->align ?>.png" alt="Склонность">
<?php endif; ?>
<?php if ($user->block): ?>
<span class="private"><s><?= $user->login ?></s></span>
<?php else: ?>
<strong><?= $user->login ?></strong>
<?php endif; ?>
<?php if (!empty($user->clan)): ?>
<img src="/i/clan/<?= $user->clan ?>.png" alt="<?= $user->clan ?>">
<?php endif; ?>
</div>
<div style="width: 100%; height: 16px; background: #ffaaff; overflow: hidden; border-radius: 3px; font-size: 14px; text-align: center;">
добавить здоровье 🤔
</div>
<table style="width: 100%; text-align: center;">
<tr>
<td width=62 valign=top>
<table width=100%>
<tr>
<td>
<?= showItemInSlot(1) ?>
</td>
</tr>
<tr>
<td>
<?= showItemInSlot(2) ?>
</td>
</tr>
<tr>
<td>
<?= showItemInSlot(3) ?>
</td>
</tr>
<tr>
<td>
<?= showItemInSlot(4) ?>
</td>
</tr>
</table>
</td>
<td valign=top>
<img src="/i/shadow/<?= $user->shadow ?>" onerror=" this.src = '/i/shadow/0.gif';">
</td>
<td width="62" valign=top>
<table width=100%>
<tr>
<td>
<?= showItemInSlot(5) ?>
</td>
</tr>
<tr>
<td>
<?= showItemInSlot(6) ?>
</td>
</tr>
<tr>
<td>
<?= showItemInSlot(7) ?>
</td>
</tr>
<tr>
<td>
<?= showItemInSlot(8) ?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div style="text-align: center">
<?= showItemInSlot(9) ?>
<?= showItemInSlot(10) ?>
<?= showItemInSlot(11) ?>
</div>