From d6b853b4eb665f6a45658221099e6a9b687258fe Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 28 Aug 2025 09:44:24 +0200 Subject: [PATCH] Add improved mini charts --- scripts/species_tools.php | 139 +++++++++++++++++++++++++++++++++++--- 1 file changed, 131 insertions(+), 8 deletions(-) diff --git a/scripts/species_tools.php b/scripts/species_tools.php index cf1d39b..c034ffc 100644 --- a/scripts/species_tools.php +++ b/scripts/species_tools.php @@ -194,13 +194,14 @@ $result = $db->query($sql); Common Name Scientific Name - Identifications - Max Confidence - Last Seen - Probability - Confirmed - Excluded - Whitelisted + Stats + Identifications + Max Confidence + Last Seen + Probability + Confirmed + Excluded + Whitelisted Delete @@ -223,6 +224,9 @@ $result = $db->query($sql); $is_excluded = in_array($identifier, $excluded_species, true); $is_whitelisted = in_array($identifier, $whitelisted_species, true); + $comnamegraph = str_replace("'", "\'", $row['Com_Name']); + $chart_cell = sprintf("", $comnamegraph); + $confirm_cell = $is_confirmed ? "" : ""; @@ -238,6 +242,7 @@ $result = $db->query($sql); echo "" . "{$common_link}" . "{$scient}" + . "{$chart_cell}" . "{$count}" . "{$max_confidence}%" . "{$lastSeenDisplay}" @@ -251,7 +256,7 @@ $result = $db->query($sql); - +