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'); } ?> ' . __("Nothing found!") . '
'; } ?> # ' . __("Callsign") . ' ' . __("#QSOs") . ' ' . __("First QSO") . ' ' . __("Last QSO") . ' ' . __("Show QSOs") . ' '; $activators = array(); foreach ($activators_array as $line) { $call = $line->call; $count = $line->count; $timestamp = strtotime($line->first_qso); $first_qso = date($custom_date_format, $timestamp); $timestamp = strtotime($line->last_qso); $last_qso = date($custom_date_format, $timestamp); array_push($activators, array($count, $call, $first_qso, $last_qso)); } arsort($activators); foreach ($activators as $line) { echo ' ' . $i++ . ' ' . $line[1] . ' ' . $line[0] . ' ' . $line[2] . ' ' . $line[3] . ' '; } echo ''; }