= 70 ? 'success' : ($cache_hit_rate >= 40 ? 'warning' : 'danger'); // Compact statistics row echo '
'; $stats = [ ['label' => __("Callsigns Tested"), 'value' => $calls_tested, 'color' => 'primary'], ['label' => __("Execution Time"), 'value' => round($execution_time, 2) . 's', 'color' => 'info'], ['label' => __("Potential Wrong Zones"), 'value' => count($result), 'color' => 'warning'], ['label' => __("Cache Hits"), 'value' => $cache_hits, 'color' => 'success'], ['label' => __("Cache Misses"), 'value' => $cache_misses, 'color' => 'info'], ['label' => __("Hit Rate"), 'value' => $cache_hit_rate . '%', 'color' => $cache_color], ]; foreach ($stats as $stat) { echo '
' . $stat['value'] . '
' . $stat['label'] . '
'; } echo '
'; // Get Date format if($this->session->userdata('user_date_format')) { // If Logged in and session exists $custom_date_format = $this->session->userdata('user_date_format'); } else { // Get Default date format from /config/wavelog.php $custom_date_format = $this->config->item('qso_date_format'); } if ($result) { ?>
#
' . htmlspecialchars($qso['callsign']) . ''; ?>