From c327468bd82cb2b42754d8c6e56e24f92c7add3d Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Tue, 7 Apr 2026 22:52:15 +0000 Subject: [PATCH] V0.8.1 --- scmining.php | 48 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 42 insertions(+), 6 deletions(-) diff --git a/scmining.php b/scmining.php index c7e49e1..75862ee 100644 --- a/scmining.php +++ b/scmining.php @@ -53,9 +53,19 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $mining_id = (int)$_POST['mining_id']; $scan_value = (int)$_POST['scan_value']; $max_occurrence = (int)$_POST['max_occurrence']; + $can_manual = isset($_POST['can_manual']) ? 1 : 0; + $can_land = isset($_POST['can_land']) ? 1 : 0; + $can_space = isset($_POST['can_space']) ? 1 : 0; - $stmt = $db->prepare("UPDATE tbl_scmining SET cl_scmining_scan_value = :scan, cl_scmining_max_occurrence = :occ WHERE cl_scmining_id = :id"); - $stmt->execute(['scan' => $scan_value, 'occ' => $max_occurrence, 'id' => $mining_id]); + $stmt = $db->prepare("UPDATE tbl_scmining SET cl_scmining_scan_value = :scan, cl_scmining_max_occurrence = :occ, cl_scmining_can_manual = :manual, cl_scmining_can_land = :land, cl_scmining_can_space = :space WHERE cl_scmining_id = :id"); + $stmt->execute([ + 'scan' => $scan_value, + 'occ' => $max_occurrence, + 'manual' => $can_manual, + 'land' => $can_land, + 'space' => $can_space, + 'id' => $mining_id + ]); auth_flash_set('success', 'Valeurs mises à jour.'); header('Location: scmining.php'); @@ -283,6 +293,26 @@ $current_session_user = $_SESSION['user'] ?? ''; .search-result-meta { display: block; font-size: 0.75rem; color: #888; } .val-input { width: 100px; text-align: center; } + + .recovery-options { + display: flex; + flex-direction: column; + gap: 2px; + font-size: 0.75rem; + text-align: left; + } + .recovery-options label { + display: flex; + align-items: center; + gap: 5px; + cursor: pointer; + color: #ccc; + } + .recovery-options label:hover { color: var(--primary); } + .recovery-options input[type="checkbox"] { + accent-color: var(--primary); + cursor: pointer; + } @@ -326,7 +356,6 @@ $current_session_user = $_SESSION['user'] ?? '';

Aucun objet non listé trouvé.

@@ -359,6 +388,7 @@ $current_session_user = $_SESSION['user'] ?? ''; Aperçu Nom / Type + Récupération Valeur Scan Max Occur. Actions @@ -366,10 +396,9 @@ $current_session_user = $_SESSION['user'] ?? ''; - Aucun minéral configuré. + Aucun minéral configuré. @@ -384,6 +413,13 @@ $current_session_user = $_SESSION['user'] ?? ''; + +
+ + + +
+ @@ -413,4 +449,4 @@ $current_session_user = $_SESSION['user'] ?? '';
- \ No newline at end of file +