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');
                        }
                        ?>
                         
                        config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE || ($this->config->item('show_time'))) { ?>
                        COL_TIME_ON); echo date($custom_date_format, $timestamp); $timestamp = strtotime($row->COL_TIME_ON); $time_on = date('H:i', $timestamp); echo " at ".$time_on; ?>
                        COL_TIME_OFF); $time_off = date('H:i', $timestamp); if ($time_on != $time_off) { echo " - ".$time_off; } ?>
                         
                        
                        COL_TIME_ON); echo date($custom_date_format, $timestamp); ?> 
                        
                     
                    
                         
                        COL_CALL)); ?>       
                     
                    
                         
                        COL_BAND; ?> 
                     
                    config->item('display_freq') == true) { ?>
                    
                         
                        frequency->hz_to_mhz($row->COL_FREQ); ?> 
                     
                    COL_FREQ_RX != 0) { ?>
                    
                         
                        frequency->hz_to_mhz($row->COL_FREQ_RX); ?> 
                     
                    
                    
                         
                        COL_SUBMODE==null?$row->COL_MODE:$row->COL_SUBMODE; ?> 
                     
                    
                         
                        COL_RST_SENT; ?> COL_STX) { ?>(COL_STX);?>) COL_STX_STRING) { ?>(COL_STX_STRING;?>) 
                     
                    
                         
                        COL_RST_RCVD; ?> COL_SRX) { ?>(COL_SRX);?>) COL_SRX_STRING) { ?>(COL_SRX_STRING;?>) 
                     
                    COL_GRIDSQUARE != null) { ?>
                    
                        Gridsquare: 
                        COL_GRIDSQUARE; ?>  
                     
                    
                    COL_GRIDSQUARE != null && strlen($row->COL_GRIDSQUARE) >= 4) { ?>
                    
                    
                         
                        
                            qra->distance($row->station_gridsquare, $row->COL_GRIDSQUARE, $measurement_base);
                                switch ($measurement_base) {
                                    case 'M':
                                        $distance .= " mi";
                                        break;
                                    case 'K':
                                        $distance .= " km";
                                        break;
                                    case 'N':
                                        $distance .= " nmi";
                                        break;
                                }
                                echo $distance;
                            ?>
                         
                     
                    
                    COL_VUCC_GRIDS != null) { ?>
                    
                        Gridsquare (Multi): 
                        COL_VUCC_GRIDS; ?>  
                            qra->distance($row->station_gridsquare, $row->COL_VUCC_GRIDS, $measurement_base);
                                switch ($measurement_base) {
                                    case 'M':
                                        $distance .= " mi";
                                        break;
                                    case 'K':
                                        $distance .= " km";
                                        break;
                                    case 'N':
                                        $distance .= " nmi";
                                        break;
                                }
                                echo $distance;
                            ?>
                     
                    
                    COL_STATE != null) { ?>
                    
                        : 
                        COL_STATE; ?> 
                     
                    
                    COL_CNTY != null && $row->COL_CNTY != ",") { ?>
                    
                        : 
                        COL_CNTY; ?> 
                     
                    
                    COL_NAME != null) { ?>
                    
                         
                        COL_NAME; ?> 
                     
                    
                    config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE) { ?>
                    COL_COMMENT != null) { ?>
                    
                         
                        COL_COMMENT; ?> 
                     
                    
                    
                    COL_SAT_NAME != null) { ?>
                    
                         
                        COL_SAT_NAME; ?>  
                     
                    
                    COL_SAT_MODE != null) { ?>
                    
                         
                        COL_SAT_MODE) == 2 ? (strtoupper($row->COL_SAT_MODE[0]).'/'.strtoupper($row->COL_SAT_MODE[1])) : strtoupper($row->COL_SAT_MODE)); ?> 
                     
                    
                    COL_ANT_AZ != null) { ?>
                    
                         
                        COL_ANT_AZ; ?>°  
                     
                    
                    COL_ANT_EL != null) { ?>
                    
                         
                        COL_ANT_EL; ?>°  
                     
                    
                    name != null) { ?>
                    
                         
                        name)), "- (/"); if (isset($dxccFlag)) { echo " ".$dxccFlag; } if ($row->end != null) { echo ' '.lang('gen_hamradio_deleted_dxcc').' '; } ?> 
                     
                    
                    COL_CONT != null) { ?>
                    
                         
                        
                        COL_CONT) {
                             case "AF":
                               echo lang('africa');
                               break;
                             case "AN":
                               echo lang('antarctica');
                               break;
                             case "AS":
                               echo lang('asia');
                               break;
                             case "EU":
                               echo lang('europe');
                               break;
                             case "NA":
                               echo lang('northamerica');
                               break;
                             case "OC":
                               echo lang('oceania');
                               break;
                             case "SA":
                               echo lang('southamerica');
                               break;
                           }
                        ?>
                         
                     
                    
                    COL_CONTEST_ID != null) { ?>
                    
                         
                        COL_CONTEST_ID; ?> 
                     
                    
                    COL_IOTA != null) { ?>
                    
                         
                        COL_IOTA; ?>  
                     
                    
                    COL_SOTA_REF != null) { ?>
                    
                         
                        COL_SOTA_REF; ?>  
                     
                    
                    COL_WWFF_REF != null) { ?>
                    
                         
                        COL_WWFF_REF; ?>  
                     
                    
                    COL_POTA_REF != null) { ?>
                    
                         
                        COL_POTA_REF; ?>  
                     
                    
                    COL_SIG != null) { ?>
                    
                         
                        COL_SIG; ?> 
                     
                    
                    COL_SIG_INFO != null) { ?>
                    
                         
                        COL_SIG) {
                        case "GMA":
                           echo "COL_SIG_INFO."\" target=\"_blank\">".$row->COL_SIG_INFO."  ";
                           break;
                        case "MQC":
                           echo "COL_SIG_INFO."\" target=\"_blank\">".$row->COL_SIG_INFO."  ";
                           break;
                        default:
                           echo "".$row->COL_SIG_INFO." ";
                           break;
                        }
                        ?>
                     
                    
                    COL_DARC_DOK != null) { ?>
                    
                         
                        COL_DARC_DOK)) { ?>
                        COL_DARC_DOK; ?>  
                        COL_DARC_DOK)) { ?>
                        COL_DARC_DOK; ?>  
                        COL_DARC_DOK)) { ?>
                        COL_DARC_DOK; ?>  
                        
                        COL_DARC_DOK; ?> 
                        
                     
                    
                
                COL_QSL_SENT == "Y" || $row->COL_QSL_RCVD == "Y") { ?>
                    
                    COL_QSL_SENT == "Y") {?>
                        COL_QSL_SENT_VIA == "B") { ?>
                            
                        COL_QSL_SENT_VIA == "D") { ?>
                            
                        COL_QSL_SENT_VIA == "E") { ?>
                            
                        COL_QSL_SENT_VIA == "M") { ?>
                            
                        
                            
                        
                        COL_QSLSDATE != null) { ?>
                            COL_QSLSDATE); echo " (".date($custom_date_format, $timestamp).")"; ?>
                        
                    
                    COL_QSL_RCVD == "Y") { ?>
                        COL_QSL_RCVD_VIA == "B") { ?>
                            
                        COL_QSL_RCVD_VIA == "D") { ?>
                            
                        COL_QSL_RCVD_VIA == "E") { ?>
                            
                        COL_QSL_RCVD_VIA == "M") { ?>
                            
                        
                            
                        
                        COL_QSLRDATE != null) { ?>
                            COL_QSLRDATE); echo " (".date($custom_date_format, $timestamp).")"; ?>
                        
                    
                
                    lotwuser != null) { ?>
                    
 : '; ?>lastupload); echo date($custom_date_format, $timestamp); $timestamp = strtotime($row->lastupload); echo " ".date('H:i', $timestamp);?> UTC. 
                    
                    COL_LOTW_QSL_RCVD == "Y" && $row->COL_LOTW_QSLRDATE != null) { ?>
                    
 
                     COL_LOTW_QSLRDATE); echo date($custom_date_format, $timestamp); ?>.
                    
                    COL_EQSL_QSL_RCVD == "Y" && $row->COL_EQSL_QSLRDATE != null) { ?>
                    
eQSL 
                         COL_EQSL_QSLRDATE); echo date($custom_date_format, $timestamp); ?>.
                    
             
                
                    
                    config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE) { ?>
                        
                            
                            
                    
                    COL_SAT_NAME != null) {
                            $twitter_band_sat = $row->COL_SAT_NAME." \u{1F6F0}\u{FE0F}";
                            $hashtags = "#hamr #cloudlog #amsat";
                        } else {
                            $twitter_band_sat = $row->COL_BAND;
                            $hashtags = "#hamr #cloudlog";
                        }
                        if($row->COL_IOTA != null) {
                            $hashtags .= " #IOTA ".$row->COL_IOTA;
                        }
                        if($row->COL_SOTA_REF != null) {
                            $hashtags .= " #SOTA ".$row->COL_SOTA_REF;
                        }
                        if($row->COL_POTA_REF != null) {
                            $hashtags .= " #POTA ".$row->COL_POTA_REF;
                        }
                        if($row->COL_WWFF_REF != null) {
                            $hashtags .= " #WWFF ".$row->COL_WWFF_REF;
                        }
                        if($row->COL_SIG != null && $row->COL_SIG_INFO != null) {
                            $hashtags .= " #".$row->COL_SIG." ".$row->COL_SIG_INFO;
                        }
                        if (!isset($distance)) {
                            $twitter_string = urlencode("Just worked ".$row->COL_CALL." ");
                            if ($row->COL_DXCC != 0) {
                               $twitter_string .= urlencode("in ".ucwords(strtolower(($row->COL_COUNTRY)))." ");
                            }
                            $twitter_string .= urlencode("on ".$twitter_band_sat." using ".($row->COL_SUBMODE==null?$row->COL_MODE:$row->COL_SUBMODE)." ".$hashtags);
                        } else {
                            $twitter_string = urlencode("Just worked ".$row->COL_CALL." ");
                            if ($row->COL_DXCC != 0) {
                               $twitter_string .= urlencode("in ".ucwords(strtolower(($row->COL_COUNTRY)))." ");
                               if (isset($dxccFlag)) {
                                  $twitter_string .= $dxccFlag." ";
                               }
                            }
                            $distancestring = '';
                            if ($row->COL_VUCC_GRIDS == null) {
                               $distancestring = "(Gridsquare: ".$row->COL_GRIDSQUARE." / distance: ".$distance.")";
                            } else {
                               if (substr_count($row->COL_VUCC_GRIDS, ',') == 1) {
                                  $distancestring = "(Gridline: ".preg_replace('/\s+/', '', $row->COL_VUCC_GRIDS)." / distance: ".$distance.")";
                               } else if (substr_count($row->COL_VUCC_GRIDS, ',') == 3) {
                                  $distancestring = "(Gridcorner: ".preg_replace('/\s+/', '', $row->COL_VUCC_GRIDS)." / distance: ".$distance.")";
                               } else {
                                  $distancestring = "(Grids: ".$row->COL_VUCC_GRIDS.")";
                               }
                            }
                            $twitter_string .= urlencode($distancestring." on ".$twitter_band_sat." using ".($row->COL_SUBMODE==null?$row->COL_MODE:$row->COL_SUBMODE)." ".$hashtags);
                        }
                    ?>
                    
                    session->userdata('user_mastodon_url') != null) { echo '
'; } ?>
                
 
             
         
        
             
            
                    
                         
                        station_callsign; ?> 
                     
                    
                         
                        station_profile_name; ?> 
                     
                    
                         
                        station_gridsquare; ?> 
                     
                    station_city) { ?>
                    
                         
                        station_city; ?> 
                     
                    
                    station_country) { ?>
                    
                         
                        station_country)), "- (/"); if ($row->station_end != null) echo ' '.lang('gen_hamradio_deleted_dxcc').' '; ?> 
                     
                    
                    COL_OPERATOR) { ?>
                    
                         
                        COL_OPERATOR; ?> 
                     
                    
                    COL_TX_PWR) { ?>
                    
                         
                        COL_TX_PWR; ?> W 
                     
                    
                    COL_MY_IOTA) { ?>
                    
                         
                        COL_MY_IOTA; ?> 
                     
                    
                    COL_MY_SOTA_REF) { ?>
                    
                         
                        COL_MY_SOTA_REF; ?> 
                     
                    
                    COL_MY_WWFF_REF) { ?>
                    
                         
                        COL_MY_WWFF_REF; ?> 
                     
                    
                    COL_MY_POTA_REF) { ?>
                    
                         
                        COL_MY_POTA_REF; ?> 
                     
                    
            
         
        
            
 
            COL_NOTES)) { echo nl2br($row->COL_NOTES); } ?>
        
        config->item('use_auth')) && ($this->session->userdata('user_type') >= 2)) {
        ?>
        
             0) {
                echo '
                    
                    
                        SSTV image file 
                         
                         
                     
                     ';
                    foreach ($sstvimages as $sstv) {
                    echo '';
                        echo '' . $sstv->filename . ' ';
                        echo 'Delete  ';
                        echo 'View  ';
                        echo ' ';
                    }
                    echo ' 
';
                }
            ?>
            
  B.
            
         
        
             0) {
            echo '
                
                
                    QSL image file 
                     
                     
                 
                 ';
                foreach ($qslimages as $qsl) {
                echo '';
                    echo '' . $qsl->filename . ' ';
                    echo 'Delete  ';
                    echo 'View  ';
                    echo ' ';
                }
                echo ' 
';
            }
            ?>
            
   B.
            
            
            
            
            
         
        
            load->view('qslcard/qslcarousel', $qslimages); ?>
        
        
        
            load->view('sstv/sstvcarousel', $sstvimages); ?>
        
        
        eqsl_image_file != null) {
		echo '
';
	}
        ?>