clan gui fix

This commit is contained in:
lopar 2019-06-22 15:49:35 +03:00
parent 8828074940
commit 2f689be2f8

View File

@ -66,7 +66,8 @@ $clan_memberlist = db::c()->query('SELECT `id`, `login`, `status`, `level`, `roo
<meta charset="utf-8">
</head>
<body>
<div><button onclick="location.href='main.php'">Вернуться</button> <?php if (!empty($status)) err($status); ?></div>
<div>
<button onclick="location.href='main.php'">Вернуться</button> <?php if (!empty($status)) err($status); ?></div>
<table style="width: 100%">
<tr>
<td>
@ -192,20 +193,26 @@ $clan_memberlist = db::c()->query('SELECT `id`, `login`, `status`, `level`, `roo
<td style="vertical-align: top;">
<h3>Соклановцы</h3>
<div style="background-color: #eee; padding: 5px;">
<?php
while ($row = $clan_memberlist->fetch_assoc()) {
if ($row['id'] == $klan['glava']) $row['status'] = '<b style="color: #008080;">Глава клана</b>';
if (empty($row['status'])) $row['status'] = 'Боец';
if ($row['room'] > 500 AND $row['room'] < 561 AND $row['online'] > 0) $rrm = 'Башня смерти';
else $rrm = $rooms[$row['room']];
if ($row['online'] > 0) echo '🟢 ';
echo nick::id($row['id'])->full(), ' — ', $row['status'], ' <i style="font-size: smaller;">(', $rrm, ')</i><BR>';
}
?>
</div>
<table class="zebra">
<tr>
<th>Имя</th>
<th>Статус</th>
<th>Местонахождение</th>
</tr>
<tr>
<?php
while ($row = $clan_memberlist->fetch_assoc()):
if ($row['id'] == $klan['glava']) $row['status'] = '<b style="color: #008080;">Глава клана</b>';
if (empty($row['status'])) $row['status'] = 'Боец';
if ($row['room'] > 500 AND $row['room'] < 561 AND $row['online'] > 0) $rrm = 'Башня смерти';
else $rrm = $rooms[$row['room']];
?>
<td><?= nick::id($row['id'])->full() ?></td>
<td><?= $row['status'] ?></td>
<td><i style="font-size: smaller;"><?= $rrm ?></i></td>
<?php endwhile; ?>
</tr>
</table>
</td>
</tr>
</table>