This commit is contained in:
Flatlogic Bot 2026-04-07 21:25:05 +00:00
parent 897ca94a63
commit ef21d381a0
2 changed files with 35 additions and 15 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 745 KiB

View File

@ -147,6 +147,13 @@ if ($edit_id > 0) {
--border-glow: rgba(162, 155, 120, 0.25);
--danger: #ff4d4d;
--success: #00ff88;
/* Rarity Colors */
--rarity-L: #ff8000; /* Legendary - Orange */
--rarity-E: #a335ee; /* Epic - Purple */
--rarity-R: #0070dd; /* Rare - Blue */
--rarity-U: #1eff00; /* Uncommon - Green */
--rarity-C: #ffffff; /* Common - White */
}
@font-face {
@ -288,7 +295,7 @@ if ($edit_id > 0) {
.modern-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.modern-table th { text-align: left; padding: 1rem; font-size: 0.8rem; text-transform: uppercase; color: var(--primary); opacity: 0.7; }
.modern-table td { padding: 1rem; background: rgba(255, 255, 255, 0.03); border-top: 1px solid rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.modern-table td { padding: 1rem; background: rgba(255, 255, 255, 0.03); border-top: 1px solid rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: top; }
.modern-table td:first-child { border-left: 1px solid rgba(255, 255, 255, 0.05); border-radius: 8px 0 0 8px; }
.modern-table td:last-child { border-right: 1px solid rgba(255, 255, 255, 0.05); border-radius: 0 8px 8px 0; }
.modern-table tr:hover td { background: rgba(162, 155, 120, 0.05); }
@ -314,9 +321,17 @@ if ($edit_id > 0) {
.badge { padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.7rem; text-transform: uppercase; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }
.item-name { color: var(--primary); font-weight: bold; display: block; }
.item-meta { font-size: 0.75rem; color: #888; }
.item-about { font-size: 0.8rem; color: #ccc; margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-name { color: var(--primary); font-weight: bold; display: block; font-size: 1rem; margin-bottom: 4px; }
.item-meta { font-size: 0.75rem; color: #888; display: block; }
.item-uuid { font-size: 0.8rem; color: #aaa; font-family: monospace; word-break: break-all; }
.item-about-cell { font-size: 0.85rem; color: #ccc; line-height: 1.4; }
/* Rarity Classes */
.rarity-L { color: var(--rarity-L) !important; text-shadow: 0 0 10px rgba(255, 128, 0, 0.3); }
.rarity-E { color: var(--rarity-E) !important; text-shadow: 0 0 10px rgba(163, 53, 238, 0.3); }
.rarity-R { color: var(--rarity-R) !important; text-shadow: 0 0 10px rgba(0, 112, 221, 0.3); }
.rarity-U { color: var(--rarity-U) !important; text-shadow: 0 0 10px rgba(30, 255, 0, 0.3); }
.rarity-C { color: var(--rarity-C) !important; }
.nav-tabs { display: flex; gap: 1rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border-glow); padding-bottom: 1rem; }
.nav-tabs a { text-decoration: none; color: #888; text-transform: uppercase; font-size: 0.9rem; transition: color 0.3s; }
@ -424,31 +439,36 @@ if ($edit_id > 0) {
<table class="modern-table">
<thead>
<tr>
<th>Détails</th>
<th>Rareté</th>
<th style="text-align: right;">Actions</th>
<th style="width: 30%;">Nom</th>
<th style="width: 30%;">UUID</th>
<th>About</th>
<th style="text-align: right; width: 100px;">Actions</th>
</tr>
</thead>
<tbody>
<?php if (empty($items_list)): ?>
<tr><td colspan="3" style="text-align: center; padding: 3rem; color: #666;">Aucun objet trouvé.</td></tr>
<tr><td colspan="4" style="text-align: center; padding: 3rem; color: #666;">Aucun objet trouvé.</td></tr>
<?php else: ?>
<?php foreach ($items_list as $item): ?>
<?php
$rarityClass = '';
if ($item['cl_scobjs_rarity']) {
$rarityClass = 'rarity-' . $item['cl_scobjs_rarity'];
}
?>
<tr>
<td>
<span class="item-name"><?php echo htmlspecialchars($item['cl_scobjs_name']); ?></span>
<span class="item-name <?php echo $rarityClass; ?>"><?php echo htmlspecialchars($item['cl_scobjs_name']); ?></span>
<span class="item-meta">
<?php echo htmlspecialchars($item['cl_scobjs_type']); ?>
<?php if($item['cl_scobjs_subtype']) echo " / " . htmlspecialchars($item['cl_scobjs_subtype']); ?>
</span>
<div class="item-about"><?php echo htmlspecialchars($item['cl_scobjs_about']); ?></div>
</td>
<td>
<?php if($item['cl_scobjs_rarity']): ?>
<span class="badge" style="border-color: var(--primary); color: var(--primary);"><?php echo htmlspecialchars($item['cl_scobjs_rarity']); ?></span>
<?php else: ?>
<span class="badge" style="opacity: 0.3;">N/A</span>
<?php endif; ?>
<span class="item-uuid"><?php echo htmlspecialchars($item['cl_scobjs_uuid']); ?></span>
</td>
<td class="item-about-cell">
<?php echo nl2br(htmlspecialchars($item['cl_scobjs_about'])); ?>
</td>
<td style="text-align: right;">
<a href="scitems.php?edit=<?php echo $item['cl_scobjs_id']; ?>&page=<?php echo $page; ?>&search=<?php echo urlencode($search); ?>" class="btn-modern btn-mini">Editer</a>