diff --git a/classes/User.php b/classes/User.php
index 4662097..6fdf8eb 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -67,6 +67,7 @@ EMPTY_SLOT;
public function showUserInfo()
{
+ $starSign = star_sign($this->borndate);
$dressed_item = [];
$dressed_items = db::c()->query('SELECT * FROM inventory WHERE owner_id = ?i AND dressed_slot > 0', $this->id);
while ($row = $dressed_items->fetch_assoc()) {
@@ -184,7 +185,7 @@ USERINFO;
';
+ echo '
';
+ if (isset($dressed_item[1])) {
+ $this->showItem($dressed_item[1]);
+ } else {
+ $this->showItem(1);
+ }
+ echo '
';
+ echo '
';
+ if (isset($dressed_item[2])) {
+ $this->showItem($dressed_item[2]);
+ } else {
+ $this->showItem(2);
+ }
+ echo '
';
+ echo '
';
+ if (isset($dressed_item[3])) {
+ $this->showItem($dressed_item[3]);
+ } else {
+ $this->showItem(3);
+ }
+ echo '
';
+ echo '
';
+ if (isset($dressed_item[4])) {
+ $this->showItem($dressed_item[4]);
+ } else {
+ $this->showItem(4);
+ }
+ echo '
';
+ echo '
';
+ if (isset($dressed_item[5])) {
+ $this->showItem($dressed_item[5]);
+ } else {
+ $this->showItem(5);
+ }
+ echo '
';
+ echo '
';
+ if (isset($dressed_item[6])) {
+ $this->showItem($dressed_item[6]);
+ } else {
+ $this->showItem(6);
+ }
+ echo '
';
+ echo '
';
+ if (isset($dressed_item[7])) {
+ $this->showItem($dressed_item[7]);
+ } else {
+ $this->showItem(7;
+ }
+ echo '
';
+ echo '
';
+ if (isset($dressed_item[8])) {
+ $this->showItem($dressed_item[8]);
+ } else {
+ $this->showItem(8);
+ }
+ echo '
';
+ echo '
';
+ if (isset($dressed_item[9])) {
+ $this->showItem($dressed_item[9]);
+ } else {
+ $this->showItem(9);
+ }
+ if (isset($dressed_item[10])) {
+ $this->showItem($dressed_item[10]);
+ } else {
+ $this->showItem(10);
+ }
+ if (isset($dressed_item[11])) {
+ $this->showItem($dressed_item[11]);
+ } else {
+ $this->showItem(11);
+ }
+ echo '
';
+ echo '
';
+ echo sprintf('
', $this->shadow, $this->login);
+ echo '
';
+ echo '
';
+ echo sprintf('
', star_sign($this->borndate));
+ echo '
';
+ echo '
';
+ echo <<level}
+Сила {$this->strength}
+Ловкость {$this->dexterity}
+Интуиция {$this->intuition}
+Выносливость {$this->endurance}
+Интеллект {$this->intelligence}
+Мудрость {$this->wisdom}
+Находится в {$this->getRoomName($this->room)}
+USERINFO;
+ echo '
';
+ echo '
';
}
}
\ No newline at end of file
diff --git a/css/main.css b/css/main.css
index ce2099b..8def498 100644
--- a/css/main.css
+++ b/css/main.css
@@ -300,10 +300,11 @@ span.error {
color: #8F0000;
}
-img.tip+span.tiptext {
+img.tip + span.tiptext {
display: none
}
-img.tip:hover+span.tiptext {
+
+img.tip:hover + span.tiptext {
border: #c0c0c0 1px dotted;
padding: 5px 20px 5px 5px;
display: block;
@@ -315,4 +316,66 @@ img.tip:hover+span.tiptext {
position: absolute;
top: 10px;
text-decoration: none
+}
+/* Отображение информации о персонаже в inf.php (класс User.php) */
+div.user-info-container {
+ display: grid;
+ grid-template-columns: 100px 200px 100px auto 100px;
+ grid-template-rows: repeat(4, 100px) auto;
+ grid-gap: 10px;
+}
+
+div.user-info-container > div.slot-1,
+div.user-info-container > div.slot-2,
+div.user-info-container > div.slot-3,
+div.user-info-container > div.slot-4 {
+ grid-column: 1;
+}
+
+div.user-info-container > div.slot-5,
+div.user-info-container > div.slot-6,
+div.user-info-container > div.slot-7,
+div.user-info-container > div.slot-8 {
+ grid-column: 3;
+}
+
+div.user-info-container > div.slot-1,
+div.user-info-container > div.slot-5 {
+ grid-row: 1;
+}
+
+div.user-info-container > div.slot-2,
+div.user-info-container > div.slot-6 {
+ grid-row: 2;
+}
+
+div.user-info-container > div.slot-3,
+div.user-info-container > div.slot-7 {
+ grid-row: 3;
+}
+
+div.user-info-container > div.slot-4,
+div.user-info-container > div.slot-8 {
+ grid-row: 4;
+}
+
+div.user-info-container > div.slot-image {
+ grid-column: 2;
+ grid-row: 1 / 5;
+}
+
+div.user-info-container > div.slot-lower {
+ grid-column: 1 / 4;
+ grid-row: 5;
+ text-align: center;
+}
+
+div.user-info-container > div.user-info {
+ grid-column: 4;
+ grid-row: 1 / 6;
+}
+
+div.user-info-container > div.user-signs {
+ grid-column: 5;
+ grid-row: 1 / 6;
}
\ No newline at end of file
diff --git a/inf.php b/inf.php
index 36d4595..51825c8 100644
--- a/inf.php
+++ b/inf.php
@@ -50,7 +50,7 @@ if (empty($user->id)): ?>
die(file_get_contents('customuserdata/' . $user['id']));
}
try {
- $user->showUserInfo();
+ $user->showUserInfo2();
} catch (Exception $e) {
echo "