Ver Fonte

Spalte ID entfernt

erdo há 18 horas atrás
pai
commit
8bfb1ede76
1 ficheiros alterados com 6 adições e 15 exclusões
  1. 6 15
      gesamtliste.php

+ 6 - 15
gesamtliste.php

@@ -32,7 +32,6 @@ if ($filterTypId > 0) { $params['tid'] = $filterTypId; }
 $stmt->execute($params);
 $inventory = $stmt->fetchAll();
 
-// Stammdaten für Filter-Dropdowns
 $spieler = $pdo->query("SELECT * FROM spieler ORDER BY name ASC")->fetchAll();
 $typen = $pdo->query("SELECT * FROM game_typen ORDER BY bezeichnung ASC")->fetchAll();
 ?>
@@ -43,7 +42,6 @@ $typen = $pdo->query("SELECT * FROM game_typen ORDER BY bezeichnung ASC")->fetch
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <title>EXIT - Gesamtliste</title>
     <style>
-        /* CSS bleibt identisch zu deinem Stand, nur kleine Ergänzung für Form-Layout */
         :root { 
             --bg: #f8f9fa; --card: #ffffff; --text: #333; --border: #ddd; 
             --header-bg: #2c3e50; --header-text: #ffffff; --row-border: #eee;
@@ -75,7 +73,7 @@ $typen = $pdo->query("SELECT * FROM game_typen ORDER BY bezeichnung ASC")->fetch
         .lvl-Einsteiger { background: #27ae60; } 
         .lvl-Fortgeschrittene { background: #2980b9; } 
         .lvl-Profi { background: #c0392b; }
-        .lvl-unknown, .badge-unknown { background: #f39c12; }
+        .lvl-unknown { background: #f39c12; }
 
         .st-badge { padding: 5px 12px; border-radius: 15px; font-size: 11px; font-weight: bold; }
         .st-besitzt { background: #d4edda; color: #155724; }
@@ -117,17 +115,16 @@ $typen = $pdo->query("SELECT * FROM game_typen ORDER BY bezeichnung ASC")->fetch
             </select>
         </form>
         
-        <input type="text" id="searchInput" placeholder="Titel, EAN oder Level suchen..." onkeyup="filterTable()">
+        <input type="text" id="searchInput" placeholder="Suchen..." onkeyup="filterTable()">
     </div>
 
     <table id="exitTable">
         <thead>
             <tr>
-                <th onclick="sortTable(0)">ID ↕</th>
-                <th>Bild</th>
-                <th onclick="sortTable(2)">Titel ↕</th>
-                <th onclick="sortTable(3)">Level ↕</th>
-                <th onclick="sortTable(4)">Bestwert ↕</th>
+                <th style="width: 70px;">Bild</th>
+                <th onclick="sortTable(1)">Titel ↕</th>
+                <th onclick="sortTable(2)">Level ↕</th>
+                <th onclick="sortTable(3)">Bestwert ↕</th>
                 <th>Besitzstatus</th>
             </tr>
         </thead>
@@ -137,7 +134,6 @@ $typen = $pdo->query("SELECT * FROM game_typen ORDER BY bezeichnung ASC")->fetch
                 $typ = (empty($row['typ_name']) || strtolower($row['typ_name']) == 'unknown') ? 'Unbekannt' : $row['typ_name'];
             ?>
             <tr>
-                <td>#<?= $row['id'] ?></td>
                 <td>
                     <img src="<?= htmlspecialchars($row['bild_url']) ?>" 
                          class="game-thumb" 
@@ -183,7 +179,6 @@ $typen = $pdo->query("SELECT * FROM game_typen ORDER BY bezeichnung ASC")->fetch
 <img id="hoverPreview" class="image-preview" src="">
 
 <script>
-    // Theme, Modal und Sortier-Funktionen bleiben wie gehabt...
     function toggleTheme() {
         const isDark = document.documentElement.classList.toggle('dark-theme');
         localStorage.setItem('theme', isDark ? 'dark' : 'light');
@@ -228,10 +223,6 @@ $typen = $pdo->query("SELECT * FROM game_typen ORDER BY bezeichnung ASC")->fetch
                 y = rows[i + 1].getElementsByTagName("TD")[n];
                 let valX = x.innerText.toLowerCase().trim();
                 let valY = y.innerText.toLowerCase().trim();
-                if (n === 0) {
-                    valX = parseInt(valX.replace('#', '')) || 0;
-                    valY = parseInt(valY.replace('#', '')) || 0;
-                }
                 if (dir == "asc") { if (valX > valY) { shouldSwitch = true; break; } }
                 else if (dir == "desc") { if (valX < valY) { shouldSwitch = true; break; } }
             }