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/cloudlog.php $custom_date_format = $this->config->item('qso_date_format'); } ?> call] = $line->vucc_grids; } } if( $this->input->post('band') != NULL) { if ($activators_array) { $result = write_activators($activators_array, $vucc_grids, $custom_date_format, $this->input->post('band'), $this->input->post('leogeo')); } else { echo ''; } } ?>
# Callsign Count Gridsquares Show QSOs Show Map '; $activators = array(); foreach ($activators_array as $line) { $call = $line->call; $grids = $line->grids; $count = $line->count; if (array_key_exists($line->call, $vucc_grids)) { foreach(explode(',', $vucc_grids[$line->call]) as $vgrid) { if(!strpos($grids, $vgrid)) { $grids .= ','.$vgrid; } } $grids = str_replace(' ', '', $grids); $grid_array = explode(',', $grids); sort($grid_array); $count = count($grid_array); $grids = implode(', ', $grid_array); } array_push($activators, array($count, $call, $grids)); } arsort($activators); foreach ($activators as $line) { echo ' ' . $i++ . ' '.$line[1].' '.$line[0].' '.$line[2].' '; } echo ''; }