clan gui fix
This commit is contained in:
parent
b24112ad7a
commit
ac12d808d5
12
clan.php
12
clan.php
@ -69,12 +69,11 @@ $clan_memberlist = db::c()->query('SELECT `id`, `login`, `status`, `level`, `roo
|
|||||||
<div><?php if (!empty($status)) err($status); ?></div>
|
<div><?php if (!empty($status)) err($status); ?></div>
|
||||||
<table style="width: 100%">
|
<table style="width: 100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="width: 50%; vertical-align: top;" rowspan=2>
|
<p style="width: 50%; vertical-align: top;" rowspan=2>
|
||||||
<h3><img src="./i/klan/<?= $klan['short'] ?>.gif"><?= $klan['name'] ?></h3>
|
<h3><img src="./i/klan/<?= $klan['short'] ?>.gif"><?= $klan['name'] ?></h3>
|
||||||
Количество рейтинговых очков клана: <span style="color: #428f21; font-weight: bolder;"><?= $klan['rating'] ?></span><br>
|
Количество рейтинговых очков клана: <span style="color: #428f21; font-weight: bolder;"><?= $klan['rating'] ?></span><br>
|
||||||
|
|
||||||
<?php if ($polno[$user['id']][0] == 1): ?>
|
<?php if ($polno[$user['id']][0] == 1): ?>
|
||||||
<hr>
|
|
||||||
<div>
|
<div>
|
||||||
<span id="add_member">
|
<span id="add_member">
|
||||||
<input type="submit" onclick="use('add_member')" value="Принять в клан">
|
<input type="submit" onclick="use('add_member')" value="Принять в клан">
|
||||||
@ -90,7 +89,6 @@ $clan_memberlist = db::c()->query('SELECT `id`, `login`, `status`, `level`, `roo
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ($polno[$user['id']][1] == 1 OR $klan['glava'] == $user['id']): ?>
|
<?php if ($polno[$user['id']][1] == 1 OR $klan['glava'] == $user['id']): ?>
|
||||||
<hr>
|
|
||||||
<div>
|
<div>
|
||||||
<span id="edit_status">
|
<span id="edit_status">
|
||||||
<input type="submit" onclick="use('edit_status')" value="Редактировать статус">
|
<input type="submit" onclick="use('edit_status')" value="Редактировать статус">
|
||||||
@ -99,7 +97,6 @@ $clan_memberlist = db::c()->query('SELECT `id`, `login`, `status`, `level`, `roo
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ($klan['glava'] == $user['id']): ?>
|
<?php if ($klan['glava'] == $user['id']): ?>
|
||||||
<hr>
|
|
||||||
<div>
|
<div>
|
||||||
<span id="change_owner">
|
<span id="change_owner">
|
||||||
<input type="submit" onclick="use('change_owner')" value="Сменить главу клана">
|
<input type="submit" onclick="use('change_owner')" value="Сменить главу клана">
|
||||||
@ -119,7 +116,7 @@ $clan_memberlist = db::c()->query('SELECT `id`, `login`, `status`, `level`, `roo
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if($klan['zamok'] == 1): ?>
|
<?php if($klan['zamok'] == 1): ?>
|
||||||
<hr>
|
<p>
|
||||||
<?php if($klan['zbor'] < 25000): ?>
|
<?php if($klan['zbor'] < 25000): ?>
|
||||||
Сбор средств на постройку кланового замка:
|
Сбор средств на постройку кланового замка:
|
||||||
<?= showProgressBar($klan['zbor'], 25000) ?>
|
<?= showProgressBar($klan['zbor'], 25000) ?>
|
||||||
@ -204,10 +201,7 @@ $clan_memberlist = db::c()->query('SELECT `id`, `login`, `status`, `level`, `roo
|
|||||||
while ($row = $clan_memberlist->fetch_assoc()) {
|
while ($row = $clan_memberlist->fetch_assoc()) {
|
||||||
if ($row['id'] == $klan['glava']) $row['status'] = '<b style="color: #008080;">Глава клана</b>';
|
if ($row['id'] == $klan['glava']) $row['status'] = '<b style="color: #008080;">Глава клана</b>';
|
||||||
if (empty($row['status'])) $row['status'] = 'Боец';
|
if (empty($row['status'])) $row['status'] = 'Боец';
|
||||||
if ($row['online'] > 0) {
|
if ($row['online'] > 0) echo '🟢 ';
|
||||||
echo '<div style="color: gray;">';
|
|
||||||
echo '💡 <A HREF="javascript:top.AddToPrivate(\'', nick::id($row['id'])->short(), '\', top.CtrlPress)" target=refreshed><img src="i/lock.gif"></A>';
|
|
||||||
} else echo '<div>';
|
|
||||||
echo nick::id($row['id'])->full();
|
echo nick::id($row['id'])->full();
|
||||||
echo ' — ', $row['status'];
|
echo ' — ', $row['status'];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user