Redesign install system & New Medal System

Redesign install system & New Medal System

Artefact Holder			[#ARTEFACT]
WW Builder			[#WWBUILDER]
Great Store			[#GREATSTORE]
Wall Master			[#WALLMASTER]
Hero 99+			[#HERO100]
This commit is contained in:
novgorodschi catalin
2026-05-26 10:42:28 +03:00
parent 8c3ab3e5eb
commit fe19587c90
21 changed files with 907 additions and 1389 deletions
+58 -24
View File
@@ -19,44 +19,78 @@
#################################################################################
?>
<style>
.addv-box{width:100%;max-width:220px;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.04);font-family:system-ui}
.addv-box th{background:linear-gradient(135deg,#0f172a,#1e293b);color:#fff;padding:6px 10px;font-weight:600;text-align:center;font-size:13px}
.addv-box td{padding:6px 8px;border-bottom:1px solid #f1f5f9;font-size:12px;color:#334155}
.addv-box tr:last-child td{border-bottom:0;text-align:center}
.addv-sub{font-size:11px;color:#64748b;text-align:center;padding:4px 8px !important;border-bottom:0 !important}
.addv-box td:first-child{width:25%;color:#64748b;font-weight:500}
.addv-box input.fm{width:100%;padding:3px 6px;font-size:12px;border:1px solid #cbd5e1;border-radius:5px;box-sizing:border-box}
.addv-box input.fm:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 1px #3b82f6}
.btn-add{display:inline-block;padding:4px 14px;font-size:11px;font-weight:600;color:#fff;background:linear-gradient(180deg,#3b82f6,#2563eb);border:0;border-radius:5px;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.1);text-transform:uppercase;letter-spacing:.3px}
.punish-box{
width:100%;
max-width:none;
border-collapse:separate;
border-spacing:0;
background:#fff;
border:1px solid #e5e7eb;
border-radius:10px;
overflow:hidden;
box-shadow:0 2px 8px rgba(0,0,0,.04);
font-family:system-ui;
margin-bottom:12px;
}
.punish-box th{
background:linear-gradient(135deg,#0f172a,#1e293b);
color:#fff;
padding:8px 12px;
font-weight:600;
text-align:center;
font-size:14px
}
.punish-box td{padding:8px 10px;border-bottom:1px solid #f1f5f9;font-size:13px}
.punish-box tr:last-child td{border-bottom:0}
.punish-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.fm{padding:4px 8px;font-size:13px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;width:100%}
.fm:disabled{background:#f1f5f9;color:#94a3b8}
.btn-add{
padding:4px 14px;font-size:12px;font-weight:600;color:#fff;
background:linear-gradient(180deg,#3b82f6,#2563eb);
border:0;border-radius:6px;cursor:pointer;
box-shadow:0 1px 2px rgba(0,0,0,.1);text-transform:uppercase
}
.btn-add:hover{filter:brightness(1.05)}
.btn-add:disabled{opacity:.5;cursor:not-allowed}
.btn-add:disabled{opacity:.6;cursor:not-allowed}
.addv-label{color:#64748b;font-size:12px;text-align:center;display:block;margin-bottom:2px}
</style>
<form method="post" action="admin.php" style="margin:0">
<input name="action" type="hidden" value="addVillage">
<input name="uid" type="hidden" value="<?php echo $user['id'];?>">
<table class="addv-box">
<table class="punish-box">
<thead>
<tr><th>Add Village</th></tr>
</thead>
<tbody>
<tr><td class="addv-sub">Coordinates (X|Y)</td></tr>
<tr>
<td style="display:flex;align-items:center;gap:6px;border-bottom:0">
<span style="width:15px">X:</span>
<input name="x" class="fm" type="text" <?php if($_SESSION['access'] != ADMIN){ echo 'disabled'; } ?>>
</td>
<tr>
<td style="padding-bottom:4px;border-bottom:0">
<span class="addv-label">Coordinates (X|Y)</span>
</td>
</tr>
<tr>
<td style="display:flex;align-items:center;gap:6px;border-bottom:0;padding-top:0">
<span style="width:15px">Y:</span>
<input name="y" class="fm" type="text" <?php if($_SESSION['access'] != ADMIN){ echo 'disabled'; } ?>>
</td>
<td style="border-bottom:0;padding-top:0;padding-bottom:4px">
<div class="punish-row">
<label style="width:18px">X:</label>
<input name="x" class="fm" type="text" <?php if($_SESSION['access'] != ADMIN){ echo 'disabled'; } ?>>
</div>
</td>
</tr>
<tr>
<td style="padding-top:8px">
<button type="submit" class="btn-add" <?php if($_SESSION['access'] != ADMIN){ echo 'disabled'; } ?>>Add Village</button>
</td>
<td style="border-bottom:0;padding-top:0">
<div class="punish-row">
<label style="width:18px">Y:</label>
<input name="y" class="fm" type="text" <?php if($_SESSION['access'] != ADMIN){ echo 'disabled'; } ?>>
</div>
</td>
</tr>
<tr>
<td style="padding-top:8px">
<div class="punish-row" style="justify-content:center">
<button type="submit" class="btn-add" <?php if($_SESSION['access'] != ADMIN){ echo 'disabled'; } ?>>ADD VILLAGE</button>
</div>
</td>
</tr>
</tbody>
</table>
+8 -4
View File
@@ -97,10 +97,14 @@ if($deletion){
include("playermedals.tpl");
include ("villages.tpl"); ?>
<div class="player-bottom">
<div><?php include ('punish.tpl'); ?></div>
<div><?php include ('add_village.tpl'); ?></div>
</div>
<div style="display:grid;grid-template-columns:1fr;gap:12px;margin-top:12px;width:100%">
<div>
<?php include "punish.tpl"; ?>
</div>
<div>
<?php include "add_village.tpl"; ?>
</div>
</div>
<?php
$sql = "SELECT * FROM ".TB_PREFIX."banlist WHERE uid = ".(int) $id."";
+26 -7
View File
@@ -22,14 +22,33 @@
$active = $admin->getUserActive();
?>
<style>
.punish-box{width:100%;max-width:220px;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.04);font-family:system-ui}
.punish-box th{background:linear-gradient(135deg,#0f172a,#1e293b);color:#fff;padding:6px 10px;font-weight:600;text-align:center;font-size:13px}
.punish-box td{padding:6px 8px;border-bottom:1px solid #f1f5f9;font-size:12px}
.punish-box{
width:100%;
max-width:none; /* asta era problema */
border-collapse:separate;
border-spacing:0;
background:#fff;
border:1px solid #e5e7eb;
border-radius:10px;
overflow:hidden;
box-shadow:0 2px 8px rgba(0,0,0,.04);
font-family:system-ui;
margin-bottom:12px; /* spațiu între ele */
}
.punish-box th{
background:linear-gradient(135deg,#0f172a,#1e293b);
color:#fff;
padding:8px 12px;
font-weight:600;
text-align:center;
font-size:14px
}
.punish-box td{padding:8px 10px;border-bottom:1px solid #f1f5f9;font-size:13px}
.punish-box tr:last-child td{border-bottom:0}
.punish-row{display:flex;align-items:center;justify-content:space-between;gap:6px}
.punish-box select{padding:3px 6px;font-size:12px;border:1px solid #cbd5e1;border-radius:5px;background:#fff}
.punish-box label{display:flex;align-items:center;gap:5px;cursor:pointer}
.btn-ok{padding:3px 10px;font-size:11px;font-weight:600;color:#fff;background:linear-gradient(180deg,#22c55e,#16a34a);border:0;border-radius:5px;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.1);text-transform:uppercase}
.punish-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.punish-box select{padding:4px 8px;font-size:13px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;flex:1}
.punish-box label{display:flex;align-items:center;gap:6px;cursor:pointer;flex:1}
.btn-ok{padding:4px 12px;font-size:12px;font-weight:600;color:#fff;background:linear-gradient(180deg,#22c55e,#16a34a);border:0;border-radius:6px;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.1);text-transform:uppercase}
.btn-ok:hover{filter:brightness(1.05)}
</style>