mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-09 21:01:00 +00:00
Fix alliance view in ACP
Fix alliance view in ACP
This commit is contained in:
@@ -111,7 +111,11 @@ if($_GET['aid']) {
|
||||
|
||||
.members-table,.mini-table{width:100%;border-collapse:collapse;font-size:12px;}
|
||||
.members-table th,.mini-table th{background:#f0f0f0;padding:7px;border:1px solid #ddd;text-align:left;font-weight:bold;color:#333;}
|
||||
.members-table td,.mini-table td{padding:6px;border:1px solid #eee;}
|
||||
/* Culoarea era mostenita din tema intunecata a panoului - gri deschis pe
|
||||
fundalul alb al cardului, practic ilizibil. O fixam explicit. */
|
||||
.members-table td,.mini-table td{padding:6px;border:1px solid #eee;color:#2b2b2b;}
|
||||
.mini-table td a{color:#1f6fb2;}
|
||||
.mini-table tr:hover td{background:#f7f9fc;}
|
||||
.members-table tr:hover{background:#f9fff0;}
|
||||
.members-table td.ra{width:30px;text-align:center;color:#888;}
|
||||
.members-table td.on{width:24px;text-align:center;}
|
||||
@@ -237,7 +241,24 @@ if($_GET['aid']) {
|
||||
$sql = "SELECT * FROM ".TB_PREFIX."ali_log WHERE aid = $aid ORDER BY date DESC LIMIT 50";
|
||||
$result = mysqli_query($GLOBALS["link"], $sql);
|
||||
while($row = mysqli_fetch_assoc($result)){
|
||||
/**
|
||||
* Noutatile se pastreaza in baza de date ca simboluri, nu ca text:
|
||||
* {{MSG_NEWS_JOINED|%3Ca%20href%3D...}}
|
||||
* ca sa poata fi afisate in limba fiecarui cititor.
|
||||
*
|
||||
* BUG REPARAT: aici lipsea extinderea, deci se afisa simbolul brut.
|
||||
* Iar rescrierea linkurilor se facea INAINTE de extindere, cand ele
|
||||
* erau inca ascunse (codificate URL) in argumentele simbolului -
|
||||
* deci nu prindea nimic.
|
||||
*
|
||||
* Ordinea corecta: intai extindem, apoi rescriem linkurile.
|
||||
*/
|
||||
$comment = html_entity_decode($row['comment']);
|
||||
|
||||
if (function_exists('tz_expand_report')) {
|
||||
$comment = tz_expand_report($comment);
|
||||
}
|
||||
|
||||
$comment = preg_replace('/<a href="spieler\.php\?uid=(\d+)">([^<]+)<\/a>/i', '<a href="admin.php?p=player&uid=$1">$2</a>', $comment);
|
||||
$comment = strip_tags($comment, '<a>');
|
||||
echo '<tr><td>'.$comment.'</td><td>'.date('d.m.Y H:i', $row['date']).'</td></tr>';
|
||||
|
||||
@@ -23,18 +23,20 @@ $varmedal = $database->getProfileMedalAlly($_GET['aid']);
|
||||
|
||||
?>
|
||||
<style>
|
||||
.medal-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;font-family:system-ui;margin-bottom:12px}
|
||||
.medal-head{background:linear-gradient(135deg,#66CCFF,#66CCCC) !important;color:#fff !important;padding:6px 10px !important;font-size:13px}
|
||||
.medal-table{width:100%;border-collapse:collapse}
|
||||
.medal-table th{background:#f8fafc;padding:7px 6px;font-size:11px;color:#64748b;text-transform:uppercase;font-weight:600;border-bottom:1px solid #e5e7eb;text-align:center}
|
||||
.medal-table td{padding:8px 6px;font-size:12.5px;text-align:center;border-bottom:1px solid #f1f5f9;vertical-align:middle}
|
||||
.medal-table tr:last-child td{border-bottom:0}
|
||||
.medal-table img{width:28px;height:36px;display:block;margin:0 auto;border-radius:3px}
|
||||
.medal-del{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;background:#fef2f2;border-radius:5px;color:#dc2626;border:0;cursor:pointer}
|
||||
.medal-del:hover{background:#fee2e2}
|
||||
.medal-del svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2}
|
||||
.medal-empty{padding:20px;text-align:center;color:#94a3b8;font-size:13px}
|
||||
.medal-avg{background:#f8fafc;font-weight:600;color:#0f172a}
|
||||
.medal-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;font-family:system-ui;margin-bottom:12px;}
|
||||
.medal-head{background:linear-gradient(135deg,#66CCFF,#66CCCC) !important;color:#fff !important;padding:6px 10px !important;font-size:13px;}
|
||||
.medal-table{width:100%;border-collapse:collapse;}
|
||||
.medal-table th{background:#f8fafc;padding:7px 6px;font-size:11px;color:#000 !important;text-transform:uppercase;font-weight:600;border-bottom:1px solid #e5e7eb;text-align:center;}
|
||||
.medal-table td{padding:8px 6px;font-size:12.5px;text-align:center;border-bottom:1px solid #f1f5f9;vertical-align:middle;color:#000 !important;}
|
||||
.medal-table td a{color:#000 !important;}
|
||||
.medal-table tr:last-child td{border-bottom:0;}
|
||||
.medal-table img{width:28px;height:36px;display:block;margin:0 auto;border-radius:3px;}
|
||||
.medal-del{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;background:#fef2f2;border-radius:5px;color:#dc2626;border:0;cursor:pointer;}
|
||||
.medal-del:hover{background:#fee2e2;}
|
||||
.medal-del svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;}
|
||||
.medal-empty{padding:20px;text-align:center;color:#000 !important;font-size:13px;}
|
||||
.medal-avg{background:#f8fafc;font-weight:600;color:#000 !important;}
|
||||
.medal-avg td{color:#000 !important;}
|
||||
</style>
|
||||
|
||||
<div class="medal-card">
|
||||
|
||||
Reference in New Issue
Block a user