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